git: sys/vfs/ext2fs: Check for e2fs_first_dblock in ext2_compute_sb_data()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Dec 5 06:23:47 PST 2021


commit d7cd4e5da13c837a602745fbbf838a15e5773350
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Sun Dec 5 22:00:23 2021 +0900

    sys/vfs/ext2fs: Check for e2fs_first_dblock in ext2_compute_sb_data()
    
    This prevents a kernel panic on a damaged ext2 superblock.
    
    taken-from FreeBSD 3dd3a395ba975d0fbe13320e6e69fb85b037da5e

Summary of changes:
 sys/vfs/ext2fs/ext2_vfsops.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d7cd4e5da13c837a602745fbbf838a15e5773350


-- 
DragonFly BSD source repository



More information about the Commits mailing list