pfg 891216e34b 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.

admbug:		872, 891
Reviewed by:	fsu
Obtained from:	NetBSD (with minor changes)
MFC after:	3 days
2019-01-25 22:22:29 +00:00
..
2018-01-05 10:04:01 +00:00
2018-05-13 19:19:10 +00:00
2018-03-17 12:59:55 +00:00
2018-05-13 19:19:10 +00:00
2018-05-13 19:19:10 +00:00
2018-02-05 15:14:01 +00:00
2018-05-13 19:19:10 +00:00
2018-01-14 20:46:39 +00:00
2018-03-17 12:59:55 +00:00