Page MenuHomeFreeBSD

Make superblock reading logic more strict.
ClosedPublic

Authored by fsu on Feb 24 2019, 1:13 PM.
Tags
None
Referenced Files
F112031251: D19322.diff
Tue, Mar 11, 8:08 PM
Unknown Object (File)
Feb 3 2025, 2:52 PM
Unknown Object (File)
Jan 26 2025, 1:15 AM
Unknown Object (File)
Jan 25 2025, 9:13 PM
Unknown Object (File)
Jan 22 2025, 3:09 PM
Unknown Object (File)
Jan 16 2025, 8:49 PM
Unknown Object (File)
Jan 13 2025, 1:15 PM
Unknown Object (File)
Jan 3 2025, 11:38 AM
Subscribers

Details

Summary

Now the comput_sb_data() function checks on-disk superblock data fields more carefully. Also, the cylinder group validation function is added.
It should decrease ability to mount filesystems with corrupted superblock data.

Test Plan

Typical fsx/fstorture tests to avoid regression.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

pfg added inline comments.
sys/fs/ext2fs/ext2fs.h
398

Use a TAB after the

#define
This revision is now accepted and ready to land.Feb 27 2019, 2:43 PM
This revision was automatically updated to reflect the committed changes.