aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2020-01-08 11:00:00 +0100
committerMauro Carvalho Chehab <[email protected]>2020-01-08 13:27:58 +0100
commit1dc8b65c944e5cfce3d830a5b97b42be185a1984 (patch)
treeef39a9c754f0f74fc9efab6e598b52dbe1b44945 /tools/perf/scripts/python/stackcollapse.py
parente4b9b6454d94481483c435b94517249b79e82b63 (diff)
media: v4l2-core: only zero-out ioctl-read buffers
The memset() got moved out of the check for _IOC_NONE, so passing a made-up command number with a size but no direction would allow clearing data on user-provided pointers. Move video_get_user() back into the _IOC_NONE check where it belongs. Reported-by: [email protected] Fixes: 6c625c01c7a6 ("media: v4l2-core: split out data copy from video_usercopy") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions