linux-yocto/fs/notify
Al Viro 9a7de97b91 fix a leak in fcntl_dirnotify()
[ Upstream commit fdfe013347 ]

[into #fixes, unless somebody objects]

Lifetime of new_dn_mark is controlled by that of its ->fsn_mark,
pointed to by new_fsn_mark.  Unfortunately, a failure exit had
been inserted between the allocation of new_dn_mark and the
call of fsnotify_init_mark(), ending up with a leak.

Fixes: 1934b21261 "file: reclaim 24 bytes from f_owner"
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/20250712171843.GB1880847@ZenIV
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-24 08:56:30 +02:00
..
dnotify fix a leak in fcntl_dirnotify() 2025-07-24 08:56:30 +02:00
fanotify fanotify: allow reporting errors on failure to open fd 2024-12-14 20:03:48 +01:00
inotify fsnotify: Avoid data race between fsnotify_recalc_mask() and fsnotify_object_watched() 2024-10-02 15:11:40 +02:00
fdinfo.c fs: relax assertions on failure to encode file handles 2025-01-17 13:40:46 +01:00
fdinfo.h
fsnotify.c fsnotify: fix sending inotify event with unexpected filename 2024-12-05 14:02:45 +01:00
fsnotify.h fsnotify: clear PARENT_WATCHED flags lazily 2024-06-05 09:52:38 +02:00
group.c inotify: Fix possible deadlock in fsnotify_destroy_mark 2024-10-02 15:14:29 +02:00
Kconfig
Makefile
mark.c fsnotify: Fix ordering of iput() and watched_objects decrement 2024-12-05 14:02:46 +01:00
notification.c