summaryrefslogtreecommitdiff
path: root/kexec/add_buffer.c
diff options
context:
space:
mode:
authorRussell King <rmk@armlinux.org.uk>2016-07-07 15:01:19 +0100
committerSimon Horman <horms@verge.net.au>2016-07-15 13:12:12 +0900
commitf11d833efcbfb1bc6ff9963cdac1608b8e1ddecd (patch)
tree0aa363691ac40204deff6361ca0755275e780f42 /kexec/add_buffer.c
parent4db7f295d59651ead1f7632198fe8c113a2e8890 (diff)
arm: plug a zImage corner case
If a zImage is built with ARM_APPENDED_DTB enabled, the zImage will look at the word following the zImage and check whether it contains the DTB magic number. Generally, kexec will clear the destination pages before copying the zImage, but there is a corner case where the zImage is a multiple of the page size, where the following page will not be touched. Should the first word in this page contain the DTB magic number, the data following will be interpreted as a DTB image. In order to make this bullet-proof, we must always initialise the word following the zImage. Arrange this by specifying the zImage memory size one word bigger than the buffer size. Signed-off-by: Russell King <rmk@armlinux.org.uk> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/add_buffer.c')
0 files changed, 0 insertions, 0 deletions