]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fsnotify: inotify: pass mark connector to fsnotify_recalc_mask()
authorSun Jian <sun.jian.kdev@gmail.com>
Sat, 14 Feb 2026 05:12:17 +0000 (13:12 +0800)
committerJan Kara <jack@suse.cz>
Thu, 26 Feb 2026 14:19:31 +0000 (15:19 +0100)
commit4520b96b8136ba2465a3f4dc5c3fb8bdf3d92e4e
tree01f7c989641d219967d59727f9f57fb461077621
parent66052a768d4726a31e939b5ac902f2b0b452c8d5
fsnotify: inotify: pass mark connector to fsnotify_recalc_mask()

fsnotify_recalc_mask() expects a plain struct fsnotify_mark_connector *,
but inode->i_fsnotify_marks is an __rcu pointer.  Use fsn_mark->connector
instead to avoid sparse "different address spaces" warnings.

Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
Link: https://patch.msgid.link/20260214051217.1381363-1-sun.jian.kdev@gmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/inotify/inotify_user.c