Greeting, FYI, we noticed the following commit (built with clang-14): commit: f0340367a7885a3491d7b7c49f4c9bfc53e0b1dd ("[PATCH] ACPI: OSL: Handle the return value of acpi_os_map_generic_address() for a non-register GAS") url: https://github.com/0day-ci/linux/commits/james-liu-hpe-com/ACPI-OSL-Handle-the-return-value-of-acpi_os_map_generic_address-for-a-non-register-GAS/20211022-091959 base: https://git.kernel.org/cgit/linux/kernel/git/rafael/linux-pm.git linux-next 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): +----------------------------------------------------------------------+------------+------------+ | | 8b39e976f0 | f0340367a7 | +----------------------------------------------------------------------+------------+------------+ | WARNING:at_arch/x86/mm/ioremap.c:#__ioremap_caller | 0 | 8 | | RIP:__ioremap_caller | 0 | 8 | +----------------------------------------------------------------------+------------+------------+ If you fix the issue, kindly add following tag Reported-by: kernel test robot [ 23.832468][ T0] WARNING: CPU: 0 PID: 0 at arch/x86/mm/ioremap.c:200 __ioremap_caller (arch/x86/mm/ioremap.c:200) [ 23.833923][ T0] Modules linked in: [ 23.834493][ T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.0-rc6-00070-gf0340367a788 #2 [ 23.835756][ T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 23.837061][ T0] RIP: 0010:__ioremap_caller (arch/x86/mm/ioremap.c:200) [ 23.837931][ T0] Code: 00 00 31 db 48 89 d8 48 83 c4 40 5b 41 5c 41 5d 41 5e 41 5f 5d c3 31 db 48 c7 c7 8a 26 91 82 4c 89 fe 31 c0 e8 96 e2 fc 00 90 <0f> 0b 90 eb d5 44 89 fb 81 e3 ff 0f 00 00 48 03 5d b0 4c 89 ff 4c All code ======== 0: 00 00 add %al,(%rax) 2: 31 db xor %ebx,%ebx 4: 48 89 d8 mov %rbx,%rax 7: 48 83 c4 40 add $0x40,%rsp b: 5b pop %rbx c: 41 5c pop %r12 e: 41 5d pop %r13 10: 41 5e pop %r14 12: 41 5f pop %r15 14: 5d pop %rbp 15: c3 retq 16: 31 db xor %ebx,%ebx 18: 48 c7 c7 8a 26 91 82 mov $0xffffffff8291268a,%rdi 1f: 4c 89 fe mov %r15,%rsi 22: 31 c0 xor %eax,%eax 24: e8 96 e2 fc 00 callq 0xfce2bf 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: eb d5 jmp 0x4 2f: 44 89 fb mov %r15d,%ebx 32: 81 e3 ff 0f 00 00 and $0xfff,%ebx 38: 48 03 5d b0 add -0x50(%rbp),%rbx 3c: 4c 89 ff mov %r15,%rdi 3f: 4c rex.WR Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: eb d5 jmp 0xffffffffffffffda 5: 44 89 fb mov %r15d,%ebx 8: 81 e3 ff 0f 00 00 and $0xfff,%ebx e: 48 03 5d b0 add -0x50(%rbp),%rbx 12: 4c 89 ff mov %r15,%rdi 15: 4c rex.WR [ 23.840633][ T0] RSP: 0000:ffffffff82c03db8 EFLAGS: 00010282 [ 23.841496][ T0] RAX: 0000000000000032 RBX: 0000000000000000 RCX: 000000000000002c [ 23.842564][ T0] RDX: 0000000000000004 RSI: 0001ffff82c6c698 RDI: ffffffff82c6c698 [ 23.843580][ T0] RBP: ffffffff82c03e20 R08: 0000000000000000 R09: 0001ffff82c6c69f [ 23.844697][ T0] R10: 0001ffffffffffff R11: 0001ffffffffffff R12: 0000000000000008 [ 23.845763][ T0] R13: ffffffff820649a8 R14: aaaaaaaaaaaaaab1 R15: aaaaaaaaaaaaaaaa [ 23.846815][ T0] FS: 0000000000000000(0000) GS:ffff88842fa00000(0000) knlGS:0000000000000000 [ 23.848054][ T0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 23.849016][ T0] CR2: ffff88843ffff000 CR3: 0000000002c12000 CR4: 00000000000406b0 [ 23.850111][ T0] Call Trace: [ 23.850688][ T0] ? do_raw_read_unlock (include/linux/instrumented.h:? include/linux/atomic/atomic-instrumented.h:139 include/asm-generic/qrwlock.h:109 kernel/locking/spinlock_debug.c:180) [ 23.851499][ T0] ? _raw_read_unlock (arch/x86/include/asm/preempt.h:85 include/linux/rwlock_api_smp.h:227 kernel/locking/spinlock.c:260) [ 23.852295][ T0] ioremap_cache (arch/x86/mm/ioremap.c:419) [ 23.852897][ T0] acpi_os_map_iomem (include/acpi/acpi_io.h:13 drivers/acpi/osl.c:297 drivers/acpi/osl.c:356) [ 23.853693][ T0] acpi_os_map_generic_address (drivers/acpi/osl.c:476) [ 23.854503][ T0] acpi_os_initialize (drivers/acpi/osl.c:1743) [ 23.855310][ T0] acpi_initialize_subsystem (drivers/acpi/acpica/utxfinit.c:50) [ 23.856059][ T0] acpi_early_init (drivers/acpi/bus.c:1137) [ 23.856696][ T0] start_kernel (init/main.c:1105) [ 23.857400][ T0] x86_64_start_reservations (arch/x86/kernel/head64.c:526) [ 23.858150][ T0] x86_64_start_kernel (arch/x86/kernel/head64.c:507) [ 23.858856][ T0] secondary_startup_64_no_verify (??:?) [ 23.860163][ T0] irq event stamp: 423 [ 23.860750][ T0] hardirqs last enabled at (431): __up_console_sem (arch/x86/include/asm/irqflags.h:45 arch/x86/include/asm/irqflags.h:80 arch/x86/include/asm/irqflags.h:140 kernel/printk/printk.c:255) [ 23.862116][ T0] hardirqs last disabled at (438): __up_console_sem (kernel/printk/printk.c:253) [ 23.863403][ T0] softirqs last enabled at (0): 0x0 [ 23.864410][ T0] softirqs last disabled@(0): 0x0 [ 23.865455][ T0] random: get_random_bytes called from __warn+0x127/0x210 with crng_init=0 [ 23.865661][ T0] ---[ end trace 74ea3f44e8208ba2 ]--- [ 23.867569][ T0] ACPI: OSL: Mapping IOMEM for a non-register GAS. [ 23.868525][ T0] ioremap: invalid physical address aaaaaaaaaaaaaaaa [ 23.870354][ T0] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns [ 23.872689][ T0] APIC: Switch to symmetric I/O mode setup [ 23.873668][ T0] masked ExtINT on CPU#0 [ 23.876279][ T0] ENABLING IO-APIC IRQs [ 23.876987][ T0] init IO_APIC IRQs [ 23.877562][ T0] apic 0 pin 0 not connected [ 23.878447][ T0] IOAPIC[0]: Preconfigured routing entry (0-1 -> IRQ 1 Level:0 ActiveLow:0) [ 23.879829][ T0] IOAPIC[0]: Preconfigured routing entry (0-2 -> IRQ 0 Level:0 ActiveLow:0) [ 23.881104][ T0] IOAPIC[0]: Preconfigured routing entry (0-3 -> IRQ 3 Level:0 ActiveLow:0) [ 23.882364][ T0] IOAPIC[0]: Preconfigured routing entry (0-4 -> IRQ 4 Level:0 ActiveLow:0) [ 23.883648][ T0] IOAPIC[0]: Preconfigured routing entry (0-5 -> IRQ 5 Level:1 ActiveLow:0) [ 23.884855][ T0] IOAPIC[0]: Preconfigured routing entry (0-6 -> IRQ 6 Level:0 ActiveLow:0) [ 23.886067][ T0] IOAPIC[0]: Preconfigured routing entry (0-7 -> IRQ 7 Level:0 ActiveLow:0) [ 23.887406][ T0] IOAPIC[0]: Preconfigured routing entry (0-8 -> IRQ 8 Level:0 ActiveLow:0) [ 23.888640][ T0] IOAPIC[0]: Preconfigured routing entry (0-9 -> IRQ 9 Level:1 ActiveLow:0) [ 23.889873][ T0] IOAPIC[0]: Preconfigured routing entry (0-10 -> IRQ 10 Level:1 ActiveLow:0) [ 23.891244][ T0] IOAPIC[0]: Preconfigured routing entry (0-11 -> IRQ 11 Level:1 ActiveLow:0) [ 23.892530][ T0] IOAPIC[0]: Preconfigured routing entry (0-12 -> IRQ 12 Level:0 ActiveLow:0) [ 23.893796][ T0] IOAPIC[0]: Preconfigured routing entry (0-13 -> IRQ 13 Level:0 ActiveLow:0) [ 23.895193][ T0] IOAPIC[0]: Preconfigured routing entry (0-14 -> IRQ 14 Level:0 ActiveLow:0) [ 23.896474][ T0] IOAPIC[0]: Preconfigured routing entry (0-15 -> IRQ 15 Level:0 ActiveLow:0) [ 23.897722][ T0] apic 0 pin 16 not connected [ 23.898435][ T0] apic 0 pin 17 not connected [ 23.899159][ T0] apic 0 pin 18 not connected [ 23.899819][ T0] apic 0 pin 19 not connected [ 23.900527][ T0] apic 0 pin 20 not connected [ 23.902020][ T0] apic 0 pin 21 not connected [ 23.902715][ T0] apic 0 pin 22 not connected [ 23.903436][ T0] apic 0 pin 23 not connected [ 23.904251][ T0] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1 [ 23.905375][ T0] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x39a856ed927, max_idle_ns: 881590446804 ns [ 23.907245][ T0] Calibrating delay loop (skipped) preset value.. 3999.99 BogoMIPS (lpj=1999997) [ 23.908148][ T0] pid_max: default: 4096 minimum: 301 [ 23.909425][ T0] LSM: Security Framework initializing [ 23.910713][ T0] Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 23.911538][ T0] Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 23.919252][ T0] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0 [ 23.920148][ T0] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0 [ 23.921264][ T0] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 23.922214][ T0] Spectre V2 : Spectre mitigation: kernel not compiled with retpoline; no mitigation available! [ 23.922227][ T0] Speculative Store Bypass: Vulnerable [ 23.924211][ T0] MDS: Vulnerable: Clear CPU buffers attempted, no microcode [ 23.930357][ T0] Freeing SMP alternatives memory: 36K [ 23.931373][ T0] kcsan: enabled early [ 23.931952][ T0] kcsan: non-strict mode configured - use CONFIG_KCSAN_STRICT=y to see all data races [ 23.934136][ T1] smpboot: CPU0: Intel Xeon E312xx (Sandy Bridge) (family: 0x6, model: 0x2a, stepping: 0x1) [ 23.937850][ T1] Running RCU-tasks wait API self tests [ 24.048020][ T1] Performance Events: unsupported p6 CPU model 42 no PMU driver, software events only. [ 24.049053][ T1] rcu: Hierarchical SRCU implementation. [ 24.054976][ T1] NMI watchdog: Perf NMI watchdog permanently disabled [ 24.056399][ T1] smp: Bringing up secondary CPUs ... [ 24.059912][ T1] x86: Booting SMP configuration: [ 24.060183][ T1] .... node #0, CPUs: #1 [ 0.089695][ T0] kvm-clock: cpu 1, msr 34b6041, secondary cpu clock [ 0.089695][ T0] masked ExtINT on CPU#1 [ 0.089695][ T0] smpboot: CPU 1 Converting physical 0 to logical die 1 [ 24.071639][ T17] kvm-guest: stealtime: cpu 1, msr 42fc17200 [ 24.072868][ T1] smp: Brought up 1 node, 2 CPUs [ 24.074063][ T1] smpboot: Max logical packages: 2 [ 24.074156][ T1] smpboot: Total of 2 processors activated (7999.98 BogoMIPS) [ 24.077334][ T22] workqueue: round-robin CPU selection forced, expect performance impact [ 24.160128][ T10] Callback from call_rcu_tasks_rude() invoked. [ 24.255415][ T11] Callback from call_rcu_tasks_trace() invoked. [ 24.369856][ T22] node 0 deferred pages initialised in 293ms [ 24.371838][ T22] pgdatinit0 (22) used greatest stack depth: 13848 bytes left [ 24.463789][ T9] Callback from call_rcu_tasks() invoked. [ 24.755097][ T1] allocated 201326592 bytes of page_ext [ 24.779377][ T1] Node 0, zone DMA32: page owner found early allocated 9 pages [ 24.858443][ T1] Node 0, zone Normal: page owner found early allocated 49657 pages [ 24.863181][ T1] devtmpfs: initialized [ 24.889854][ T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 24.890277][ T1] futex hash table entries: 16 (order: -1, 2048 bytes, linear) [ 24.892896][ T1] pinctrl core: initialized pinctrl subsystem [ 24.902239][ T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 24.920211][ T1] thermal_sys: Registered thermal governor 'fair_share' [ 24.920257][ T1] thermal_sys: Registered thermal governor 'step_wise' [ 24.921223][ T1] thermal_sys: Registered thermal governor 'user_space' To reproduce: # build kernel cd linux cp config-5.15.0-rc6-00070-gf0340367a788 .config make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k 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. --- 0DAY/LKP+ Test Infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/lkp(a)lists.01.org Intel Corporation Thanks, Oliver Sang