summaryrefslogtreecommitdiffstats
path: root/block/blk-integrity.c
diff options
context:
space:
mode:
authorPeter Jones2013-02-28 02:05:17 +0100
committerLinus Torvalds2013-02-28 04:10:21 +0100
commit8b8a6e1881be8d73b7a98f84ccec61e624ec5cac (patch)
tree4e5e883aeee2ee9371b97e52a053d07c24939f2d /block/blk-integrity.c
parentblock/partition/msdos: detect AIX formatted disks even without 55aa (diff)
downloadkernel-qcow2-linux-8b8a6e1881be8d73b7a98f84ccec61e624ec5cac.tar.gz
kernel-qcow2-linux-8b8a6e1881be8d73b7a98f84ccec61e624ec5cac.tar.xz
kernel-qcow2-linux-8b8a6e1881be8d73b7a98f84ccec61e624ec5cac.zip
block/partitions/efi.c: ensure that the GPT header is at least the size of the structure.
UEFI 2.3.1D will include a change to the spec language mandating that a GPT header must be greater than *or equal to* the size of the defined structure. While verifying that this would work on Linux, I discovered that we're not actually checking the minimum bound at all. The result of this is that when we verify the checksum, it's possible that on a malformed header (with header_size of 0), we won't actually verify any data. [akpm@linux-foundation.org: fix printk warning] Signed-off-by: Peter Jones <pjones@redhat.com> Acked-by: Matt Fleming <matt.fleming@intel.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Stephen Warren <swarren@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/blk-integrity.c')
0 files changed, 0 insertions, 0 deletions