mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
fsnotify_add_mark_locked() can fail but we do not check its return value. This didn't matter before commit9dd813c15b"fsnotify: Move mark list head from object into dedicated structure" as none of possible failures could happen for dnotify but after that commit -ENOMEM can be returned. Handle this error properly in fcntl_dirnotify() as otherwise we just hit BUG_ON(dn_mark->dn) in dnotify_free_mark(). Reviewed-by: Amir Goldstein <[email protected]> Reported-by: syzkaller Fixes:9dd813c15bSigned-off-by: Jan Kara <[email protected]>