Page MenuHomeFreeBSD

pseudofs: Don't purge the cache on shutdown
ClosedPublic

Authored by des on Jul 20 2026, 6:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 2, 2:47 PM
Unknown Object (File)
Wed, Sep 2, 1:57 PM
Unknown Object (File)
Wed, Sep 2, 1:48 PM
Unknown Object (File)
Wed, Sep 2, 1:42 PM
Unknown Object (File)
Wed, Sep 2, 8:43 AM
Unknown Object (File)
Tue, Sep 1, 10:40 PM
Unknown Object (File)
Sun, Aug 30, 1:21 PM
Unknown Object (File)
Sun, Aug 30, 4:03 AM
Subscribers

Details

Summary

This is a waste of time and results in a use-after-free if linsysfs is
loaded and a USB network interface is in use, since USB devices are
disconnected at shutdown, which triggers a call into linsysfs, which
then tries to destroy a pseudofs node which has already been purged.

MFC after: 1 week
Reported by: glebius

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Jul 20 2026, 6:46 PM

Thanks! While I'm 99% sure it is going to fix my panic, I can't test it right away. Traveling right now and machine that exhibits it is not with me. I'll be able to test next week. If you want you can delay the push until I test. I will report here, in this revision.

This revision is now accepted and ready to land.Jul 20 2026, 6:59 PM

I will be able tomorrow. Was traveling this week. Will update.

Yes, the patch works as expected: fixes the panic on shutdown. Thanks!

This revision was automatically updated to reflect the committed changes.