Subject: Re: [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader

From: Mike Rapoport <[email-masked]>
Date: Wed, 16 Sep 2020 17:04:37 +0300

On Wed, Sep 16, 2020 at 05:50:34PM +0530, Naresh Kamboju wrote:
> arm64 boot failed on linux next 20200916.

There is a fix at 
https://lore.kernel.org/linux-mm/[email-masked]/

> [    0.000000] Linux version 5.9.0-rc5-next-20200916
> (TuxBuild@3aa8232c0e38) (aarch64-linux-gnu-gcc (Debian 9.3.0-8) 9.3.0,
> GNU ld (GNU Binutils for Debian) 2.34) #1 SMP PREEMPT Wed Sep 16
> 10:13:15 UTC 2020
> [    0.000000] Machine model: Freescale Layerscape 2088A RDB Board
> [    0.000000] earlycon: uart8250 at MMIO 0x00000000021c0600 (options '')
> [    0.000000] printk: bootconsole [uart8250] enabled
> [    0.000000] efi: UEFI not found.
> [    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please
> fix your bootloader!
> [    0.000000] Unable to handle kernel paging request at virtual
> address ffff0082ffffff70
> [    0.000000] Mem abort info:
> [    0.000000]   ESR = 0x96000044
> [    0.000000]   EC = 0x25: DABT (current EL), IL = 32 bits
> [    0.000000]   SET = 0, FnV = 0
> [    0.000000]   EA = 0, S1PTW = 0
> [    0.000000] Data abort info:
> [    0.000000]   ISV = 0, ISS = 0x00000044
> [    0.000000]   CM = 0, WnR = 1
> [    0.000000] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000000827f9000
> [    0.000000] [ffff0082ffffff70] pgd=0000000000000000, p4d=0000000000000000
> [    0.000000] Internal error: Oops: 96000044 [#1] PREEMPT SMP
> [    0.000000] Modules linked in:
> [    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted
> 5.9.0-rc5-next-20200916 #1
> [    0.000000] Hardware name: Freescale Layerscape 2088A RDB Board (DT)
> [    0.000000] pstate: 20000085 (nzCv daIf -PAN -UAO BTYPE=--)
> [    0.000000] pc : __memset+0x148/0x188
> [    0.000000] lr : memblock_alloc_try_nid+0xc4/0xdc
> [    0.000000] sp : ffffc305b2393cd0
> [    0.000000] x29: ffffc305b2393cd0 x28: 000000008116237c
> [    0.000000] x27: 0000000080000000 x26: ffffc305b1b51000
> [    0.000000] x25: 0000008380000000 x24: ffffc305b18014f8
> [    0.000000] x23: ffffc305b27a0f30 x22: 0000000000000000
> [    0.000000] x21: 00000000ffffffff x20: ffff0082ffffff70
> [    0.000000] x19: 0000000000000090 x18: 0000000000000010
> [    0.000000] x17: 0000000000001400 x16: 0000000000001c00
> [    0.000000] x15: ffffc305b23a48c0 x14: ffffc305b23a48c0
> [    0.000000] x13: fffffdfffe600000 x12: ffffc305b2393e44
> [    0.000000] x11: 0000000000004aa8 x10: ffffc305b2393df4
> [    0.000000] x9 : 0000000000000000 x8 : ffff0082ffffff70
> [    0.000000] x7 : 0000000000000000 x6 : 000000000000003f
> [    0.000000] x5 : 0000000000000040 x4 : 0000000000000010
> [    0.000000] x3 : 0000000000000080 x2 : 0000000000000080
> [    0.000000] x1 : 0000000000000000 x0 : ffff0082ffffff70
> [    0.000000] Call trace:
> [    0.000000]  __memset+0x148/0x188
> [    0.000000]  cma_init_reserved_mem+0x9c/0x15c
> [    0.000000]  cma_declare_contiguous_nid+0x288/0x308
> [    0.000000]  dma_contiguous_reserve_area+0x50/0x80
> [    0.000000]  dma_contiguous_reserve+0xfc/0x114
> [    0.000000]  arm64_memblock_init+0x42c/0x464
> [    0.000000]  setup_arch+0x27c/0x64c
> [    0.000000]  start_kernel+0xa0/0x56c
> [    0.000000] Code: f101007f fa45a068 54fffc0b aa0303e2 (a9001d07)
> [    0.000000] random: get_random_bytes called from
> print_oops_end_marker+0x34/0x78 with crng_init=0
> [    0.000000] ---[ end trace 0000000000000000 ]---
> [    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
> [    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill
> the idle task! ]---
> 
> 
> -- 
> Linaro LKFT
> https://lkft.linaro.org

-- 
Sincerely yours,
Mike.