media: venus: hfi: fix the check to handle session buffer requirement
Buffer requirement, for different buffer type, comes from video firmware. While copying these requirements, there is an OOB possibility when the payload from firmware is more than expected size. Fix the check to avoid the OOB possibility. Cc: stable@vger.kernel.org Fixes: 09c2845e ("[media] media: venus: hfi: add Host Firmware Interface (HFI)") Reviewed-by:Nathan Hebert <nhebert@chromium.org> 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>
parent
5e538fce
-
mentioned in commit db6bd472
-
mentioned in commit 217e0e85
-
mentioned in commit 1e0b4cf7
-
mentioned in commit 626e9c3b
-
mentioned in commit bdb176c8
-
mentioned in commit 26d1519e
-
mentioned in commit 411aa629
-
mentioned in commit 3f35eea9
-
mentioned in commit 45ee0c27
-
mentioned in commit e4bbc76e
-
mentioned in commit 9ecebc70
-
mentioned in commit 188803b5
-
mentioned in commit c0b93ae0
-
mentioned in commit a760df1d
-
mentioned in commit f484af0a
-
mentioned in commit eb85542b
-
mentioned in commit 701c1e69
-
mentioned in commit 9c81b6a6
-
mentioned in commit 9447596a
-
mentioned in commit 42540ffe
-
mentioned in commit 0db4b638
-
mentioned in commit 35f475c4
-
mentioned in commit 125e72d3
-
mentioned in commit ba36e1ac
Please register or sign in to comment