diff options
author | Ricardo B. Marliere <[email protected]> | 2023-10-13 01:09:12 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2023-11-23 13:35:08 +0100 |
commit | ded85b0c0edd8f45fec88783d7555a5b982449c1 (patch) | |
tree | 4f0e11c16e038e9fee3e1a9b4b34c8fa1e566db7 /tools/perf/scripts/python | |
parent | 0cb8c9482501c46854ddb3d43b1bc05d771b9624 (diff) |
media: pvrusb2: fix use after free on context disconnection
Upon module load, a kthread is created targeting the
pvr2_context_thread_func function, which may call pvr2_context_destroy
and thus call kfree() on the context object. However, that might happen
before the usb hub_event handler is able to notify the driver. This
patch adds a sanity check before the invalid read reported by syzbot,
within the context disconnection call stack.
Reported-and-tested-by: [email protected]
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: e5be15c63804 ("V4L/DVB (7711): pvrusb2: Fix race on module unload")
Signed-off-by: Ricardo B. Marliere <[email protected]>
Acked-by: Mike Isely <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions