]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
fanotify: Make sure to check event_len when copying
authorKees Cook <keescook@chromium.org>
Tue, 4 Dec 2018 23:44:46 +0000 (15:44 -0800)
committerJan Kara <jack@suse.cz>
Wed, 5 Dec 2018 11:47:22 +0000 (12:47 +0100)
commit5b03a472b4e39c4e107d29543fd968c8abc3c873
treee92640a16dc4c161eb8911d1f649c889341df8d4
parentd6f7aa9820f21a879af8ceda17b2ebd1cf4beb25
fanotify: Make sure to check event_len when copying

As a precaution, make sure we check event_len when copying to userspace.
Based on old feedback: https://lkml.kernel.org/r/542D9FE5.3010009@gmx.de

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c