Theodore Ts'o 5b9554dc5b ext4: validate s_reserved_gdt_blocks on mount
If s_reserved_gdt_blocks is extremely large, it's possible for
ext4_init_block_bitmap(), which is called when ext4 sets up an
uninitialized block bitmap, to corrupt random kernel memory.  Add the
same checks which e2fsck has --- it must never be larger than
blocksize / sizeof(__u32) --- and then add a backup check in
ext4_init_block_bitmap() in case the superblock gets modified after
the file system is mounted.

Reported-by: Vegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
2016-07-05 20:01:52 -04:00
..
2016-05-27 15:26:11 -07:00
2016-05-20 17:58:30 -07:00
2016-06-30 11:49:01 -04:00
2016-05-23 17:04:14 -07:00
2016-05-23 17:04:14 -07:00
2016-04-26 12:00:48 -04:00
2016-05-23 17:04:14 -07:00
2016-05-26 19:34:26 -07:00
2016-05-26 20:00:28 -07:00
2016-05-23 17:04:14 -07:00
2016-04-18 11:18:55 +02:00