Greeting,
FYI, we noticed the following commit (built with gcc-11):
commit: 001bea109daf51941db554c798c1c7de3e98b243 ("bitops: unify non-atomic bitops prototypes across architectures")
https://github.com/alobakin/linux bitops
in testcase: nvml
version: nvml-x86_64-3de7d358f-1_20211217
with following parameters:
test: pmem
group: pmemobjcli
nr_pmem: 1
fs: ext4
mount_option: dax
bp_memmap: 32G!4G
ucode: 0x700001c
on test machine: 16 threads 1 sockets Intel(R) Xeon(R) CPU D-1541 @ 2.10GHz with 48G memory
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 <[email protected]>
[ 3.971080][ T0] BUG: KASAN: wild-memory-access in dmar_parse_one_rhsa (arch/x86/include/asm/bitops.h:214 arch/x86/include/asm/bitops.h:226 include/asm-generic/bitops/instrumented-non-atomic.h:142 include/linux/nodemask.h:415 drivers/iommu/intel/dmar.c:497)
[ 3.978906][ T0] Read of size 8 at addr 1fffffff853197d8 by task swapper/0/0
[ 3.986212][ T0]
[ 3.988406][ T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-rc3-00030-g001bea109daf #1
[ 3.997097][ T0] Hardware name: Supermicro SYS-5018D-FN4T/X10SDV-8C-TLN4F, BIOS 1.1 03/02/2016
[ 4.005965][ T0] Call Trace:
[ 4.009109][ T0] <TASK>
[ 4.011910][ T0] ? dmar_parse_one_rhsa (arch/x86/include/asm/bitops.h:214 arch/x86/include/asm/bitops.h:226 include/asm-generic/bitops/instrumented-non-atomic.h:142 include/linux/nodemask.h:415 drivers/iommu/intel/dmar.c:497)
[ 4.017045][ T0] dump_stack_lvl (lib/dump_stack.c:107 (discriminator 1))
[ 4.021408][ T0] kasan_report (mm/kasan/report.c:162 mm/kasan/report.c:493)
[ 4.025680][ T0] ? dmar_parse_one_rhsa (arch/x86/include/asm/bitops.h:214 arch/x86/include/asm/bitops.h:226 include/asm-generic/bitops/instrumented-non-atomic.h:142 include/linux/nodemask.h:415 drivers/iommu/intel/dmar.c:497)
[ 4.030818][ T0] kasan_check_range (mm/kasan/generic.c:190)
[ 4.035525][ T0] dmar_parse_one_rhsa (arch/x86/include/asm/bitops.h:214 arch/x86/include/asm/bitops.h:226 include/asm-generic/bitops/instrumented-non-atomic.h:142 include/linux/nodemask.h:415 drivers/iommu/intel/dmar.c:497)
[ 4.040492][ T0] dmar_walk_remapping_entries (drivers/iommu/intel/dmar.c:609)
[ 4.046149][ T0] parse_dmar_table (drivers/iommu/intel/dmar.c:671)
[ 4.050855][ T0] ? dmar_table_detect (drivers/iommu/intel/dmar.c:633)
[ 4.055647][ T0] ? dmar_free_dev_scope (drivers/iommu/intel/dmar.c:408)
[ 4.060787][ T0] ? init_dmars (drivers/iommu/intel/iommu.c:3359)
[ 4.065148][ T0] ? iommu_resume (drivers/iommu/intel/iommu.c:3419)
[ 4.069680][ T0] ? dmar_walk_dsm_resource+0x300/0x300
[ 4.075685][ T0] ? dmar_acpi_insert_dev_scope (drivers/iommu/intel/dmar.c:466)
[ 4.081431][ T0] ? dmar_check_one_atsr (drivers/iommu/intel/iommu.c:3521)
[ 4.086571][ T0] dmar_table_init (drivers/iommu/intel/dmar.c:846)
[ 4.091018][ T0] intel_prepare_irq_remapping (drivers/iommu/intel/irq_remapping.c:742)
[ 4.096591][ T0] irq_remapping_prepare (drivers/iommu/irq_remapping.c:102)
[ 4.101558][ T0] enable_IR_x2apic (arch/x86/kernel/apic/apic.c:1928)
[ 4.106177][ T0] default_setup_apic_routing (arch/x86/kernel/apic/probe_64.c:25 (discriminator 1))
[ 4.111661][ T0] apic_intr_mode_init (arch/x86/kernel/apic/apic.c:1446)
[ 4.116541][ T0] x86_late_time_init (arch/x86/kernel/time.c:101)
[ 4.121247][ T0] start_kernel (init/main.c:1101)
[ 4.125606][ T0] secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:358)
[ 4.131353][ T0] </TASK>
[ 4.134243][ T0] ==================================================================
[ 4.142161][ T0] Disabling lock debugging due to kernel taint
[ 4.148174][ T0] DMAR-IR: IOAPIC id 8 under DRHD base 0xfbffc000 IOMMU 0
[ 4.155230][ T0] DMAR-IR: IOAPIC id 9 under DRHD base 0xfbffc000 IOMMU 0
[ 4.162287][ T0] DMAR-IR: HPET id 0 under DRHD base 0xfbffc000
[ 4.168386][ T0] DMAR-IR: x2apic is disabled because BIOS sets x2apic opt out bit.
[ 4.168388][ T0] DMAR-IR: Use 'intremap=no_x2apic_optout' to override the BIOS setting.
[ 4.184851][ T0] DMAR-IR: IRQ remapping was enabled on dmar0 but we are not in kdump mode
[ 4.193386][ T0] DMAR-IR: Enabled IRQ remapping in xapic mode
[ 4.199389][ T0] x2apic: IRQ remapping doesn't support X2APIC mode
[ 4.205839][ T0] Switched APIC routing to physical flat.
[ 4.211420][ T0] masked ExtINT on CPU#0
[ 4.215858][ T0] ENABLING IO-APIC IRQs
[ 4.219887][ T0] init IO_APIC IRQs
[ 4.223554][ T0] apic 8 pin 0 not connected
[ 4.228102][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.242262][ T0] IOAPIC[0]: Preconfigured routing entry (8-1 -> IRQ 1 Level:0 ActiveLow:0)
[ 4.250797][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:30 Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.264961][ T0] IOAPIC[0]: Preconfigured routing entry (8-2 -> IRQ 0 Level:0 ActiveLow:0)
[ 4.273501][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.287663][ T0] IOAPIC[0]: Preconfigured routing entry (8-3 -> IRQ 3 Level:0 ActiveLow:0)
[ 4.296195][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.310354][ T0] IOAPIC[0]: Preconfigured routing entry (8-4 -> IRQ 4 Level:0 ActiveLow:0)
[ 4.318885][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.333042][ T0] IOAPIC[0]: Preconfigured routing entry (8-5 -> IRQ 5 Level:0 ActiveLow:0)
[ 4.341583][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.355742][ T0] IOAPIC[0]: Preconfigured routing entry (8-6 -> IRQ 6 Level:0 ActiveLow:0)
[ 4.364273][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.378431][ T0] IOAPIC[0]: Preconfigured routing entry (8-7 -> IRQ 7 Level:0 ActiveLow:0)
[ 4.386964][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.401120][ T0] IOAPIC[0]: Preconfigured routing entry (8-8 -> IRQ 8 Level:0 ActiveLow:0)
[ 4.409653][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.423810][ T0] IOAPIC[0]: Preconfigured routing entry (8-9 -> IRQ 9 Level:1 ActiveLow:0)
[ 4.432347][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.446509][ T0] IOAPIC[0]: Preconfigured routing entry (8-10 -> IRQ 10 Level:0 ActiveLow:0)
[ 4.455217][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.469371][ T0] IOAPIC[0]: Preconfigured routing entry (8-11 -> IRQ 11 Level:0 ActiveLow:0)
[ 4.478077][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.492236][ T0] IOAPIC[0]: Preconfigured routing entry (8-12 -> IRQ 12 Level:0 ActiveLow:0)
[ 4.500941][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.515097][ T0] IOAPIC[0]: Preconfigured routing entry (8-13 -> IRQ 13 Level:0 ActiveLow:0)
[ 4.523807][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.537961][ T0] IOAPIC[0]: Preconfigured routing entry (8-14 -> IRQ 14 Level:0 ActiveLow:0)
[ 4.546671][ T0] IOAPIC[8]: Set IRTE entry (P:1 FPD:0 Dst_Mode:0 Redir_hint:1 Trig_Mode:0 Dlvry_Mode:0 Avail:0 Vector:EF Dest:00000000 SID:F0FF SQ:0 SVT:1)
[ 4.560824][ T0] IOAPIC[0]: Preconfigured routing entry (8-15 -> IRQ 15 Level:0 ActiveLow:0)
[ 4.569519][ T0] apic 8 pin 16 not connected
[ 4.574133][ T0] apic 8 pin 17 not connected
[ 4.578743][ T0] apic 8 pin 18 not connected
[ 4.583356][ T0] apic 8 pin 19 not connected
[ 4.587975][ T0] apic 8 pin 20 not connected
[ 4.592593][ T0] apic 8 pin 21 not connected
[ 4.597203][ T0] apic 8 pin 22 not connected
[ 4.601816][ T0] apic 8 pin 23 not connected
[ 4.606434][ T0] apic 9 pin 0 not connected
[ 4.610958][ T0] apic 9 pin 1 not connected
[ 4.615483][ T0] apic 9 pin 2 not connected
[ 4.620015][ T0] apic 9 pin 3 not connected
[ 4.624539][ T0] apic 9 pin 4 not connected
[ 4.629064][ T0] apic 9 pin 5 not connected
[ 4.633596][ T0] apic 9 pin 6 not connected
[ 4.638121][ T0] apic 9 pin 7 not connected
[ 4.642653][ T0] apic 9 pin 8 not connected
[ 4.647185][ T0] apic 9 pin 9 not connected
[ 4.651710][ T0] apic 9 pin 10 not connected
[ 4.656322][ T0] apic 9 pin 11 not connected
[ 4.660940][ T0] apic 9 pin 12 not connected
[ 4.665552][ T0] apic 9 pin 13 not connected
[ 4.670172][ T0] apic 9 pin 14 not connected
[ 4.674789][ T0] apic 9 pin 15 not connected
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
sudo bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
sudo bin/lkp run generated-yaml-file
# 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