18a39796e6
commit a0157b5aa34eb43ec4c5510f9c260bbb03be937e upstream. There appears to be a possible use after free with vdec_close(). The firmware will add buffer release work to the work queue through HFI callbacks as a normal part of decoding. Randomly closing the decoder device from userspace during normal decoding can incur a read after free for inst. Fix it by cancelling the work in vdec_close. Cc: stable@vger.kernel.org Fixes: af2c3834c8ca ("[media] media: venus: adding core part and helper functions") Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com> Acked-by: Vikash Garodia <quic_vgarodia@quicinc.com> Signed-off-by: Stanimir Varbanov <stanimir.k.varbanov@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
core.c | ||
core.h | ||
dbgfs.c | ||
dbgfs.h | ||
firmware.c | ||
firmware.h | ||
helpers.c | ||
helpers.h | ||
hfi.c | ||
hfi.h | ||
hfi_cmds.c | ||
hfi_cmds.h | ||
hfi_helper.h | ||
hfi_msgs.c | ||
hfi_msgs.h | ||
hfi_parser.c | ||
hfi_parser.h | ||
hfi_venus.c | ||
hfi_venus.h | ||
hfi_venus_io.h | ||
Makefile | ||
pm_helpers.c | ||
pm_helpers.h | ||
vdec.c | ||
vdec.h | ||
vdec_ctrls.c | ||
venc.c | ||
venc.h | ||
venc_ctrls.c |