Hello, we noticed a new added WARN is hit in boot tests. we are not sure if any further changes should be made to remove this WARN, just report what we observed in our tests FYI. kernel test robot noticed "WARNING:at_mm/memblock.c:#memblock_set_node" on: commit: e0eec24e2e199873f43df99ec39773ad3af2bff7 ("memblock: make memblock_set_node() also warn about use of MAX_NUMNODES") git://git.kernel.org/cgit/linux/kernel/git/rppt/memblock.git fixes in testcase: boot compiler: clang-18 test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G (please refer to attached dmesg/kmsg for entire log/backtrace) +---------------------------------------------+-----------+------------+ | | v6.10-rc1 | e0eec24e2e | +---------------------------------------------+-----------+------------+ | WARNING:at_mm/memblock.c:#memblock_set_node | 0 | 24 | | RIP:memblock_set_node | 0 | 24 | +---------------------------------------------+-----------+------------+ If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <oliver.sang@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-lkp/202406061425.bf423dbe-oliver.sang@xxxxxxxxx [ 0.035952][ T0] ------------[ cut here ]------------ [ 0.036565][ T0] Usage of MAX_NUMNODES is deprecated. Use NUMA_NO_NODE instead [ 0.037482][ T0] WARNING: CPU: 0 PID: 0 at mm/memblock.c:1343 memblock_set_node (mm/memblock.c:1342) [ 0.038582][ T0] Modules linked in: [ 0.039067][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.10.0-rc1-00001-ge0eec24e2e19 #1 [ 0.040111][ T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 [ 0.041385][ T0] RIP: 0010:memblock_set_node (mm/memblock.c:1342) [ 0.042030][ T0] Code: 24 07 48 83 c0 18 48 ff c9 75 ef 48 89 df e8 ad 01 00 00 31 c0 eb a2 c6 05 6d 19 02 01 01 48 c7 c7 d9 64 8b 82 e8 c6 9a 17 ff <0f> 0b e9 5a ff ff ff e8 4a 58 ff ff 66 2e 0f 1f 84 00 00 00 00 00 All code ======== 0: 24 07 and $0x7,%al 2: 48 83 c0 18 add $0x18,%rax 6: 48 ff c9 dec %rcx 9: 75 ef jne 0xfffffffffffffffa b: 48 89 df mov %rbx,%rdi e: e8 ad 01 00 00 call 0x1c0 13: 31 c0 xor %eax,%eax 15: eb a2 jmp 0xffffffffffffffb9 17: c6 05 6d 19 02 01 01 movb $0x1,0x102196d(%rip) # 0x102198b 1e: 48 c7 c7 d9 64 8b 82 mov $0xffffffff828b64d9,%rdi 25: e8 c6 9a 17 ff call 0xffffffffff179af0 2a:* 0f 0b ud2 <-- trapping instruction 2c: e9 5a ff ff ff jmp 0xffffffffffffff8b 31: e8 4a 58 ff ff call 0xffffffffffff5880 36: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 3d: 00 00 00 Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: e9 5a ff ff ff jmp 0xffffffffffffff61 7: e8 4a 58 ff ff call 0xffffffffffff5856 c: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) 13: 00 00 00 [ 0.044270][ T0] RSP: 0000:ffffffff82a03eb0 EFLAGS: 00010046 ORIG_RAX: 0000000000000000 [ 0.045274][ T0] RAX: 0000000000000000 RBX: ffffffff82f382b0 RCX: 0000000000000000 [ 0.046228][ T0] RDX: ffffffff82a03c90 RSI: 00000000ffff7fff RDI: 0000000000000001 [ 0.047133][ T0] RBP: 0000000000000040 R08: 0000000000000000 R09: ffffffff82a03c88 [ 0.048027][ T0] R10: 00000000ffff7fff R11: ffffffff82b19a60 R12: 0000000000000000 [ 0.048944][ T0] R13: 0000000000000000 R14: ffffffffffffffff R15: 0000000000000000 [ 0.049872][ T0] FS: 0000000000000000(0000) GS:ffffffff834ba000(0000) knlGS:0000000000000000 [ 0.050844][ T0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 0.051565][ T0] CR2: ffff88843ffff000 CR3: 0000000002a30000 CR4: 00000000000000b0 [ 0.052517][ T0] Call Trace: [ 0.052923][ T0] <TASK> [ 0.053261][ T0] ? __warn (kernel/panic.c:693) [ 0.053768][ T0] ? memblock_set_node (mm/memblock.c:1342) [ 0.054363][ T0] ? report_bug (lib/bug.c:?) [ 0.054878][ T0] ? early_fixup_exception (arch/x86/mm/extable.c:415) [ 0.055510][ T0] ? early_idt_handler_common (arch/x86/kernel/head_64.S:542) [ 0.056167][ T0] ? memblock_set_node (mm/memblock.c:1342) [ 0.056772][ T0] ? flush_tlb_one_kernel (arch/x86/include/asm/cpufeature.h:178 arch/x86/mm/tlb.c:1125) [ 0.057396][ T0] ? __pfx_x86_acpi_numa_init (arch/x86/mm/srat.c:106) [ 0.058058][ T0] ? numa_init (arch/x86/mm/numa.c:616) [ 0.058547][ T0] ? x86_numa_init (arch/x86/mm/numa.c:694) [ 0.059064][ T0] ? setup_arch (arch/x86/kernel/setup.c:1100) [ 0.059579][ T0] ? start_kernel (init/main.c:481 init/main.c:927) [ 0.060115][ T0] ? x86_64_start_reservations (??:?) [ 0.060784][ T0] ? x86_64_start_kernel (arch/x86/kernel/head64.c:437) [ 0.061394][ T0] ? common_startup_64 (arch/x86/kernel/head_64.S:421) [ 0.062021][ T0] </TASK> [ 0.062360][ T0] ---[ end trace 0000000000000000 ]--- [ 0.063236][ T0] No NUMA configuration found [ 0.063784][ T0] Faking a node at [mem 0x0000000000000000-0x000000043fffffff] [ 0.064681][ T0] NODE_DATA(0) allocated [mem 0x43fff0000-0x43fff4fff] The kernel config and materials to reproduce are available at: https://download.01.org/0day-ci/archive/20240606/202406061425.bf423dbe-oliver.sang@xxxxxxxxx -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki