• Amir Goldstein's avatar
    fanotify: update connector fsid cache on add mark · c285a2f0
    Amir Goldstein authored
    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: 77115225 ("fanotify: cache fsid in fsnotify_mark_connector")
    Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    c285a2f0
fanotify.c 14.3 KB