Page MenuHomeFreeBSD

stand: ufs directory corruption sanity checks
AcceptedPublic

Authored by rlibby on Sep 3 2026, 11:32 PM.
Tags
None
Referenced Files
F174874632: D59378.diff
Tue, Oct 6, 5:07 PM
Unknown Object (File)
Sun, Oct 4, 3:57 PM
Unknown Object (File)
Sun, Oct 4, 3:56 PM
Unknown Object (File)
Sat, Oct 3, 8:45 PM
Unknown Object (File)
Sat, Oct 3, 4:27 AM
Unknown Object (File)
Fri, Oct 2, 8:04 PM
Unknown Object (File)
Thu, Oct 1, 4:47 AM
Unknown Object (File)
Mon, Sep 28, 4:42 PM
Subscribers

Details

Summary

Add sanity checks for corrupt UFS directory blocks. Don't allow bad
data to cause buffer overflows or infinite loops.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77459
Build 74342: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Tue, Sep 29, 2:49 AM
stand/libsa/ufs.c
81

Neither of these is needed since they just are wrappers around stand.h

imp: rely on stand.h for string.h and strings.h

This revision now requires review to proceed.Tue, Sep 29, 4:16 PM
This revision is now accepted and ready to land.Wed, Sep 30, 2:26 AM