summaryrefslogtreecommitdiffstats
path: root/block/partitions/cmdline.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2015-11-19 17:18:54 -0800
committerJens Axboe <axboe@fb.com>2015-11-20 08:49:28 -0700
commit02e2a5bfebe99edcf9d694575a75032d53fe1b73 (patch)
tree815d3e15f91df416bdabd567d11f3983fa48f383 /block/partitions/cmdline.c
parent8aeea03195ee6e33fcb00039c414eabfc37a4eb8 (diff)
downloadlinux-0-day-02e2a5bfebe99edcf9d694575a75032d53fe1b73.tar.gz
linux-0-day-02e2a5bfebe99edcf9d694575a75032d53fe1b73.tar.xz
mac: validate mac_partition is within sector
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> Cc: stable@vger.kernel.org Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/partitions/cmdline.c')
0 files changed, 0 insertions, 0 deletions