summaryrefslogtreecommitdiff
path: root/include/linux/stringify.h
diff options
context:
space:
mode:
authorAsherah Connor <[email protected]>2021-02-09 06:19:48 +0000
committerHeinrich Schuchardt <[email protected]>2021-02-14 10:34:15 +0100
commit9d30a941cce5ed055da18398f4deba18830d00d6 (patch)
tree0300604aeca5a4aaf85034fc5f792a32ede1b511 /include/linux/stringify.h
parent7c82e12cc4e9e25d7c89fe15bfeec4e9b0bb2b4d (diff)
efi_loader: don't load beyond VirtualSize
PE section table entries' SizeOfRawData must be a multiple of FileAlignment, and thus may be rounded up and larger than their VirtualSize. We should not load beyond the VirtualSize, which is "the total size of the section when loaded into memory" -- we may clobber real data at the target in some other section, since we load sections in reverse order and sections are usually laid out sequentially. Signed-off-by: Asherah Connor <[email protected]> Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions