Revision c285a2f01d692ef48d7243cf1072897bbd237407 authored by Amir Goldstein on 19 June 2019, 10:34:44 UTC, committed by Jan Kara on 19 June 2019, 13:53:58 UTC
When implementing connector fsid cache, we only initialized the cache
when the first mark added to object was added by FAN_REPORT_FID group.
We forgot to update conn->fsid when the second mark is added by
FAN_REPORT_FID group to an already attached connector without fsid
cache.

Reported-and-tested-by: syzbot+c277e8e2f46414645508@syzkaller.appspotmail.com
Fixes: 77115225acc6 ("fanotify: cache fsid in fsnotify_mark_connector")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
1 parent c6d9c35
History
File Mode Size
apparmor
integrity
keys
loadpin
safesetid
selinux
smack
tomoyo
yama
Kconfig -rw-r--r-- 10.6 KB
Kconfig.hardening -rw-r--r-- 6.2 KB
Makefile -rw-r--r-- 1.1 KB
commoncap.c -rw-r--r-- 38.9 KB
device_cgroup.c -rw-r--r-- 20.5 KB
inode.c -rw-r--r-- 10.5 KB
lsm_audit.c -rw-r--r-- 10.7 KB
min_addr.c -rw-r--r-- 1.3 KB
security.c -rw-r--r-- 57.9 KB

back to top