Page MenuHomeFreeBSD

fusefs: add some tests that invoke nfsd
Needs ReviewPublic

Authored by asomers on Jan 15 2025, 10:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 29, 6:52 PM
Unknown Object (File)
Mon, Sep 29, 6:51 PM
Unknown Object (File)
Wed, Sep 24, 5:14 AM
Unknown Object (File)
Sep 16 2025, 12:00 PM
Unknown Object (File)
Sep 15 2025, 6:16 PM
Unknown Object (File)
Sep 10 2025, 2:35 PM
Unknown Object (File)
Sep 5 2025, 1:37 PM
Unknown Object (File)
Sep 4 2025, 12:44 PM
Subscribers

Details

Reviewers
rmacklem
Summary

The in-kernel NFS server has some idiosyncracies. For example, it never
calls VOP_OPEN. So there are code paths within fusefs that cannot be
hit through regular userspace syscalls alone. To exercise these code
paths, add tests that create VNET jails and run nfsd within the jails,
then mount the exported fuse file systems and access them using the
regular NFS client.

Also, add a regression test for bug 283448: a use-after-free accessible
only via nfsd. Add the test, but don't yet fix the bug.

PR: 283448
Sponsored by: ConnectWise

Also,
fusefs: don't exclusively lock during VFSOP_FHTOVP

I think the only reason why this code used LK_EXCLUSIVE was because it
was copied from ext2.

MFC after: 2 weeks
Sponsored by: ConnectWise

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 61744
Build 58628: arc lint + arc unit