kernel_optimize_test/fs/notify
Jan Kara b2d22b6bb3 fanotify: Allow copying of file handle to userspace
When file handle is embedded inside fanotify_event and usercopy checks
are enabled, we get a warning like:

Bad or missing usercopy whitelist? Kernel memory exposure attempt detected
from SLAB object 'fanotify_event' (offset 40, size 8)!
WARNING: CPU: 1 PID: 7649 at mm/usercopy.c:78 usercopy_warn+0xeb/0x110
mm/usercopy.c:78

Annotate handling in fanotify_event properly to mark copying it to
userspace is fine.

Reported-by: syzbot+2c49971e251e36216d1f@syzkaller.appspotmail.com
Fixes: a8b13aa20a ("fanotify: enable FAN_REPORT_FID init flag")
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
2019-03-19 09:29:07 +01:00
..
dnotify
fanotify fanotify: Allow copying of file handle to userspace 2019-03-19 09:29:07 +01:00
inotify inotify: Fix fsnotify_mark refcount leak in inotify_update_existing_watch() 2019-03-11 10:13:17 +01:00
fdinfo.c
fdinfo.h
fsnotify.c
fsnotify.h
group.c
Kconfig
Makefile
mark.c fanotify: cache fsid in fsnotify_mark_connector 2019-02-07 16:38:35 +01:00
notification.c fsnotify: Create function to remove event from notification list 2019-02-18 12:41:16 +01:00