[<prev] [next>] [day] [month] [year] [list]
Message-ID: <dfff9ea7-8936-f562-3ebd-4deb57735ac7@intel.com>
Date: Wed, 31 Aug 2022 12:20:53 +0800
From: kernel test robot <yujie.liu@...el.com>
To: Sathvika Vasireddy <sv@...ux.ibm.com>
CC: <lkp@...ts.01.org>, <lkp@...el.com>, 0day robot <lkp@...el.com>,
<linux-kbuild@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linuxppc-dev@...ts.ozlabs.org>, <jpoimboe@...hat.com>,
<peterz@...radead.org>, <aik@...abs.ru>, <mpe@...erman.id.au>,
<mingo@...hat.com>, <christophe.leroy@...roup.eu>,
<rostedt@...dmis.org>, <mbenes@...e.cz>, <npiggin@...il.com>,
<chenzhongjin@...wei.com>, <naveen.n.rao@...ux.vnet.ibm.com>,
<sv@...ux.ibm.com>
Subject: [objtool] 1702e834ae: UBSAN:misaligned-access_in_arch/x86/kernel.c
Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: 1702e834ae4cacd37f5691c112bd1f0d0eb88ff2 ("[PATCH v2 11/16] objtool: Add --mnop as an option to --mcount")
url: https://github.com/intel-lab-lkp/linux/commits/Sathvika-Vasireddy/objtool-Enable-and-implement-mcount-option-on-powerpc/20220829-135724
base: https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git next
patch link: https://lore.kernel.org/linuxppc-dev/20220829055223.24767-12-sv@linux.ibm.com
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):
+---------------------------------------------------------+------------+------------+
| | 86a3ca1815 | 1702e834ae |
+---------------------------------------------------------+------------+------------+
| boot_successes | 44 | 0 |
| boot_failures | 0 | 54 |
| UBSAN:misaligned-access_in_arch/x86/kernel.c | 0 | 54 |
| UBSAN:misaligned-access_in_arch/x86/mm/init_64.c | 0 | 54 |
| UBSAN:misaligned-access_in_include/asm-generic/rwonce.h | 0 | 54 |
| UBSAN:misaligned-access_in_lib/string.c | 0 | 54 |
| UBSAN:misaligned-access_in_arch/x86/kernel/traps.c | 0 | 54 |
| RIP:__page_table_check_zero | 0 | 54 |
| kernel_BUG_at_mm/page_table_check.c | 0 | 54 |
| invalid_opcode:#[##] | 0 | 54 |
| UBSAN:misaligned-access_in_kernel/module/main.c | 0 | 54 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 54 |
+---------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <yujie.liu@...el.com>
[ 0.000000][ T0] UBSAN: misaligned-access in arch/x86/kernel/ebda.c:74:15
[ 0.000000][ T0] load of misaligned address (____ptrval____) for type 'short unsigned int'
[ 0.000000][ T0] which requires 2 byte alignment
[ 0.000000][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc2-00025-g1702e834ae4c #1
[ 0.000000][ T0] Call Trace:
[ 0.000000][ T0] <TASK>
[ 0.000000][ T0] dump_stack_lvl (??:?)
[ 0.000000][ T0] dump_stack (??:?)
[ 0.000000][ T0] ubsan_epilogue (ubsan.c:?)
[ 0.000000][ T0] ubsan_type_mismatch_common.cold (ubsan.c:?)
[ 0.000000][ T0] __ubsan_handle_type_mismatch_v1 (??:?)
[ 0.000000][ T0] ? early_ioremap_pmd (ioremap.c:?)
[ 0.000000][ T0] reserve_bios_regions (??:?)
[ 0.000000][ T0] early_reserve_memory (setup.c:?)
[ 0.000000][ T0] setup_arch (??:?)
[ 0.000000][ T0] start_kernel (??:?)
[ 0.000000][ T0] x86_64_start_reservations (??:?)
[ 0.000000][ T0] x86_64_start_kernel (??:?)
[ 0.000000][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 0.000000][ T0] </TASK>
[ 0.000000][ T0] ================================================================================
[ 0.000000][ T0] BIOS-provided physical RAM map:
[ 0.000000][ T0] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000][ T0] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000][ T0] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000][ T0] BIOS-e820: [mem 0x0000000000100000-0x00000000bffdffff] usable
[ 0.000000][ T0] BIOS-e820: [mem 0x00000000bffe0000-0x00000000bfffffff] reserved
[ 0.000000][ T0] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000][ T0] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000][ T0] BIOS-e820: [mem 0x0000000100000000-0x000000043fffffff] usable
[ 0.000000][ T0] printk: debug: ignoring loglevel setting.
[ 0.000000][ T0] printk: bootconsole [earlyser0] enabled
[ 0.000000][ T0] NX (Execute Disable) protection: active
[ 0.000000][ T0] Hypervisor detected: KVM
[ 0.000000][ T0] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000033][ T0] kvm-clock: using sched offset of 1133706674 cycles
[ 0.000816][ T0] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.003259][ T0] tsc: Detected 2194.916 MHz processor
[ 0.008089][ T0] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.009166][ T0] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.010090][ T0] last_pfn = 0x440000 max_arch_pfn = 0x400000000
[ 0.011030][ T0] x86/PAT: PAT support disabled because CONFIG_X86_PAT is disabled in the kernel.
[ 0.012255][ T0] x86/PAT: Configuration [0-7]: WB WT UC- UC WB WT UC- UC
[ 0.013155][ T0] last_pfn = 0xbffe0 max_arch_pfn = 0x400000000
[ 0.014010][ T0] Scan for SMP in [mem 0x00000000-0x000003ff]
[ 0.014831][ T0] Scan for SMP in [mem 0x0009fc00-0x0009ffff]
[ 0.015689][ T0] Scan for SMP in [mem 0x000f0000-0x000fffff]
[ 0.023679][ T0] found SMP MP-table at [mem 0x000f5ba0-0x000f5baf]
[ 0.024654][ T0] mpc: f5bb0-f5c80
[ 0.025562][ T0] ================================================================================
[ 0.026879][ T0] UBSAN: misaligned-access in arch/x86/mm/init_64.c:184:3
[ 0.028100][ T0] member access within misaligned address (____ptrval____) for type 'struct page'
[ 0.029297][ T0] which requires 16 byte alignment
[ 0.030012][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc2-00025-g1702e834ae4c #1
[ 0.031141][ T0] Call Trace:
[ 0.031571][ T0] <TASK>
[ 0.031944][ T0] dump_stack_lvl (??:?)
[ 0.032531][ T0] dump_stack (??:?)
[ 0.033067][ T0] ubsan_epilogue (ubsan.c:?)
[ 0.033605][ T0] ubsan_type_mismatch_common.cold (ubsan.c:?)
[ 0.034439][ T0] __ubsan_handle_type_mismatch_v1 (??:?)
[ 0.035254][ T0] sync_global_pgds_l4 (init_64.c:?)
[ 0.035895][ T0] ? __kernel_physical_mapping_init (init_64.c:?)
[ 0.036672][ T0] ? do_raw_spin_unlock (??:?)
[ 0.037343][ T0] sync_global_pgds (init_64.c:?)
[ 0.038020][ T0] __kernel_physical_mapping_init (init_64.c:?)
[ 0.038831][ T0] kernel_physical_mapping_init (??:?)
[ 0.039589][ T0] init_memory_mapping (??:?)
[ 0.040286][ T0] ? alloc_low_pages (??:?)
[ 0.040951][ T0] ? cr4_update_irqsoff (??:?)
[ 0.041636][ T0] init_mem_mapping (??:?)
[ 0.042346][ T0] setup_arch (??:?)
[ 0.042916][ T0] start_kernel (??:?)
[ 0.043491][ T0] x86_64_start_reservations (??:?)
[ 0.044196][ T0] x86_64_start_kernel (??:?)
[ 0.044833][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 0.045593][ T0] </TASK>
[ 0.046007][ T0] ================================================================================
[ 0.058929][ T0] RAMDISK: [mem 0xb6b30000-0xbffdffff]
[ 0.059783][ T0] ACPI: Early table checksum verification disabled
[ 0.060637][ T0] ACPI: RSDP 0x00000000000F59B0 000014 (v00 BOCHS )
[ 0.061539][ T0] ACPI: RSDT 0x00000000BFFE199C 000034 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.062888][ T0] ACPI: FACP 0x00000000BFFE1848 000074 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.064152][ T0] ACPI: DSDT 0x00000000BFFE0040 001808 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.065411][ T0] ACPI: FACS 0x00000000BFFE0000 000040
[ 0.066248][ T0] ACPI: APIC 0x00000000BFFE18BC 000080 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.067514][ T0] ACPI: HPET 0x00000000BFFE193C 000038 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.068735][ T0] ACPI: WAET 0x00000000BFFE1974 000028 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.069973][ T0] ACPI: Reserving FACP table memory at [mem 0xbffe1848-0xbffe18bb]
[ 0.071026][ T0] ACPI: Reserving DSDT table memory at [mem 0xbffe0040-0xbffe1847]
[ 0.072066][ T0] ACPI: Reserving FACS table memory at [mem 0xbffe0000-0xbffe003f]
[ 0.073098][ T0] ACPI: Reserving APIC table memory at [mem 0xbffe18bc-0xbffe193b]
[ 0.074178][ T0] ACPI: Reserving HPET table memory at [mem 0xbffe193c-0xbffe1973]
[ 0.075234][ T0] ACPI: Reserving WAET table memory at [mem 0xbffe1974-0xbffe199b]
[ 0.076284][ T0] mapped APIC to ffffffffff5fd000 ( fee00000)
[ 0.077151][ T0] cma: dma_contiguous_reserve(limit 440000000)
[ 0.215007][ T0] Zone ranges:
[ 0.215570][ T0] DMA32 [mem 0x0000000000001000-0x00000000ffffffff]
[ 0.216526][ T0] Normal [mem 0x0000000100000000-0x000000043fffffff]
[ 0.217419][ T0] Movable zone start for each node
[ 0.218135][ T0] Early memory node ranges
[ 0.218722][ T0] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.219676][ T0] node 0: [mem 0x0000000000100000-0x00000000bffdffff]
[ 0.220672][ T0] node 0: [mem 0x0000000100000000-0x000000043fffffff]
[ 0.221628][ T0] Initmem setup node 0 [mem 0x0000000000001000-0x000000043fffffff]
[ 0.222776][ T0] On node 0, zone DMA32: 1 pages in unavailable ranges
[ 0.362362][ T0] On node 0, zone DMA32: 97 pages in unavailable ranges
[ 0.983938][ T0] On node 0, zone Normal: 32 pages in unavailable ranges
[ 2.234262][ T0] kasan: KernelAddressSanitizer initialized
[ 2.236430][ T0] ACPI: PM-Timer IO Port: 0x608
[ 2.237110][ T0] APIC: NR_CPUS/possible_cpus limit of 1 reached. Processor 1/0x1 ignored.
[ 2.238303][ T0] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 2.239326][ T0] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 2.240370][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 2.241303][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 00, APIC ID 0, APIC INT 02
[ 2.242383][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 2.243324][ T0] Int: type 0, pol 1, trig 3, bus 00, IRQ 05, APIC ID 0, APIC INT 05
[ 2.244386][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 2.245362][ T0] Int: type 0, pol 1, trig 3, bus 00, IRQ 09, APIC ID 0, APIC INT 09
[ 2.246487][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 2.247513][ T0] Int: type 0, pol 1, trig 3, bus 00, IRQ 0a, APIC ID 0, APIC INT 0a
[ 2.248558][ T0] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 2.249562][ T0] Int: type 0, pol 1, trig 3, bus 00, IRQ 0b, APIC ID 0, APIC INT 0b
[ 2.250681][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 01, APIC ID 0, APIC INT 01
[ 2.251775][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 03, APIC ID 0, APIC INT 03
[ 2.252820][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 04, APIC ID 0, APIC INT 04
[ 2.253904][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 06, APIC ID 0, APIC INT 06
[ 2.254933][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 07, APIC ID 0, APIC INT 07
[ 2.255993][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 08, APIC ID 0, APIC INT 08
[ 2.257110][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 0c, APIC ID 0, APIC INT 0c
[ 2.258206][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 0d, APIC ID 0, APIC INT 0d
[ 2.259284][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 0e, APIC ID 0, APIC INT 0e
[ 2.260345][ T0] Int: type 0, pol 0, trig 0, bus 00, IRQ 0f, APIC ID 0, APIC INT 0f
[ 2.261406][ T0] ACPI: Using ACPI (MADT) for SMP configuration information
[ 2.262435][ T0] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[ 2.263241][ T0] TSC deadline timer available
[ 2.263873][ T0] mapped IOAPIC to ffffffffff5fc000 (fec00000)
[ 2.264882][ T0] [mem 0xc0000000-0xfeffbfff] available for PCI devices
[ 2.265844][ T0] Booting paravirtualized kernel on KVM
[ 2.266579][ T0] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 2.268250][ T0] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 2.269141][ T0] pcpu-alloc: [0] 0
[ 2.269843][ T0] Built 1 zonelists, mobility grouping on. Total pages: 4128482
[ 2.270867][ T0] Kernel command line: ip=::::vm-meta-93::dhcp root=/dev/ram0 RESULT_ROOT=/result/boot/300/vm-snb/debian-11.1-x86_64-20220510.cgz/x86_64-randconfig-a005-20220829/gcc-11/1702e834ae4cacd37f5691c112bd1f0d0eb88ff2/19 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-a005-20220829/gcc-11/1702e834ae4cacd37f5691c112bd1f0d0eb88ff2/vmlinuz-6.0.0-rc2-00025-g1702e834ae4c branch=linux-review/Sathvika-Vasireddy/objtool-Enable-and-implement-mcount-option-on-powerpc/20220829-135724 job=/lkp/jobs/scheduled/vm-meta-93/boot-300-debian-11.1-x86_64-20220510.cgz-1702e834ae4cacd37f5691c112bd1f0d0eb88ff2-20220830-15480-1xn43ii-15.yaml user=lkp ARCH=x86_64 kconfig=x86_64-randconfig-a005-20220829 commit=1702e834ae4cacd37f5691c112bd1f0d0eb88ff2 vmalloc=256M initramfs_async=0 page_owner=on max_uptime=600 LKP_SERVER=internal-lkp-server selinux=0 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oop
[ 2.271102][ T0] ================================================================================
[ 2.284112][ T0] UBSAN: misaligned-access in include/asm-generic/rwonce.h:86:9
[ 2.285365][ T0] load of misaligned address (____ptrval____) for type 'long unsigned int'
[ 2.286620][ T0] which requires 8 byte alignment
[ 2.287312][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc2-00025-g1702e834ae4c #1
[ 2.288461][ T0] Call Trace:
[ 2.288873][ T0] <TASK>
[ 2.289237][ T0] dump_stack_lvl (??:?)
[ 2.289903][ T0] dump_stack (??:?)
[ 2.290501][ T0] ubsan_epilogue (ubsan.c:?)
[ 2.291078][ T0] ubsan_type_mismatch_common.cold (ubsan.c:?)
[ 2.291913][ T0] __ubsan_handle_type_mismatch_v1 (??:?)
[ 2.292723][ T0] ? kasan_metadata_fetch_row (??:?)
[ 2.293462][ T0] read_word_at_a_time (dcache.c:?)
[ 2.294180][ T0] strscpy (??:?)
[ 2.294766][ T0] ? read_word_at_a_time (??:?)
[ 2.295487][ T0] ? strcmp (??:?)
[ 2.296058][ T0] ip_auto_config_setup (ipconfig.c:?)
[ 2.296748][ T0] ? strlen (??:?)
[ 2.297288][ T0] unknown_bootoption (main.c:?)
[ 2.298002][ T0] parse_args (??:?)
[ 2.298573][ T0] ? set_init_arg (main.c:?)
[ 2.299216][ T0] ? parameq (??:?)
[ 2.299771][ T0] ? mutex_unlock (??:?)
[ 2.300375][ T0] ? __cpuhp_setup_state_cpuslocked (??:?)
[ 2.301220][ T0] ? drain_pages+0x1b0/0x1b0
[ 2.302018][ T0] ? check_free_page_bad (page_alloc.c:?)
[ 2.302776][ T0] start_kernel (??:?)
[ 2.303444][ T0] ? set_init_arg (main.c:?)
[ 2.304061][ T0] x86_64_start_reservations (??:?)
[ 2.304807][ T0] x86_64_start_kernel (??:?)
[ 2.305485][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 2.306305][ T0] </TASK>
[ 2.306737][ T0] ================================================================================
[ 2.307991][ T0] ================================================================================
[ 2.309204][ T0] UBSAN: misaligned-access in lib/string.c:210:32
[ 2.310355][ T0] store to misaligned address (____ptrval____) for type 'long unsigned int'
[ 2.311500][ T0] which requires 8 byte alignment
[ 2.312155][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc2-00025-g1702e834ae4c #1
[ 2.313373][ T0] Call Trace:
[ 2.313876][ T0] <TASK>
[ 2.314250][ T0] dump_stack_lvl (??:?)
[ 2.314869][ T0] dump_stack (??:?)
[ 2.315442][ T0] ubsan_epilogue (ubsan.c:?)
[ 2.316043][ T0] ubsan_type_mismatch_common.cold (ubsan.c:?)
[ 2.316855][ T0] __ubsan_handle_type_mismatch_v1 (??:?)
[ 2.317672][ T0] strscpy (??:?)
[ 2.318286][ T0] ? read_word_at_a_time (??:?)
[ 2.318997][ T0] ? strcmp (??:?)
[ 2.319536][ T0] ip_auto_config_setup (ipconfig.c:?)
[ 2.320240][ T0] ? strlen (??:?)
[ 2.320770][ T0] unknown_bootoption (main.c:?)
[ 2.321420][ T0] parse_args (??:?)
[ 2.322091][ T0] ? set_init_arg (main.c:?)
[ 2.322736][ T0] ? parameq (??:?)
[ 2.323309][ T0] ? mutex_unlock (??:?)
[ 2.323913][ T0] ? __cpuhp_setup_state_cpuslocked (??:?)
[ 2.324766][ T0] ? drain_pages+0x1b0/0x1b0
[ 2.325481][ T0] ? check_free_page_bad (page_alloc.c:?)
[ 2.326251][ T0] start_kernel (??:?)
[ 2.326858][ T0] ? set_init_arg (main.c:?)
[ 2.327465][ T0] x86_64_start_reservations (??:?)
[ 2.328177][ T0] x86_64_start_kernel (??:?)
[ 2.328837][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 2.329613][ T0] </TASK>
[ 2.330105][ T0] ================================================================================
[ 2.333180][ T0] sysrq: sysrq always enabled.
[ 2.334696][ T0] ignoring the deprecated load_ramdisk= option
[ 2.336723][ T0] Unknown kernel command line parameters "RESULT_ROOT=/result/boot/300/vm-snb/debian-11.1-x86_64-20220510.cgz/x86_64-randconfig-a005-20220829/gcc-11/1702e834ae4cacd37f5691c112bd1f0d0eb88ff2/19 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-a005-20220829/gcc-11/1702e834ae4cacd37f5691c112bd1f0d0eb88ff2/vmlinuz-6.0.0-rc2-00025-g1702e834ae4c branch=linux-review/Sathvika-Vasireddy/objtool-Enable-and-implement-mcount-option-on-powerpc/20220829-135724 job=/lkp/jobs/scheduled/vm-meta-93/boot-300-debian-11.1-x86_64-20220510.cgz-1702e834ae4cacd37f5691c112bd1f0d0eb88ff2-20220830-15480-1xn43ii-15.yaml user=lkp ARCH=x86_64 kconfig=x86_64-randconfig-a005-20220829 commit=1702e834ae4cacd37f5691c112bd1f0d0eb88ff2 vmalloc=256M max_uptime=600 LKP_SERVER=internal-lkp-server selinux=0 softlockup_panic=1 prompt_ramdisk=0 vga=normal", will be passed to user space.
[ 2.356403][ T0] Dentry cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[ 2.362921][ T0] Inode-cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 2.365443][ T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[ 2.371216][ T0] stackdepot hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 2.372498][ T0] software IO TLB: area num 1.
[ 2.516303][ T0] ================================================================================
[ 2.517626][ T0] UBSAN: misaligned-access in arch/x86/kernel/traps.c:99:9
[ 2.518882][ T0] load of misaligned address (____ptrval____) for type 'short unsigned int'
[ 2.519991][ T0] which requires 2 byte alignment
[ 2.520659][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc2-00025-g1702e834ae4c #1
[ 2.521849][ T0] Call Trace:
[ 2.522307][ T0] <TASK>
[ 2.522723][ T0] dump_stack_lvl (??:?)
[ 2.523395][ T0] ? __page_table_check_zero (??:?)
[ 2.524152][ T0] dump_stack (??:?)
[ 2.524710][ T0] ubsan_epilogue (ubsan.c:?)
[ 2.525295][ T0] ubsan_type_mismatch_common.cold (ubsan.c:?)
[ 2.526118][ T0] ? __page_table_check_zero (??:?)
[ 2.526838][ T0] __ubsan_handle_type_mismatch_v1 (??:?)
[ 2.527609][ T0] handle_bug (traps.c:?)
[ 2.528183][ T0] exc_invalid_op (??:?)
[ 2.528829][ T0] asm_exc_invalid_op (??:?)
[ 2.529509][ T0] RIP: 0010:__page_table_check_zero (??:?)
[ 2.530401][ T0] Code: c7 60 be d2 85 49 83 c4 01 e8 7d 93 fa ff 48 03 1d 66 d8 59 04 41 83 fd 3f 0f 86 65 ff ff ff e9 a9 d3 06 02 0f 0b 0f 0b 0f 0b <0f> 0b 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 31 d2 31 c9
All code
========
0: c7 (bad)
1: 60 (bad)
2: be d2 85 49 83 mov $0x834985d2,%esi
7: c4 01 e8 7d (bad)
b: 93 xchg %eax,%ebx
c: fa cli
d: ff 48 03 decl 0x3(%rax)
10: 1d 66 d8 59 04 sbb $0x459d866,%eax
15: 41 83 fd 3f cmp $0x3f,%r13d
19: 0f 86 65 ff ff ff jbe 0xffffffffffffff84
1f: e9 a9 d3 06 02 jmpq 0x206d3cd
24: 0f 0b ud2
26: 0f 0b ud2
28: 0f 0b ud2
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 83 c4 10 add $0x10,%rsp
30: 5b pop %rbx
31: 41 5c pop %r12
33: 41 5d pop %r13
35: 41 5e pop %r14
37: 41 5f pop %r15
39: 5d pop %rbp
3a: 31 c0 xor %eax,%eax
3c: 31 d2 xor %edx,%edx
3e: 31 c9 xor %ecx,%ecx
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 83 c4 10 add $0x10,%rsp
6: 5b pop %rbx
7: 41 5c pop %r12
9: 41 5d pop %r13
b: 41 5e pop %r14
d: 41 5f pop %r15
f: 5d pop %rbp
10: 31 c0 xor %eax,%eax
12: 31 d2 xor %edx,%edx
14: 31 c9 xor %ecx,%ecx
[ 2.532979][ T0] RSP: 0000:ffffffff84a07cb0 EFLAGS: 00010046
[ 2.533894][ T0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 2.534928][ T0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 2.535942][ T0] RBP: ffffffff84a07ce8 R08: 0000000000000000 R09: 0000000000000000
[ 2.536932][ T0] R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0000004000
[ 2.537988][ T0] R13: 0000000000000008 R14: ffffea0000007ff4 R15: 0000000000000000
[ 2.539077][ T0] __free_pages_ok (page_alloc.c:?)
[ 2.539786][ T0] __free_pages_core (??:?)
[ 2.540457][ T0] memblock_free_pages (??:?)
[ 2.541129][ T0] memblock_free_all (??:?)
[ 2.541858][ T0] ? reset_all_zones_managed_pages (??:?)
[ 2.542685][ T0] ? swiotlb_init_io_tlb_mem+0x202/0x2d0
[ 2.543634][ T0] ? swiotlb_init_remap (??:?)
[ 2.544351][ T0] mem_init (??:?)
[ 2.544870][ T0] mm_init (main.c:?)
[ 2.545396][ T0] start_kernel (??:?)
[ 2.546049][ T0] x86_64_start_reservations (??:?)
[ 2.546754][ T0] x86_64_start_kernel (??:?)
[ 2.547397][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 2.548149][ T0] </TASK>
[ 2.548550][ T0] ================================================================================
[ 2.549810][ T0] ================================================================================
[ 2.551092][ T0] UBSAN: misaligned-access in arch/x86/kernel/traps.c:99:9
[ 2.552328][ T0] load of misaligned address (____ptrval____) for type 'short unsigned int'
[ 2.553461][ T0] which requires 2 byte alignment
[ 2.554190][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc2-00025-g1702e834ae4c #1
[ 2.555346][ T0] Call Trace:
[ 2.555792][ T0] <TASK>
[ 2.556188][ T0] dump_stack_lvl (??:?)
[ 2.556809][ T0] ? __page_table_check_zero (??:?)
[ 2.557618][ T0] dump_stack (??:?)
[ 2.558210][ T0] ubsan_epilogue (ubsan.c:?)
[ 2.558807][ T0] ubsan_type_mismatch_common.cold (ubsan.c:?)
[ 2.559628][ T0] ? __page_table_check_zero (??:?)
[ 2.560331][ T0] ? __page_table_check_zero (??:?)
[ 2.561056][ T0] __ubsan_handle_type_mismatch_v1 (??:?)
[ 2.561939][ T0] is_valid_bugaddr (??:?)
[ 2.562620][ T0] report_bug (??:?)
[ 2.563239][ T0] ? find_bug (??:?)
[ 2.563827][ T0] ? ubsan_epilogue (ubsan.c:?)
[ 2.564469][ T0] ? ubsan_type_mismatch_common.cold (ubsan.c:?)
[ 2.565309][ T0] ? __page_table_check_zero (??:?)
[ 2.566050][ T0] ? __page_table_check_zero (??:?)
[ 2.566792][ T0] handle_bug (traps.c:?)
[ 2.567383][ T0] exc_invalid_op (??:?)
[ 2.567954][ T0] asm_exc_invalid_op (??:?)
[ 2.568585][ T0] RIP: 0010:__page_table_check_zero (??:?)
[ 2.569370][ T0] Code: c7 60 be d2 85 49 83 c4 01 e8 7d 93 fa ff 48 03 1d 66 d8 59 04 41 83 fd 3f 0f 86 65 ff ff ff e9 a9 d3 06 02 0f 0b 0f 0b 0f 0b <0f> 0b 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 31 d2 31 c9
All code
========
0: c7 (bad)
1: 60 (bad)
2: be d2 85 49 83 mov $0x834985d2,%esi
7: c4 01 e8 7d (bad)
b: 93 xchg %eax,%ebx
c: fa cli
d: ff 48 03 decl 0x3(%rax)
10: 1d 66 d8 59 04 sbb $0x459d866,%eax
15: 41 83 fd 3f cmp $0x3f,%r13d
19: 0f 86 65 ff ff ff jbe 0xffffffffffffff84
1f: e9 a9 d3 06 02 jmpq 0x206d3cd
24: 0f 0b ud2
26: 0f 0b ud2
28: 0f 0b ud2
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 83 c4 10 add $0x10,%rsp
30: 5b pop %rbx
31: 41 5c pop %r12
33: 41 5d pop %r13
35: 41 5e pop %r14
37: 41 5f pop %r15
39: 5d pop %rbp
3a: 31 c0 xor %eax,%eax
3c: 31 d2 xor %edx,%edx
3e: 31 c9 xor %ecx,%ecx
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 83 c4 10 add $0x10,%rsp
6: 5b pop %rbx
7: 41 5c pop %r12
9: 41 5d pop %r13
b: 41 5e pop %r14
d: 41 5f pop %r15
f: 5d pop %rbp
10: 31 c0 xor %eax,%eax
12: 31 d2 xor %edx,%edx
14: 31 c9 xor %ecx,%ecx
[ 2.572025][ T0] RSP: 0000:ffffffff84a07cb0 EFLAGS: 00010046
[ 2.572812][ T0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 2.573853][ T0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 2.574917][ T0] RBP: ffffffff84a07ce8 R08: 0000000000000000 R09: 0000000000000000
[ 2.575905][ T0] R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0000004000
[ 2.576832][ T0] R13: 0000000000000008 R14: ffffea0000007ff4 R15: 0000000000000000
[ 2.577846][ T0] __free_pages_ok (page_alloc.c:?)
[ 2.578485][ T0] __free_pages_core (??:?)
[ 2.579103][ T0] memblock_free_pages (??:?)
[ 2.579764][ T0] memblock_free_all (??:?)
[ 2.580395][ T0] ? reset_all_zones_managed_pages (??:?)
[ 2.581163][ T0] ? swiotlb_init_io_tlb_mem+0x202/0x2d0
[ 2.582076][ T0] ? swiotlb_init_remap (??:?)
[ 2.582778][ T0] mem_init (??:?)
[ 2.583307][ T0] mm_init (main.c:?)
[ 2.583841][ T0] start_kernel (??:?)
[ 2.584430][ T0] x86_64_start_reservations (??:?)
[ 2.585123][ T0] x86_64_start_kernel (??:?)
[ 2.585844][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 2.586642][ T0] </TASK>
[ 2.587067][ T0] ================================================================================
[ 2.588386][ T0] ------------[ cut here ]------------
[ 2.589105][ T0] kernel BUG at mm/page_table_check.c:132!
[ 2.589946][ T0] invalid opcode: 0000 [#1] KASAN
[ 2.590551][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc2-00025-g1702e834ae4c #1
[ 2.591718][ T0] RIP: 0010:__page_table_check_zero (??:?)
[ 2.592520][ T0] Code: c7 60 be d2 85 49 83 c4 01 e8 7d 93 fa ff 48 03 1d 66 d8 59 04 41 83 fd 3f 0f 86 65 ff ff ff e9 a9 d3 06 02 0f 0b 0f 0b 0f 0b <0f> 0b 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 31 d2 31 c9
All code
========
0: c7 (bad)
1: 60 (bad)
2: be d2 85 49 83 mov $0x834985d2,%esi
7: c4 01 e8 7d (bad)
b: 93 xchg %eax,%ebx
c: fa cli
d: ff 48 03 decl 0x3(%rax)
10: 1d 66 d8 59 04 sbb $0x459d866,%eax
15: 41 83 fd 3f cmp $0x3f,%r13d
19: 0f 86 65 ff ff ff jbe 0xffffffffffffff84
1f: e9 a9 d3 06 02 jmpq 0x206d3cd
24: 0f 0b ud2
26: 0f 0b ud2
28: 0f 0b ud2
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 83 c4 10 add $0x10,%rsp
30: 5b pop %rbx
31: 41 5c pop %r12
33: 41 5d pop %r13
35: 41 5e pop %r14
37: 41 5f pop %r15
39: 5d pop %rbp
3a: 31 c0 xor %eax,%eax
3c: 31 d2 xor %edx,%edx
3e: 31 c9 xor %ecx,%ecx
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 83 c4 10 add $0x10,%rsp
6: 5b pop %rbx
7: 41 5c pop %r12
9: 41 5d pop %r13
b: 41 5e pop %r14
d: 41 5f pop %r15
f: 5d pop %rbp
10: 31 c0 xor %eax,%eax
12: 31 d2 xor %edx,%edx
14: 31 c9 xor %ecx,%ecx
[ 2.595139][ T0] RSP: 0000:ffffffff84a07cb0 EFLAGS: 00010046
[ 2.595960][ T0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 2.596981][ T0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 2.598043][ T0] RBP: ffffffff84a07ce8 R08: 0000000000000000 R09: 0000000000000000
[ 2.599052][ T0] R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0000004000
[ 2.600146][ T0] R13: 0000000000000008 R14: ffffea0000007ff4 R15: 0000000000000000
[ 2.601229][ T0] FS: 0000000000000000(0000) GS:ffffffff84d7d000(0000) knlGS:0000000000000000
[ 2.602414][ T0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.603288][ T0] CR2: ffff88843ffff000 CR3: 0000000004a3a000 CR4: 00000000000406b0
[ 2.604305][ T0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2.605397][ T0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2.606520][ T0] Call Trace:
[ 2.606950][ T0] <TASK>
[ 2.607338][ T0] __free_pages_ok (page_alloc.c:?)
[ 2.608003][ T0] __free_pages_core (??:?)
[ 2.608624][ T0] memblock_free_pages (??:?)
[ 2.609285][ T0] memblock_free_all (??:?)
[ 2.609991][ T0] ? reset_all_zones_managed_pages (??:?)
[ 2.610798][ T0] ? swiotlb_init_io_tlb_mem+0x202/0x2d0
[ 2.611710][ T0] ? swiotlb_init_remap (??:?)
[ 2.612441][ T0] mem_init (??:?)
[ 2.612952][ T0] mm_init (main.c:?)
[ 2.613456][ T0] start_kernel (??:?)
[ 2.614120][ T0] x86_64_start_reservations (??:?)
[ 2.614846][ T0] x86_64_start_kernel (??:?)
[ 2.615526][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 2.616324][ T0] </TASK>
[ 2.616727][ T0] Modules linked in:
[ 2.616735][ T0] ================================================================================
[ 2.618507][ T0] UBSAN: misaligned-access in kernel/module/main.c:3150:2
[ 2.619677][ T0] member access within misaligned address (____ptrval____) for type 'struct module'
[ 2.620908][ T0] which requires 64 byte alignment
[ 2.621604][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.0.0-rc2-00025-g1702e834ae4c #1
[ 2.622826][ T0] Call Trace:
[ 2.623265][ T0] <TASK>
[ 2.623646][ T0] dump_stack_lvl (??:?)
[ 2.624232][ T0] dump_stack (??:?)
[ 2.624774][ T0] ubsan_epilogue (ubsan.c:?)
[ 2.625339][ T0] ubsan_type_mismatch_common.cold (ubsan.c:?)
[ 2.626164][ T0] __ubsan_handle_type_mismatch_v1 (??:?)
[ 2.626944][ T0] print_modules (??:?)
[ 2.627575][ T0] ? load_module.cold (??:?)
[ 2.628223][ T0] ? secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 2.629050][ T0] die (??:?)
[ 2.629525][ T0] do_trap (traps.c:?)
[ 2.630074][ T0] ? __page_table_check_zero (??:?)
[ 2.630849][ T0] handle_invalid_op (traps.c:?)
[ 2.631533][ T0] ? __page_table_check_zero (??:?)
[ 2.632264][ T0] exc_invalid_op (??:?)
[ 2.632874][ T0] asm_exc_invalid_op (??:?)
[ 2.633525][ T0] RIP: 0010:__page_table_check_zero (??:?)
[ 2.634406][ T0] Code: c7 60 be d2 85 49 83 c4 01 e8 7d 93 fa ff 48 03 1d 66 d8 59 04 41 83 fd 3f 0f 86 65 ff ff ff e9 a9 d3 06 02 0f 0b 0f 0b 0f 0b <0f> 0b 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 31 d2 31 c9
All code
========
0: c7 (bad)
1: 60 (bad)
2: be d2 85 49 83 mov $0x834985d2,%esi
7: c4 01 e8 7d (bad)
b: 93 xchg %eax,%ebx
c: fa cli
d: ff 48 03 decl 0x3(%rax)
10: 1d 66 d8 59 04 sbb $0x459d866,%eax
15: 41 83 fd 3f cmp $0x3f,%r13d
19: 0f 86 65 ff ff ff jbe 0xffffffffffffff84
1f: e9 a9 d3 06 02 jmpq 0x206d3cd
24: 0f 0b ud2
26: 0f 0b ud2
28: 0f 0b ud2
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 83 c4 10 add $0x10,%rsp
30: 5b pop %rbx
31: 41 5c pop %r12
33: 41 5d pop %r13
35: 41 5e pop %r14
37: 41 5f pop %r15
39: 5d pop %rbp
3a: 31 c0 xor %eax,%eax
3c: 31 d2 xor %edx,%edx
3e: 31 c9 xor %ecx,%ecx
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 83 c4 10 add $0x10,%rsp
6: 5b pop %rbx
7: 41 5c pop %r12
9: 41 5d pop %r13
b: 41 5e pop %r14
d: 41 5f pop %r15
f: 5d pop %rbp
10: 31 c0 xor %eax,%eax
12: 31 d2 xor %edx,%edx
14: 31 c9 xor %ecx,%ecx
[ 2.636984][ T0] RSP: 0000:ffffffff84a07cb0 EFLAGS: 00010046
[ 2.637790][ T0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 2.638799][ T0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 2.639841][ T0] RBP: ffffffff84a07ce8 R08: 0000000000000000 R09: 0000000000000000
[ 2.640943][ T0] R10: 0000000000000000 R11: 0000000000000000 R12: ffffea0000004000
[ 2.642025][ T0] R13: 0000000000000008 R14: ffffea0000007ff4 R15: 0000000000000000
[ 2.643048][ T0] __free_pages_ok (page_alloc.c:?)
[ 2.643667][ T0] __free_pages_core (??:?)
[ 2.644334][ T0] memblock_free_pages (??:?)
[ 2.645007][ T0] memblock_free_all (??:?)
[ 2.645689][ T0] ? reset_all_zones_managed_pages (??:?)
[ 2.646540][ T0] ? swiotlb_init_io_tlb_mem+0x202/0x2d0
[ 2.647444][ T0] ? swiotlb_init_remap (??:?)
[ 2.648112][ T0] mem_init (??:?)
[ 2.648612][ T0] mm_init (main.c:?)
[ 2.649133][ T0] start_kernel (??:?)
[ 2.649817][ T0] x86_64_start_reservations (??:?)
[ 2.650517][ T0] x86_64_start_kernel (??:?)
[ 2.651174][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 2.651936][ T0] </TASK>
[ 2.652313][ T0] ================================================================================
[ 2.653508][ T0]
[ 2.653863][ T0] ---[ end trace 0000000000000000 ]---
[ 2.654559][ T0] RIP: 0010:__page_table_check_zero (??:?)
[ 2.655425][ T0] Code: c7 60 be d2 85 49 83 c4 01 e8 7d 93 fa ff 48 03 1d 66 d8 59 04 41 83 fd 3f 0f 86 65 ff ff ff e9 a9 d3 06 02 0f 0b 0f 0b 0f 0b <0f> 0b 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d 31 c0 31 d2 31 c9
All code
========
0: c7 (bad)
1: 60 (bad)
2: be d2 85 49 83 mov $0x834985d2,%esi
7: c4 01 e8 7d (bad)
b: 93 xchg %eax,%ebx
c: fa cli
d: ff 48 03 decl 0x3(%rax)
10: 1d 66 d8 59 04 sbb $0x459d866,%eax
15: 41 83 fd 3f cmp $0x3f,%r13d
19: 0f 86 65 ff ff ff jbe 0xffffffffffffff84
1f: e9 a9 d3 06 02 jmpq 0x206d3cd
24: 0f 0b ud2
26: 0f 0b ud2
28: 0f 0b ud2
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 83 c4 10 add $0x10,%rsp
30: 5b pop %rbx
31: 41 5c pop %r12
33: 41 5d pop %r13
35: 41 5e pop %r14
37: 41 5f pop %r15
39: 5d pop %rbp
3a: 31 c0 xor %eax,%eax
3c: 31 d2 xor %edx,%edx
3e: 31 c9 xor %ecx,%ecx
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 83 c4 10 add $0x10,%rsp
6: 5b pop %rbx
7: 41 5c pop %r12
9: 41 5d pop %r13
b: 41 5e pop %r14
d: 41 5f pop %r15
f: 5d pop %rbp
10: 31 c0 xor %eax,%eax
12: 31 d2 xor %edx,%edx
14: 31 c9 xor %ecx,%ecx
To reproduce:
# build kernel
cd linux
cp config-6.0.0-rc2-00025-g1702e834ae4c .config
make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
cd <mod-install-dir>
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 <bzImage> -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
View attachment "config-6.0.0-rc2-00025-g1702e834ae4c" of type "text/plain" (131358 bytes)
View attachment "job-script" of type "text/plain" (5381 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (6448 bytes)
Powered by blists - more mailing lists