-
- Downloads
inotify: Fix reporting of cookies for inotify events
My rework of handling of notification events (namely commit 7053aee2 "fsnotify: do not share events between notification groups") broke sending of cookies with inotify events. We didn't propagate the value passed to fsnotify() properly and passed 4 uninitialized bytes to userspace instead (so it is also an information leak). Sadly I didn't notice this during my testing because inotify cookies aren't used very much and LTP inotify tests ignore them. Fix the problem by passing the cookie value properly. Fixes: 7053aee2 Reported-by:Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by:
Jan Kara <jack@suse.cz>
Showing
- fs/notify/dnotify/dnotify.c 1 addition, 1 deletionfs/notify/dnotify/dnotify.c
- fs/notify/fanotify/fanotify.c 1 addition, 1 deletionfs/notify/fanotify/fanotify.c
- fs/notify/fsnotify.c 1 addition, 1 deletionfs/notify/fsnotify.c
- fs/notify/inotify/inotify.h 1 addition, 1 deletionfs/notify/inotify/inotify.h
- fs/notify/inotify/inotify_fsnotify.c 2 additions, 1 deletionfs/notify/inotify/inotify_fsnotify.c
- fs/notify/inotify/inotify_user.c 1 addition, 1 deletionfs/notify/inotify/inotify_user.c
- include/linux/fsnotify_backend.h 1 addition, 1 deletioninclude/linux/fsnotify_backend.h
- kernel/audit_tree.c 1 addition, 1 deletionkernel/audit_tree.c
- kernel/audit_watch.c 1 addition, 1 deletionkernel/audit_watch.c
Loading
Please register or sign in to comment