• Eric Paris's avatar
    fsnotify: fix list walk order · f72adfd5
    Eric Paris authored
    Marks were stored on the inode and vfsmonut mark list in order from
    highest memory address to lowest memory address.  The code to walk those
    lists thought they were in order from lowest to highest with
    unpredictable results when trying to match up marks from each.  It was
    possible that extra events would be sent to userspace when inode
    marks ignoring events wouldn't get matched with the vfsmount marks.
    
    This problem only affected fanotify when using both vfsmount and inode
    marks simultaneously.
    Signed-off-by: default avatarEric Paris <eparis@redhat.com>
    f72adfd5
fsnotify.c 9.61 KB