]> git.baikalelectronics.ru Git - 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)
commite3ed1c8e84279e98c0a92bdc096e9e307bf18f8e
treee92640a16dc4c161eb8911d1f649c889341df8d4
parent50db79d13e50db5a4a1029ce69861cfc7efe4f00
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