]> git.baikalelectronics.ru Git - kernel.git/commit
fsnotify: fix list walk order
authorEric Paris <eparis@redhat.com>
Sat, 28 Aug 2010 01:24:24 +0000 (21:24 -0400)
committerEric Paris <eparis@redhat.com>
Sat, 28 Aug 2010 01:41:26 +0000 (21:41 -0400)
commit966c72e74f44d6d925638aa48d0ac5ab10059f7a
treedffd43e47284095e98f2a2ab60f965fc68792008
parent22fa8e8dd69ab2649b6bc8b5317945b003fc2a7c
fsnotify: fix list walk order

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: Eric Paris <eparis@redhat.com>
fs/notify/fsnotify.c