summaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorAntti P Miettinen2013-11-21 23:32:05 +0100
committerLinus Torvalds2013-11-22 01:42:27 +0100
commit49204c116a9ee24536d371be02a2f05e6493c949 (patch)
treef212b1a3d8b8fef05f570658f6acd9efe596ad26 /mm/mempolicy.c
parentARM: drivers/rtc/rtc-at91rm9200.c: disable interrupts at shutdown (diff)
downloadkernel-qcow2-linux-49204c116a9ee24536d371be02a2f05e6493c949.tar.gz
kernel-qcow2-linux-49204c116a9ee24536d371be02a2f05e6493c949.tar.xz
kernel-qcow2-linux-49204c116a9ee24536d371be02a2f05e6493c949.zip
block/partitions/efi.c: fix bound check
Use ARRAY_SIZE instead of sizeof to get proper max for label length. Since this is just a read out of bounds it's not that bad, but the problem becomes user-visible eg if one tries to use DEBUG_PAGEALLOC and DEBUG_RODATA, at least with some enhancements from Hiroshi. Of course the destination array can contain garbage when we read beyond the end of source array so that would be another user-visible problem. Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com> Reviewed-by: Hiroshi Doyu <hdoyu@nvidia.com> Tested-by: Hiroshi Doyu <hdoyu@nvidia.com> Cc: Will Drewry <wad@chromium.org> Cc: Matt Fleming <matt.fleming@intel.com> Acked-by: Davidlohr Bueso <davidlohr@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
0 files changed, 0 insertions, 0 deletions