diff options
author | Amir Goldstein <amir73il@gmail.com> | 2021-09-09 14:56:34 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-09-10 09:46:48 -0700 |
commit | 4396a73115fc8739083536162e2228c0c0c3ed1a (patch) | |
tree | 5bd2044ab9bcf43b128ef914971358ce67adac42 /arch/microblaze/boot | |
parent | bf9f243f23e6623f310ba03fbb14e10ec3a61290 (diff) | |
download | linux-stable-4396a73115fc8739083536162e2228c0c0c3ed1a.tar.gz linux-stable-4396a73115fc8739083536162e2228c0c0c3ed1a.tar.bz2 linux-stable-4396a73115fc8739083536162e2228c0c0c3ed1a.zip |
fsnotify: fix sb_connectors leak
Fix a leak in s_fsnotify_connectors counter in case of a race between
concurrent add of new fsnotify mark to an object.
The task that lost the race fails to drop the counter before freeing
the unused connector.
Following umount() hangs in fsnotify_sb_delete()/wait_var_event(),
because s_fsnotify_connectors never drops to zero.
Fixes: ec44610fe2b8 ("fsnotify: count all objects with attached connectors")
Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Link: https://lore.kernel.org/linux-fsdevel/20210907063338.ycaw6wvhzrfsfdlp@xzhoux.usersys.redhat.com/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/microblaze/boot')
0 files changed, 0 insertions, 0 deletions