[rppt:hugetlb-init/v0] [dev] ac8d6455e4: PANIC:early_exception

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

Hello,

kernel test robot noticed "PANIC:early_exception" on:

commit: ac8d6455e4bbac839994bac1863b9017acb90c88 ("dev: Revert "mm/hugetlb: deal with multiple calls to hugetlb_bootmem_alloc"")
https://git.kernel.org/cgit/linux/kernel/git/rppt/linux.git hugetlb-init/v0

in testcase: boot

config: x86_64-randconfig-014-20251225
compiler: clang-20
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 32G

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



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]


[    1.747357][    T0] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x000fffff]
[    1.748440][    T0] PM: hibernation: Registered nosave memory: [mem 0xbffe0000-0xffffffff]
[    1.749535][    T0] [mem 0xc0000000-0xfeffbfff] available for PCI devices
[    1.750441][    T0] Booting paravirtualized kernel on KVM
[    1.751160][    T0] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370452778343963 ns
PANIC: early exception 0x0c IP 10:ffffffff85c3e5eb error 0 cr2 0xffff88883ffff000
[    1.773701][    T0] CPU: 0 UID: 0 PID: 0 Comm: swapper Not tainted 6.19.0-rc1-00027-gac8d6455e4bb #1 PREEMPT(undef)
[    1.775093][    T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[    1.776471][    T0] RIP: 0010:hugetlb_vmemmap_init_early (kbuild/src/consumer/mm/hugetlb_vmemmap.c:758)
[    1.777364][    T0] Code: 3f 83 fb 41 0f 83 c2 02 00 00 4c 3b 7c 24 20 0f 84 b7 03 00 00 8a 05 04 5a 20 ff 3c 01 75 c0 4d 8d 67 10 4c 89 e5 48 c1 ed 03 <80> 7c 15 00 00 74 12 4c 89 e7 e8 e6 24 d5 fb 48 ba 00 00 00 00 00
All code
========
   0:	3f                   	(bad)
   1:	83 fb 41             	cmp    $0x41,%ebx
   4:	0f 83 c2 02 00 00    	jae    0x2cc
   a:	4c 3b 7c 24 20       	cmp    0x20(%rsp),%r15
   f:	0f 84 b7 03 00 00    	je     0x3cc
  15:	8a 05 04 5a 20 ff    	mov    -0xdfa5fc(%rip),%al        # 0xffffffffff205a1f
  1b:	3c 01                	cmp    $0x1,%al
  1d:	75 c0                	jne    0xffffffffffffffdf
  1f:	4d 8d 67 10          	lea    0x10(%r15),%r12
  23:	4c 89 e5             	mov    %r12,%rbp
  26:	48 c1 ed 03          	shr    $0x3,%rbp
  2a:*	80 7c 15 00 00       	cmpb   $0x0,0x0(%rbp,%rdx,1)		<-- trapping instruction
  2f:	74 12                	je     0x43
  31:	4c 89 e7             	mov    %r12,%rdi
  34:	e8 e6 24 d5 fb       	call   0xfffffffffbd5251f
  39:	48                   	rex.W
  3a:	ba 00 00 00 00       	mov    $0x0,%edx
	...

Code starting with the faulting instruction
===========================================
   0:	80 7c 15 00 00       	cmpb   $0x0,0x0(%rbp,%rdx,1)
   5:	74 12                	je     0x19
   7:	4c 89 e7             	mov    %r12,%rdi
   a:	e8 e6 24 d5 fb       	call   0xfffffffffbd524f5
   f:	48                   	rex.W
  10:	ba 00 00 00 00       	mov    $0x0,%edx
	...
[    1.779986][    T0] RSP: 0000:ffffffff84807cf0 EFLAGS: 00010002 ORIG_RAX: 0000000000000000
[    1.781096][    T0] RAX: 1ffffffff0ba2b01 RBX: 0000000000000000 RCX: 0000000000000000
[    1.782156][    T0] RDX: dffffc0000000000 RSI: ffffffff869f7738 RDI: 0000000000000000
[    1.783242][    T0] RBP: 0000000000000002 R08: 0000000000000020 R09: 000000000001fb80
[    1.784333][    T0] R10: 000000083ffe0480 R11: ffffffff00000020 R12: 0000000000000010
[    1.785292][    T0] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[    1.786174][    T0] FS:  0000000000000000(0000) GS:0000000000000000(0000) knlGS:0000000000000000
[    1.787169][    T0] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    1.787906][    T0] CR2: ffff88883ffff000 CR3: 0000000004867000 CR4: 00000000000000b0
[    1.788857][    T0] Call Trace:
[    1.789309][    T0]  <TASK>
[    1.789719][    T0]  sparse_init_nid (kbuild/src/consumer/include/linux/mmzone.h:2260 (discriminator 1) kbuild/src/consumer/mm/sparse.c:549 (discriminator 1))
[    1.790364][    T0]  sparse_init (kbuild/src/consumer/mm/sparse.c:624)
[    1.790957][    T0]  zone_limits_init (kbuild/src/consumer/mm/mm_init.c:1819)
[    1.791606][    T0]  ? find_held_lock (kbuild/src/consumer/kernel/locking/lockdep.c:5350)


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.