summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2024-10-24 11:21:30 +0300
committerHans Verkuil <hverkuil@xs4all.nl>2024-10-28 11:14:12 +0300
commit96d8569563916fe2f8fe17317e20e43f54f9ba4b (patch)
tree4fc3a8a587fd5b60cbd84692160341f9293ad03a /tools/perf/scripts/python/parallel-perf.py
parentba9cf6b430433e57bfc8072364e944b7c0eca2a4 (diff)
downloadlinux-96d8569563916fe2f8fe17317e20e43f54f9ba4b.tar.xz
media: vivid: fix buffer overwrite when using > 32 buffers
The maximum number of buffers that can be requested was increased to 64 for the video capture queue. But video capture used a must_blank array that was still sized for 32 (VIDEO_MAX_FRAME). This caused an out-of-bounds write when using buffer indices >= 32. Create a new define MAX_VID_CAP_BUFFERS that is used to access the must_blank array and set max_num_buffers for the video capture queue. This solves a crash reported by: https://bugzilla.kernel.org/show_bug.cgi?id=219258 Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Fixes: cea70ed416b4 ("media: test-drivers: vivid: Increase max supported buffers for capture queues") Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions