[PATCH v2 1/1] arm: do not copy magic 4 bytes of appended DTB in zImage
Simon Horman
horms at verge.net.au
Sat Apr 17 08:21:17 BST 2021
On Mon, Apr 12, 2021 at 01:18:05PM +0200, Alexander Egorenkov wrote:
> If the passed zImage happens to have a DTB appended, then the magic 4 bytes
> of the DTB are copied together with the kernel image. This leads to
> failed kexec boots because the decompressor finds the aforementioned
> DTB magic and falsely tries to replace the DTB passed in the register r2
> with the non-existent appended one.
>
> Signed-off-by: Alexander Egorenkov <egorenar-dev at posteo.net>
> ---
>
> v1 -> v2:
> * Add a comment explaining the reason for introducing kernel_buf_size
Thanks Alexander, applied.
More information about the kexec
mailing list