[rppt:hugetlb-init/v1] [arch, mm] 9cbe197f8d: kernel_BUG_at_arch/x86/mm/init_32.c

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-lkp
Message-ID <[email protected]>

Hello,

kernel test robot noticed "kernel_BUG_at_arch/x86/mm/init_32.c" on:

commit: 9cbe197f8d7866d1bbff91f3031301b726a6aea3 ("arch, mm: consolidate initialization of nodes, zones and memory map")
https://git.kernel.org/cgit/linux/kernel/git/rppt/linux.git hugetlb-init/v1

in testcase: boot

config: i386-randconfig-002-20251228
compiler: clang-20
test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G

(please refer to attached dmesg/kmsg for entire log/backtrace)


+------------------------------------------+------------+------------+
|                                          | bfe5bb4f40 | 9cbe197f8d |
+------------------------------------------+------------+------------+
| boot_successes                           | 12         | 0          |
| boot_failures                            | 0          | 12         |
| kernel_BUG_at_arch/x86/mm/init_32.c      | 0          | 12         |
| Oops:invalid_opcode:#[##]SMP             | 0          | 12         |
| EIP:arch_mm_preinit                      | 0          | 12         |
| Kernel_panic-not_syncing:Fatal_exception | 0          | 12         |
+------------------------------------------+------------+------------+


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 <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]


[    0.172502][    T0] ------------[ cut here ]------------
[    0.172850][    T0] kernel BUG at arch/x86/mm/init_32.c:689!
[    0.173223][    T0] Oops: invalid opcode: 0000 [#1] SMP
[    0.173566][    T0] CPU: 0 UID: 0 PID: 0 Comm: swapper Tainted: G                T   6.19.0-rc1-00022-g9cbe197f8d78 #1 PREEMPT(undef)  298f246f9eeee98b3bf304fd18fc66aa0eb8200e
[    0.174580][    T0] Tainted: [T]=RANDSTRUCT
[    0.174852][    T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[    0.175524][    T0] EIP: arch_mm_preinit (arch/x86/mm/init_32.c:689)
[    0.175840][    T0] Code: e8 bb 92 ed fd 83 c4 08 5d 31 c0 31 c9 31 d2 c3 e8 bb 36 f5 fd 55 89 e5 e8 83 b9 fe ff 83 3d c0 b3 94 83 00 74 04 5d 31 c0 c3 <0f> 0b b8 d8 ca b0 82 e8 3a 1b ee fd 90 90 90 90 90 90 90 90 90 90
All code
========
   0:	e8 bb 92 ed fd       	call   0xfffffffffded92c0
   5:	83 c4 08             	add    $0x8,%esp
   8:	5d                   	pop    %rbp
   9:	31 c0                	xor    %eax,%eax
   b:	31 c9                	xor    %ecx,%ecx
   d:	31 d2                	xor    %edx,%edx
   f:	c3                   	ret
  10:	e8 bb 36 f5 fd       	call   0xfffffffffdf536d0
  15:	55                   	push   %rbp
  16:	89 e5                	mov    %esp,%ebp
  18:	e8 83 b9 fe ff       	call   0xfffffffffffeb9a0
  1d:	83 3d c0 b3 94 83 00 	cmpl   $0x0,-0x7c6b4c40(%rip)        # 0xffffffff8394b3e4
  24:	74 04                	je     0x2a
  26:	5d                   	pop    %rbp
  27:	31 c0                	xor    %eax,%eax
  29:	c3                   	ret
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	b8 d8 ca b0 82       	mov    $0x82b0cad8,%eax
  31:	e8 3a 1b ee fd       	call   0xfffffffffdee1b70
  36:	90                   	nop
  37:	90                   	nop
  38:	90                   	nop
  39:	90                   	nop
  3a:	90                   	nop
  3b:	90                   	nop
  3c:	90                   	nop
  3d:	90                   	nop
  3e:	90                   	nop
  3f:	90                   	nop

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	b8 d8 ca b0 82       	mov    $0x82b0cad8,%eax
   7:	e8 3a 1b ee fd       	call   0xfffffffffdee1b46
   c:	90                   	nop
   d:	90                   	nop
   e:	90                   	nop
   f:	90                   	nop
  10:	90                   	nop
  11:	90                   	nop
  12:	90                   	nop
  13:	90                   	nop
  14:	90                   	nop
  15:	90                   	nop
[    0.177153][    T0] EAX: 00000000 EBX: ffffffff ECX: 00000000 EDX: 00000000
[    0.177604][    T0] ESI: 00000000 EDI: 00000000 EBP: 82ae1f74 ESP: 82ae1f74
[    0.178055][    T0] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00210046
[    0.178538][    T0] CR0: 80050033 CR2: 00000000 CR3: 03251000 CR4: 00000090
[    0.178989][    T0] Call Trace:
[    0.179196][    T0]  mm_core_init (mm/mm_init.c:2702)
[    0.179465][    T0]  start_kernel (init/main.c:1068)
[    0.179752][    T0]  i386_start_kernel (arch/x86/kernel/head32.c:79)
[    0.180060][    T0]  startup_32_smp (arch/x86/kernel/head_32.S:293)
[    0.180360][    T0] Modules linked in:
[    0.180605][    T0] ---[ end trace 0000000000000000 ]---
[    0.180948][    T0] EIP: arch_mm_preinit (arch/x86/mm/init_32.c:689)
[    0.181258][    T0] Code: e8 bb 92 ed fd 83 c4 08 5d 31 c0 31 c9 31 d2 c3 e8 bb 36 f5 fd 55 89 e5 e8 83 b9 fe ff 83 3d c0 b3 94 83 00 74 04 5d 31 c0 c3 <0f> 0b b8 d8 ca b0 82 e8 3a 1b ee fd 90 90 90 90 90 90 90 90 90 90
All code
========
   0:	e8 bb 92 ed fd       	call   0xfffffffffded92c0
   5:	83 c4 08             	add    $0x8,%esp
   8:	5d                   	pop    %rbp
   9:	31 c0                	xor    %eax,%eax
   b:	31 c9                	xor    %ecx,%ecx
   d:	31 d2                	xor    %edx,%edx
   f:	c3                   	ret
  10:	e8 bb 36 f5 fd       	call   0xfffffffffdf536d0
  15:	55                   	push   %rbp
  16:	89 e5                	mov    %esp,%ebp
  18:	e8 83 b9 fe ff       	call   0xfffffffffffeb9a0
  1d:	83 3d c0 b3 94 83 00 	cmpl   $0x0,-0x7c6b4c40(%rip)        # 0xffffffff8394b3e4
  24:	74 04                	je     0x2a
  26:	5d                   	pop    %rbp
  27:	31 c0                	xor    %eax,%eax
  29:	c3                   	ret
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	b8 d8 ca b0 82       	mov    $0x82b0cad8,%eax
  31:	e8 3a 1b ee fd       	call   0xfffffffffdee1b70
  36:	90                   	nop
  37:	90                   	nop
  38:	90                   	nop
  39:	90                   	nop
  3a:	90                   	nop
  3b:	90                   	nop
  3c:	90                   	nop
  3d:	90                   	nop
  3e:	90                   	nop
  3f:	90                   	nop

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	b8 d8 ca b0 82       	mov    $0x82b0cad8,%eax
   7:	e8 3a 1b ee fd       	call   0xfffffffffdee1b46
   c:	90                   	nop
   d:	90                   	nop
   e:	90                   	nop
   f:	90                   	nop
  10:	90                   	nop
  11:	90                   	nop
  12:	90                   	nop
  13:	90                   	nop
  14:	90                   	nop
  15:	90                   	nop


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20251229/[email protected]



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.