aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/media
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-01-08 11:00:00 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-01-08 13:27:58 +0100
commit1dc8b65c944e5cfce3d830a5b97b42be185a1984 (patch)
treeef39a9c754f0f74fc9efab6e598b52dbe1b44945 /Documentation/media
parentmedia: rc: ir-hix5hd2: add hi3796cv300-ir support (diff)
downloadwireguard-linux-1dc8b65c944e5cfce3d830a5b97b42be185a1984.tar.xz
wireguard-linux-1dc8b65c944e5cfce3d830a5b97b42be185a1984.zip
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: syzbot+54fd8cca4b7226c94b8e@syzkaller.appspotmail.com Fixes: 6c625c01c7a6 ("media: v4l2-core: split out data copy from video_usercopy") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'Documentation/media')
0 files changed, 0 insertions, 0 deletions