Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: b7a4baac6a2866224710f92d96fdf2ed5227e392 ("x86/e820: implement e820__range_remove() using __e820__ranage_update()")
https://git.kernel.org/cgit/linux/kernel/git/rppt/linux.git x86/e820-update-range
in testcase: leaking-addresses
version: leaking-addresses-x86_64-cf2a85e-1_20220129
with following parameters:
ucode: 0x28
on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz with 16G 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]>
[ 1.137094][ T0] WARNING: BIOS bug: CPU MTRRs don't cover all of memory, losing 114MB of RAM.
[ 1.145783][ T0] ------------[ cut here ]------------
[ 1.151029][ T0] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/cpu/mtrr/cleanup.c:978 mtrr_trim_uncached_memory (arch/x86/kernel/cpu/mtrr/cleanup.c:978 (discriminator 1))
[ 1.161951][ T0] Modules linked in:
[ 1.165651][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 5.17.0-rc3-00002-gb7a4baac6a28 #1
[ 1.174082][ T0] Hardware name: Dell Inc. OptiPlex 9020/0DNKMN, BIOS A05 12/05/2013
[ 1.181909][ T0] RIP: 0010:mtrr_trim_uncached_memory (arch/x86/kernel/cpu/mtrr/cleanup.c:978 (discriminator 1))
[ 1.188102][ T0] Code: 83 e0 07 48 c1 e9 03 83 c0 03 8a 14 11 38 d0 7c 10 84 d2 74 0c 48 c7 c7 e4 82 ca 85 e8 50 ca d8 fb 83 3d ad 01 18 00 00 75 02 <0f> 0b 48 c7 c7 80 24 c3 83 41 bd 01 00 00 00 e8 5d dd 9a fd e8 16
All code
========
0: 83 e0 07 and $0x7,%eax
3: 48 c1 e9 03 shr $0x3,%rcx
7: 83 c0 03 add $0x3,%eax
a: 8a 14 11 mov (%rcx,%rdx,1),%dl
d: 38 d0 cmp %dl,%al
f: 7c 10 jl 0x21
11: 84 d2 test %dl,%dl
13: 74 0c je 0x21
15: 48 c7 c7 e4 82 ca 85 mov $0xffffffff85ca82e4,%rdi
1c: e8 50 ca d8 fb callq 0xfffffffffbd8ca71
21: 83 3d ad 01 18 00 00 cmpl $0x0,0x1801ad(%rip) # 0x1801d5
28: 75 02 jne 0x2c
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 c7 c7 80 24 c3 83 mov $0xffffffff83c32480,%rdi
33: 41 bd 01 00 00 00 mov $0x1,%r13d
39: e8 5d dd 9a fd callq 0xfffffffffd9add9b
3e: e8 .byte 0xe8
3f: 16 (bad)
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 c7 c7 80 24 c3 83 mov $0xffffffff83c32480,%rdi
9: 41 bd 01 00 00 00 mov $0x1,%r13d
f: e8 5d dd 9a fd callq 0xfffffffffd9add71
14: e8 .byte 0xe8
15: 16 (bad)
[ 1.207372][ T0] RSP: 0000:ffffffff84607ce0 EFLAGS: 00010046 ORIG_RAX: 0000000000000000
[ 1.215543][ T0] RAX: 0000000000000007 RBX: ffffffff85cac478 RCX: 1ffffffff0b9505c
[ 1.223285][ T0] RDX: dffffc0000000000 RSI: ffffffff84607a08 RDI: fffffbfff08c0f8f
[ 1.231025][ T0] RBP: 000000000720a000 R08: 000000000000004c R09: fffffbfff08c0f2b
[ 1.238767][ T0] R10: ffffffff84607957 R11: fffffbfff08c0f2a R12: 000000000041ee00
[ 1.246510][ T0] R13: 0000000000000001 R14: 00000000000dd000 R15: 0000000000100000
[ 1.254251][ T0] FS: 0000000000000000(0000) GS:ffffffff85aca000(0000) knlGS:0000000000000000
[ 1.262937][ T0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1.269301][ T0] CR2: ffff888000000413 CR3: 000000041e3f4000 CR4: 00000000000406a0
[ 1.277042][ T0] Call Trace:
[ 1.280137][ T0] <TASK>
[ 1.282892][ T0] ? amd_special_default_mtrr (arch/x86/kernel/cpu/mtrr/cleanup.c:878)
[ 1.288224][ T0] ? _raw_spin_lock (arch/x86/include/asm/atomic.h:202 include/linux/atomic/atomic-instrumented.h:543 include/asm-generic/qspinlock.h:82 include/linux/spinlock.h:185 include/linux/spinlock_api_smp.h:134 kernel/locking/spinlock.c:154)
[ 1.292783][ T0] ? setup_arch (arch/x86/kernel/setup.c:976)
[ 1.297169][ T0] ? reserve_standard_io_resources (arch/x86/kernel/setup.c:757)
[ 1.302932][ T0] ? _printk (kernel/printk/printk.c:2261)
[ 1.306802][ T0] ? record_print_text.cold (kernel/printk/printk.c:2261)
[ 1.311964][ T0] ? cgroup_init_early (kernel/cgroup/cgroup.c:5814 (discriminator 13))
[ 1.316867][ T0] ? rdmacg_css_free (kernel/cgroup/rdma.c:564)
[ 1.321425][ T0] ? start_kernel (init/main.c:951)
[ 1.325811][ T0] ? secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:300)
[ 1.331661][ T0] </TASK>
[ 1.334497][ T0] ---[ end trace 0000000000000000 ]---
[ 1.339744][ T0] update e820 for mtrr
[ 1.343621][ T0] modified physical RAM map:
[ 1.348002][ T0] modified: [mem 0x0000000000000100-0x0000000000000fff] reserved
[ 1.355485][ T0] modified: [mem 0x0000000000001000-0x000000000009d7ff] usable
[ 1.362796][ T0] modified: [mem 0x000000000009d800-0x000000000009ffff] reserved
[ 1.370280][ T0] modified: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[ 1.377763][ T0] modified: [mem 0x0000000000100000-0x00000000d1694fff] usable
[ 1.385074][ T0] modified: [mem 0x00000000d1695000-0x00000000d169bfff] ACPI NVS
[ 1.392555][ T0] modified: [mem 0x00000000d169c000-0x00000000d1ac9fff] usable
[ 1.399867][ T0] modified: [mem 0x00000000d1aca000-0x00000000d1f4afff] reserved
[ 1.407350][ T0] modified: [mem 0x00000000d1f4b000-0x00000000d7eeafff] usable
[ 1.414661][ T0] modified: [mem 0x00000000d7eeb000-0x00000000d7ffffff] reserved
[ 1.422142][ T0] modified: [mem 0x00000000d8000000-0x00000000d875ffff] usable
[ 1.429455][ T0] modified: [mem 0x00000000d8760000-0x00000000d87fffff] reserved
[ 1.436937][ T0] modified: [mem 0x00000000d8800000-0x00000000d8fadfff] usable
[ 1.444248][ T0] modified: [mem 0x00000000d8fae000-0x00000000d8ffffff] ACPI data
[ 1.451818][ T0] modified: [mem 0x00000000d9000000-0x00000000da71bfff] usable
[ 1.459128][ T0] modified: [mem 0x00000000da71c000-0x00000000da7fffff] ACPI NVS
[ 1.466612][ T0] modified: [mem 0x00000000da800000-0x00000000dbb8cfff] usable
[ 1.473922][ T0] modified: [mem 0x00000000dbb8d000-0x00000000dbffffff] reserved
[ 1.481405][ T0] modified: [mem 0x00000000dd000000-0x00000000df1fffff] reserved
[ 1.488888][ T0] modified: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[ 1.496373][ T0] modified: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
[ 1.503855][ T0] modified: [mem 0x00000000fed00000-0x00000000fed03fff] reserved
[ 1.511340][ T0] modified: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
[ 1.518823][ T0] modified: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
[ 1.526306][ T0] modified: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
[ 1.533792][ T0] modified: [mem 0x0000000100000000-0x000000041edfffff] usable
[ 1.541101][ T0] last_pfn = 0x41ee00 max_arch_pfn = 0x400000000
[ 1.547209][ T0] x2apic: enabled by BIOS, switching to x2apic ops
[ 1.553487][ T0] last_pfn = 0xdbb8d max_arch_pfn = 0x400000000
[ 1.559506][ T0] Scan for SMP in [mem 0x00000000-0x000003ff]
[ 1.565371][ T0] Scan for SMP in [mem 0x0009fc00-0x0009ffff]
[ 1.571218][ T0] Scan for SMP in [mem 0x000f0000-0x000fffff]
[ 1.582632][ T0] found SMP MP-table at [mem 0x000fd970-0x000fd97f]
[ 1.588845][ T0] mpc: fd6b0-fd8f4
[ 1.592558][ T0] Using GB pages for direct mapping
[ 1.599718][ T0] RAMDISK: [mem 0x409151000-0x4197fffff]
[ 1.604985][ T0] ACPI: Early table checksum verification disabled
[ 1.611266][ T0] ACPI: RSDP 0x00000000000F0490 000024 (v02 DELL )
[ 1.617629][ T0] ACPI: XSDT 0x00000000D8FEE088 000094 (v01 DELL CBX3 01072009 AMI 00010013)
[ 1.626749][ T0] ACPI: FACP 0x00000000D8FF94B0 00010C (v05 DELL CBX3 01072009 AMI 00010013)
[ 1.635867][ T0] ACPI: DSDT 0x00000000D8FEE1B0 00B2FD (v02 DELL CBX3 00000014 INTL 20091112)
[ 1.644982][ T0] ACPI: FACS 0x00000000DA7FE080 000040
[ 1.650230][ T0] ACPI: APIC 0x00000000D8FF95C0 000092 (v03 DELL CBX3 01072009 AMI 00010013)
[ 1.659346][ T0] ACPI: FPDT 0x00000000D8FF9658 000044 (v01 DELL CBX3 01072009 AMI 00010013)
[ 1.668462][ T0] ACPI: SLIC 0x00000000D8FF96A0 000176 (v03 DELL CBX3 01072009 MSFT 00010013)
[ 1.677580][ T0] ACPI: LPIT 0x00000000D8FF9818 00005C (v01 DELL CBX3 00000000 AMI. 00000005)
[ 1.686696][ T0] ACPI: SSDT 0x00000000D8FF9878 000539 (v01 PmRef Cpu0Ist 00003000 INTL 20120711)
[ 1.695811][ T0] ACPI: SSDT 0x00000000D8FF9DB8 000AD8 (v01 PmRef CpuPm 00003000 INTL 20120711)
[ 1.704931][ T0] ACPI: SSDT 0x00000000D8FFA890 0001C7 (v01 PmRef LakeTiny 00003000 INTL 20120711)
[ 1.714046][ T0] ACPI: HPET 0x00000000D8FFAA58 000038 (v01 DELL CBX3 01072009 AMI. 00000005)
[ 1.723163][ T0] ACPI: SSDT 0x00000000D8FFAA90 00036D (v01 SataRe SataTabl 00001000 INTL 20120711)
[ 1.732281][ T0] ACPI: MCFG 0x00000000D8FFAE00 00003C (v01 DELL CBX3 01072009 MSFT 00000097)
[ 1.741401][ T0] ACPI: SSDT 0x00000000D8FFAE40 003406 (v01 SaSsdt SaSsdt 00003000 INTL 20091112)
[ 1.750519][ T0] ACPI: ASF! 0x00000000D8FFE248 0000A5 (v32 INTEL HCG 00000001 TFSM 000F4240)
[ 1.759635][ T0] ACPI: DMAR 0x00000000D8FFE2F0 0000B8 (v01 INTEL HSW 00000001 INTL 00000001)
[ 1.768753][ T0] ACPI: Reserving FACP table memory at [mem 0xd8ff94b0-0xd8ff95bb]
[ 1.776408][ T0] ACPI: Reserving DSDT table memory at [mem 0xd8fee1b0-0xd8ff94ac]
[ 1.784061][ T0] ACPI: Reserving FACS table memory at [mem 0xda7fe080-0xda7fe0bf]
[ 1.791717][ T0] ACPI: Reserving APIC table memory at [mem 0xd8ff95c0-0xd8ff9651]
[ 1.799371][ T0] ACPI: Reserving FPDT table memory at [mem 0xd8ff9658-0xd8ff969b]
[ 1.807025][ T0] ACPI: Reserving SLIC table memory at [mem 0xd8ff96a0-0xd8ff9815]
[ 1.814679][ T0] ACPI: Reserving LPIT table memory at [mem 0xd8ff9818-0xd8ff9873]
[ 1.822335][ T0] ACPI: Reserving SSDT table memory at [mem 0xd8ff9878-0xd8ff9db0]
[ 1.829990][ T0] ACPI: Reserving SSDT table memory at [mem 0xd8ff9db8-0xd8ffa88f]
[ 1.837647][ T0] ACPI: Reserving SSDT table memory at [mem 0xd8ffa890-0xd8ffaa56]
[ 1.845300][ T0] ACPI: Reserving HPET table memory at [mem 0xd8ffaa58-0xd8ffaa8f]
[ 1.852955][ T0] ACPI: Reserving SSDT table memory at [mem 0xd8ffaa90-0xd8ffadfc]
[ 1.860612][ T0] ACPI: Reserving MCFG table memory at [mem 0xd8ffae00-0xd8ffae3b]
[ 1.868267][ T0] ACPI: Reserving SSDT table memory at [mem 0xd8ffae40-0xd8ffe245]
[ 1.875921][ T0] ACPI: Reserving ASF! table memory at [mem 0xd8ffe248-0xd8ffe2ec]
[ 1.883577][ T0] ACPI: Reserving DMAR table memory at [mem 0xd8ffe2f0-0xd8ffe3a7]
[ 1.891240][ T0] Setting APIC routing to cluster x2apic.
[ 1.896782][ T0] ACPI: CEDT not present
[ 1.900821][ T0] No NUMA configuration found
[ 1.905250][ T0] Faking a node at [mem 0x0000000000000000-0x000000041edfffff]
[ 1.912576][ T0] NODE_DATA(0) allocated [mem 0x41edd5000-0x41edfffff]
[ 1.919515][ T0] Zone ranges:
[ 1.922545][ T0] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 1.929340][ T0] DMA32 [mem 0x0000000001000000-0x00000000ffffffff]
[ 1.936135][ T0] Normal [mem 0x0000000100000000-0x000000041edfffff]
[ 1.942932][ T0] Device empty
[ 1.946457][ T0] Movable zone start for each node
[ 1.951362][ T0] Early memory node ranges
[ 1.955574][ T0] node 0: [mem 0x0000000000001000-0x000000000009cfff]
[ 1.962456][ T0] node 0: [mem 0x0000000000100000-0x00000000d1694fff]
[ 1.969336][ T0] node 0: [mem 0x00000000d169c000-0x00000000d1ac9fff]
[ 1.976216][ T0] node 0: [mem 0x00000000d1f4b000-0x00000000d7eeafff]
[ 1.983096][ T0] node 0: [mem 0x00000000d8000000-0x00000000d875ffff]
[ 1.989976][ T0] node 0: [mem 0x00000000d8800000-0x00000000d8fadfff]
[ 1.996858][ T0] node 0: [mem 0x00000000d9000000-0x00000000da71bfff]
[ 2.003737][ T0] node 0: [mem 0x00000000da800000-0x00000000dbb8cfff]
[ 2.010619][ T0] node 0: [mem 0x0000000100000000-0x000000041edfffff]
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.
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation
Thanks,
Oliver Sang