android_kernel_lge_bullhead/block/partitions
Kees Cook 2a27f61bd4 mac: validate mac_partition is within sector
commit 02e2a5bfebe99edcf9d694575a75032d53fe1b73 upstream.

If md->signature == MAC_DRIVER_MAGIC and md->block_size == 1023, a single
512 byte sector would be read (secsize / 512). However the partition
structure would be located past the end of the buffer (secsize % 512).

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-03 15:06:21 -08:00
..
Kconfig partitions: enable EFI/GPT support by default 2012-12-06 14:34:58 +01:00
Makefile move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
acorn.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
acorn.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
amiga.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
amiga.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
atari.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
atari.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
check.c block/partitions: optimize memory allocation in check_partition() 2013-02-27 19:10:21 -08:00
check.h block/partitions: optimize memory allocation in check_partition() 2013-02-27 19:10:21 -08:00
efi.c partitions/efi.c: replace useless kzalloc's by kmalloc's 2013-04-30 08:34:25 +02:00
efi.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
ibm.c s390/partitions: make partition detection independent from DASD ioctls 2012-09-26 15:45:05 +02:00
ibm.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
karma.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
karma.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
ldm.c LDM: Fix reassembly of extended VBLKs. 2012-02-24 09:37:42 +00:00
ldm.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
mac.c mac: validate mac_partition is within sector 2016-03-03 15:06:21 -08:00
mac.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
msdos.c block/partition/msdos: detect AIX formatted disks even without 55aa 2013-02-27 19:10:21 -08:00
msdos.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
osf.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
osf.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
sgi.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
sgi.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
sun.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
sun.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
sysv68.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
sysv68.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
ultrix.c move fs/partitions to block/ 2012-01-03 22:54:06 -05:00
ultrix.h move fs/partitions to block/ 2012-01-03 22:54:06 -05:00