Greeting, FYI, we noticed the following commit (built with clang-15): commit: 27b0e04e3fb1541c77eb12f16f0084a2ec558c35 ("dyndbg: dynamic_debug_sites_reclaim() using free_reserved_page()") https://github.com/jimc/linux.git dd-diet-7a in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag Reported-by: kernel test robot [ 53.360916][ T1] ------------[ cut here ]------------ [ 53.361641][ T1] kernel BUG at arch/x86/mm/physaddr.c:28! [ 53.362391][ T1] invalid opcode: 0000 [#1] SMP PTI [ 53.363213][ T1] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.17.0-00044-g27b0e04e3fb1 #1 aed7d804852ef29397be41233358c78c59f5d310 [ 53.364895][ T1] RIP: 0010:__phys_addr+0xde/0xf0 [ 53.366115][ T1] Code: c3 48 c7 c7 00 32 cc 8e 4c 89 fe 4c 89 f2 e8 e9 65 d5 00 eb b4 48 c7 c7 80 d6 2a 8f be 01 00 00 00 31 d2 31 c9 e8 72 87 23 00 < 0f> 0b 0f 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 53 48 89 fb [ 53.368493][ T1] RSP: 0000:ffffc90000013cc8 EFLAGS: 00010246 [ 53.369279][ T1] RAX: 0000000000000000 RBX: 0000000080001000 RCX: 0000000000000000 [ 53.370345][ T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 53.371414][ T1] RBP: ffffc90000013eb8 R08: 0001ffff8f2ad6a7 R09: 0000000000000000 [ 53.372440][ T1] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8f29d000 [ 53.373484][ T1] R13: ffffea0000000000 R14: 0000000000001000 R15: 0000778000001000 [ 53.374550][ T1] FS: 0000000000000000(0000) GS:ffff88843fc00000(0000) knlGS:0000000000000000 [ 53.375732][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 53.376601][ T1] CR2: 0000000000000000 CR3: 000000025ba6a000 CR4: 00000000000406e0 [ 53.377717][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 53.378759][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 53.379936][ T1] Call Trace: [ 53.380383][ T1] [ 53.380821][ T1] dynamic_debug_sites_reclaim+0x8f/0x315 [ 53.381582][ T1] ? dynamic_debug_init+0x42d/0x42d [ 53.382302][ T1] do_one_initcall+0x201/0x520 [ 53.383025][ T1] ? rcu_read_lock_sched_held+0x34/0xa0 [ 53.383745][ T1] do_initcall_level+0xaf/0x182 [ 53.384450][ T1] do_initcalls+0x5c/0x8c [ 53.385045][ T1] do_basic_setup+0x35/0x3b [ 53.385704][ T1] kernel_init_freeable+0x10d/0x163 [ 53.386466][ T1] ? rest_init+0x280/0x280 [ 53.387079][ T1] kernel_init+0x12/0x1e0 [ 53.387695][ T1] ? rest_init+0x280/0x280 [ 53.388286][ T1] ret_from_fork+0x1f/0x30 [ 53.388872][ T1] [ 53.389348][ T1] Modules linked in: [ 53.390046][ T1] ---[ end trace 0000000000000000 ]--- [ 53.390770][ T1] RIP: 0010:__phys_addr+0xde/0xf0 [ 53.391413][ T1] Code: c3 48 c7 c7 00 32 cc 8e 4c 89 fe 4c 89 f2 e8 e9 65 d5 00 eb b4 48 c7 c7 80 d6 2a 8f be 01 00 00 00 31 d2 31 c9 e8 72 87 23 00 <0f> 0b 0f 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 53 48 89 fb [ 53.395922][ T1] RSP: 0000:ffffc90000013cc8 EFLAGS: 00010246 [ 53.396757][ T1] RAX: 0000000000000000 RBX: 0000000080001000 RCX: 0000000000000000 [ 53.397771][ T1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 53.398757][ T1] RBP: ffffc90000013eb8 R08: 0001ffff8f2ad6a7 R09: 0000000000000000 [ 53.399739][ T1] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8f29d000 [ 53.400762][ T1] R13: ffffea0000000000 R14: 0000000000001000 R15: 0000778000001000 [ 53.401825][ T1] FS: 0000000000000000(0000) GS:ffff88843fc00000(0000) knlGS:0000000000000000 [ 53.403041][ T1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 53.403916][ T1] CR2: 0000000000000000 CR3: 000000025ba6a000 CR4: 00000000000406e0 [ 53.404916][ T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 53.405927][ T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 53.406950][ T1] Kernel panic - not syncing: Fatal exception [ 53.407790][ T1] Kernel Offset: disabled To reproduce: # build kernel cd linux cp config-5.17.0-00044-g27b0e04e3fb1 .config make HOSTCC=clang-15 CC=clang-15 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules make HOSTCC=clang-15 CC=clang-15 ARCH=x86_64 INSTALL_MOD_PATH= modules_install cd find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k -m modules.cgz job-script # job-script is attached in this email # if come across any failure that blocks the test, # please remove ~/.lkp and /lkp dir to run from a clean state. -- 0-DAY CI Kernel Test Service https://01.org/lkp