No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Vasantha Balla 3fedfd9225 msm: vidc: Fix use after free in driver
Use after free can happen in below scenario.
[1] In msm_vidc_open, When instance count reaches max count or when
open failed it waits for core lock before removing instance from
instance list.
[2] During this time backward thread can get invoked to handle firmware
response for cmds, It increments reference count and gets instance.
[3] If forward thread resumes after this, and frees intance,
backward thread will end up using freed instance.
[4] To address this, calling kref_put(&inst->kref) and freeing instance
immediately if ref count is zero, if recount is not zero, backward
thread frees instance memory in put_inst_helper.

Change-Id: I58c81d4d9fda1523d0fa29ebdb33455db839d46f
Signed-off-by: Vasantha Balla <quic_c_vballa@quicinc.com>
(cherry picked from commit ccddad0c4992ab7b4e3651e2c5c8df3e79bb7c43)
(cherry picked from commit cc9f3cc50311796626b2c40b049daeef0a5719ea)
2025-05-19 18:06:46 +05:30
config msm: vidc: Add config files for scuba 2021-07-09 14:42:44 +08:00
include/uapi/vidc/media msm:vidc: add enums for crop event 2022-11-22 05:38:58 -08:00
msm msm: vidc: Fix use after free in driver 2025-05-19 18:06:46 +05:30
Makefile msm: vidc: Add config files for scuba 2021-07-09 14:42:44 +08:00