summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVikash Garodia <quic_vgarodia@quicinc.com>2023-08-10 05:25:01 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-28 19:46:33 +0300
commit1b12b83331b0113415d7ad61e01a3c374b40a533 (patch)
treeeddbc8d89aa417d5d0633f9e1df6fd180f556609 /scripts
parent8263db0c64871e9ba342e2e9928802af54a2d53a (diff)
downloadlinux-1b12b83331b0113415d7ad61e01a3c374b40a533.tar.xz
media: venus: hfi: add checks to perform sanity on queue pointers
commit 5e538fce33589da6d7cb2de1445b84d3a8a692f7 upstream. Read and write pointers are used to track the packet index in the memory shared between video driver and firmware. There is a possibility of OOB access if the read or write pointer goes beyond the queue memory size. Add checks for the read and write pointer to avoid OOB access. Cc: stable@vger.kernel.org Fixes: d96d3f30c0f2 ("[media] media: venus: hfi: add Venus HFI files") Signed-off-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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions