]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fuse: fix inode initialization race
authorHorst Birthelmer <hbirthelmer@ddn.com>
Fri, 27 Mar 2026 17:28:54 +0000 (18:28 +0100)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 1 Apr 2026 10:12:58 +0000 (12:12 +0200)
commitaff12041b4b2f4f2c164a0cf1b9688408515d036
tree831f4adb0dfd40af43853a3f8da50a7b56cc5a1c
parent204aa22a686bfee48daca7db620c1e017615f2ff
fuse: fix inode initialization race

Fix a race between fuse_iget() and fuse_reverse_inval_inode() where
invalidation can arrive while an inode is being initialized, causing
the invalidation to be lost.
By keeping the inode state I_NEW as long as the attributes are not valid
the invalidation can wait until the inode is fully initialized.

Suggested-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Horst Birthelmer <hbirthelmer@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/inode.c