]> Gentwo Git Trees - linux/.git/commit
cachefiles: Fix non-taking of sb_writers around set/removexattr
authorDavid Howells <dhowells@redhat.com>
Tue, 23 Jul 2024 14:35:29 +0000 (15:35 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 5 Sep 2024 09:00:40 +0000 (11:00 +0200)
commit80887f31672970abae3aaa9cf62ac72a124e7c89
tree5dc3cef6c7c3ef19e8b3fe7bd848e253d24b2e67
parent4356ab331c8f0dbed0f683abde345cd5503db1e4
cachefiles: Fix non-taking of sb_writers around set/removexattr

Unlike other vfs_xxxx() calls, vfs_setxattr() and vfs_removexattr() don't
take the sb_writers lock, so the caller should do it for them.

Fix cachefiles to do this.

Fixes: 9ae326a69004 ("CacheFiles: A cache that backs onto a mounted filesystem")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Christian Brauner <brauner@kernel.org>
cc: Gao Xiang <xiang@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-erofs@lists.ozlabs.org
cc: linux-fsdevel@vger.kernel.org
Link: https://lore.kernel.org/r/20240814203850.2240469-3-dhowells@redhat.com/
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/cachefiles/xattr.c