Files
Linux/block
Antti P Miettinen 49204c116a 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 <[email protected]>
Reviewed-by: Hiroshi Doyu <[email protected]>
Tested-by: Hiroshi Doyu <[email protected]>
Cc: Will Drewry <[email protected]>
Cc: Matt Fleming <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2013-11-21 16:42:27 -08:00
..
2013-10-28 13:33:58 -06:00
2013-11-08 08:59:58 -07:00
…