Page MenuHomeFreeBSD

Make superblock reading logic more strict.
ClosedPublic

Authored by fsu on Feb 24 2019, 1:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 1:56 PM
Unknown Object (File)
Feb 23 2024, 8:57 AM
Unknown Object (File)
Dec 22 2023, 11:07 PM
Unknown Object (File)
Dec 13 2023, 3:24 AM
Unknown Object (File)
Sep 16 2023, 12:25 PM
Unknown Object (File)
Sep 7 2023, 9:30 PM
Unknown Object (File)
Sep 7 2023, 9:27 PM
Unknown Object (File)
Sep 7 2023, 9:27 PM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

pfg added inline comments.
sys/fs/ext2fs/ext2fs.h
398 ↗(On Diff #54285)

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.