Date: Fri, 5 Sep 2025 01:36:39 +0200 From: obiwac <obiwac@freebsd.org> To: freebsd-current@freebsd.org, freebsd-fs@freebsd.org Cc: alan.somers@freebsd.org Subject: Fuse issue with attr caching expecting write lock Message-ID: <CAN8-kNV6-H_YtmT2MeYkYOPcgcWrpe2K9jxqdb%2BjRzOJuk=-dA@mail.gmail.com>
index | next in thread | raw e-mail
Hi! When trying to access a large file with sshfs (on fuse), I get a kernel panic because fuse_internal_cache_attrs is asserting a write lock when it is sometimes being called from fuse_internal_do_getattr, which only asserts a read lock. To me (i.e. someone who has never touched VFS or fuse code) this code looks wrong, and fuse_internal_do_getattr should be acquiring a write lock around its call to fuse_internal_cache_attrs, but clearly it has been working just fine for a while now as this code hasn't changed super recently so I could be missing something. Thanks, Aymerichelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN8-kNV6-H_YtmT2MeYkYOPcgcWrpe2K9jxqdb%2BjRzOJuk=-dA>
