]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r343459: (parcial)
authorpfg <pfg@FreeBSD.org>
Mon, 28 Jan 2019 02:12:48 +0000 (02:12 +0000)
committerpfg <pfg@FreeBSD.org>
Mon, 28 Jan 2019 02:12:48 +0000 (02:12 +0000)
commit922ffcddd8473a9189f47f26bbf841aff1c44b0a
treec09610ea142cd8a5e07441a2bd7295c3bd450719
parent2c4d6608dbed69468575b1381a40cae51183876c
MFC r343459: (parcial)
ext2fs: Add some extra consistency checks for the superblock.

Maliciously formed, or badly corrupted, filesystems can cause kernel
panics.  In general, such acts of foot-shooting can only be accomplished
by root, but in a world with VM images that is  moving towards automated
mounts it is important to have some form of prevention.

Reported by: Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert
of Fraunhofer FKIE.
Incidentaly this should also fix a memory corruption issue reported by
Dr Silvio Cesare of InfoSect.

Huge thanks to all reseachers for making us aware of the issue.

Note: for the MFC to stable/11 several changes had to made.

admbug: 872, 891
Reviewed by: fsu
Obtained from: NetBSD (with changes)
sys/fs/ext2fs/ext2_vfsops.c