Skip to content

WARN at init/main.c:1061 start_kernel+0x4bc/0x680 #220

@shenki

Description

@shenki

@legoater reported a warning with dev-6.1 on ast2500. I can reproduce on qemu with his configuration:

[    0.002218] ------------[ cut here ]------------
[    0.002338] WARNING: CPU: 0 PID: 0 at init/main.c:1061 start_kernel+0x4bc/0x680
[    0.002785] Interrupts were enabled early
[    0.002872] Modules linked in:
[    0.003077] CPU: 0 PID: 0 Comm: swapper Not tainted 6.1.12-00100-gc6467d425900 #13
[    0.003268] Hardware name: Generic DT based system
[    0.003399] Backtrace: 
[    0.003525]  dump_backtrace from show_stack+0x20/0x24
[    0.003704]  r7:80b01020 r6:00000009 r5:00000153 r4:80a12190
[    0.003822]  show_stack from dump_stack_lvl+0x2c/0x34
[    0.003921]  dump_stack_lvl from dump_stack+0x14/0x1c
[    0.004022]  r5:00000425 r4:809fd2b0
[    0.004083]  dump_stack from __warn+0x80/0xfc
[    0.004170]  __warn from warn_slowpath_fmt+0x90/0xb4
[    0.004268]  r7:80b01020 r6:00000425 r5:809fd2b0 r4:809fd2e8
[    0.004357]  warn_slowpath_fmt from start_kernel+0x4bc/0x680
[    0.004465]  r8:00000000 r7:ffffffff r6:00c0387d r5:9dfffd00 r4:80cb1000
[    0.004574]  start_kernel from 0x0
[    0.004719]  r10:00c5387d r9:410fb767 r8:881f8000 r7:ffffffff r6:00c0387d r5:00000051
[    0.004846]  r4:80b0033c
[    0.004917] ---[ end trace 0000000000000000 ]---

This can be reproduced by building aspeed_g5_defconfig with CONFIG_SMP=n and CONFIG_DEBUG_KMEMLEAK=y.

$ make ARCH=arm O=aspeed-g5-dev aspeed_g5_defconfig
$ ./scripts/config --file aspeed-g5-dev/.config --disable SMP 
$ ./scripts/config --file aspeed-g5-dev/.config --enable CONFIG_DEBUG_KMEMLEAK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions