From: Peter Jones Date: Thu, 28 Feb 2013 01:05:17 +0000 (-0800) Subject: block/partitions/efi.c: ensure that the GPT header is at least the size of the structure. X-Git-Tag: v3.9-rc1~46^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b8a6e1881be8d73b7a98f84ccec61e624ec5cac;p=pandora-kernel.git 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 Acked-by: Matt Fleming Cc: Jens Axboe Cc: Stephen Warren Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed