Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: 272e0af356f3c076132cffeb729b5435387d82bd ("dyndbg: try to release unneeded
memory (panics)")
https://github.com/jimc/linux.git dd-diet-6
in testcase: trinity
version: trinity-x86_64-03f10b67-1_20210616
with following parameters:
ucode: 0xe2
runtime: 300s
test-description: Trinity is a linux system call fuzz tester.
test-url:
http://codemonkey.org.uk/projects/trinity/
on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz with 32G memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+------------------------------------------+------------+------------+
| | afdb5540b1 | 272e0af356 |
+------------------------------------------+------------+------------+
| boot_successes | 12 | 0 |
| boot_failures | 0 | 6 |
| canonical_address#:#[##] | 0 | 6 |
| RIP:free_reserved_page | 0 | 6 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 6 |
+------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang(a)intel.com>
[ 2.325521] ... value mask: 0000ffffffffffff
[ 2.326521] ... max period: 00007fffffffffff
[ 2.327521] ... fixed-purpose events: 3
[ 2.328521] ... event mask: 00000007000000ff
[ 2.329601] rcu: Hierarchical SRCU implementation.
[ 2.330792] general protection fault, probably for non-canonical address
0x3ffe9fffe0b7541: 0000 [#1] SMP PTI
[ 2.331521] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G I
5.13.0-rc5-00277-g272e0af356f3 #1
[ 2.331521] Hardware name: Dell Inc. OptiPlex 7040/0Y7WYT, BIOS 1.1.1 10/07/2015
[ 2.331521] RIP: 0010:free_reserved_page
(kbuild/src/consumer/arch/x86/include/asm/bitops.h:75
kbuild/src/consumer/include/asm-generic/bitops/instrumented-atomic.h:42
kbuild/src/consumer/include/linux/page-flags.h:354
kbuild/src/consumer/include/linux/mm.h:2396)
[ 2.331521] Code: 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f
84 00 00 00 00 00 0f 1f 80 00 00 00 00 41 54 49 89 fc <f0> 80 67 01 ef c7 47 34 01
00 00 00 31 f6 e8 28 d0 cc ff 4c 89 e7
All code
========
0: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
7: 00
8: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1)
f: 00 00 00 00
13: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1)
1a: 00 00 00 00
1e: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
25: 41 54 push %r12
27: 49 89 fc mov %rdi,%r12
2a:* f0 80 67 01 ef lock andb $0xef,0x1(%rdi) <-- trapping instruction
2f: c7 47 34 01 00 00 00 movl $0x1,0x34(%rdi)
36: 31 f6 xor %esi,%esi
38: e8 28 d0 cc ff callq 0xffffffffffccd065
3d: 4c 89 e7 mov %r12,%rdi
Code starting with the faulting instruction
===========================================
0: f0 80 67 01 ef lock andb $0xef,0x1(%rdi)
5: c7 47 34 01 00 00 00 movl $0x1,0x34(%rdi)
c: 31 f6 xor %esi,%esi
e: e8 28 d0 cc ff callq 0xffffffffffccd03b
13: 4c 89 e7 mov %r12,%rdi
[ 2.331521] RSP: 0000:ffffc9000002bd98 EFLAGS: 00010246
[ 2.331521] RAX: 03ffe9fffe0b7540 RBX: 0000000000000000 RCX: 0000000000000000
[ 2.331521] RDX: 03fffffffe0b7540 RSI: ffffffff82ce6060 RDI: 03ffe9fffe0b7540
[ 2.331521] RBP: ffffc9000002be28 R08: ffff88810d283480 R09: ffff88810d283480
[ 2.331521] R10: 000000000000000e R11: 0000000000000c4f R12: 03ffe9fffe0b7540
[ 2.331521] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 2.331521] FS: 0000000000000000(0000) GS:ffff888871c00000(0000)
knlGS:0000000000000000
[ 2.331521] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.331521] CR2: ffff888871401000 CR3: 000000087020a001 CR4: 00000000003706f0
[ 2.331521] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2.331521] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2.331521] Call Trace:
[ 2.331521] dynamic_debug_init (kbuild/src/consumer/lib/dynamic_debug.c:1400
(discriminator 3))
[ 2.331521] ? init_error_injection (kbuild/src/consumer/lib/dynamic_debug.c:1321)
[ 2.331521] do_one_initcall (kbuild/src/consumer/init/main.c:1249)
[ 2.331521] kernel_init_freeable (kbuild/src/consumer/init/main.c:1366
kbuild/src/consumer/init/main.c:1549)
[ 2.331521] ? rest_init (kbuild/src/consumer/init/main.c:1444)
[ 2.331521] kernel_init (kbuild/src/consumer/init/main.c:1449)
[ 2.331521] ret_from_fork (kbuild/src/consumer/arch/x86/entry/entry_64.S:300)
[ 2.331521] Modules linked in:
[ 2.331524] ---[ end trace c6a1f9604c4a2a81 ]---
[ 2.332522] RIP: 0010:free_reserved_page
(kbuild/src/consumer/arch/x86/include/asm/bitops.h:75
kbuild/src/consumer/include/asm-generic/bitops/instrumented-atomic.h:42
kbuild/src/consumer/include/linux/page-flags.h:354
kbuild/src/consumer/include/linux/mm.h:2396)
[ 2.333521] Code: 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 2e 0f 1f
84 00 00 00 00 00 0f 1f 80 00 00 00 00 41 54 49 89 fc <f0> 80 67 01 ef c7 47 34 01
00 00 00 31 f6 e8 28 d0 cc ff 4c 89 e7
All code
========
0: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
7: 00
8: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1)
f: 00 00 00 00
13: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1)
1a: 00 00 00 00
1e: 0f 1f 80 00 00 00 00 nopl 0x0(%rax)
25: 41 54 push %r12
27: 49 89 fc mov %rdi,%r12
2a:* f0 80 67 01 ef lock andb $0xef,0x1(%rdi) <-- trapping instruction
2f: c7 47 34 01 00 00 00 movl $0x1,0x34(%rdi)
36: 31 f6 xor %esi,%esi
38: e8 28 d0 cc ff callq 0xffffffffffccd065
3d: 4c 89 e7 mov %r12,%rdi
Code starting with the faulting instruction
===========================================
0: f0 80 67 01 ef lock andb $0xef,0x1(%rdi)
5: c7 47 34 01 00 00 00 movl $0x1,0x34(%rdi)
c: 31 f6 xor %esi,%esi
e: e8 28 d0 cc ff callq 0xffffffffffccd03b
13: 4c 89 e7 mov %r12,%rdi
[ 2.334522] RSP: 0000:ffffc9000002bd98 EFLAGS: 00010246
[ 2.335521] RAX: 03ffe9fffe0b7540 RBX: 0000000000000000 RCX: 0000000000000000
[ 2.336521] RDX: 03fffffffe0b7540 RSI: ffffffff82ce6060 RDI: 03ffe9fffe0b7540
[ 2.337521] RBP: ffffc9000002be28 R08: ffff88810d283480 R09: ffff88810d283480
[ 2.338521] R10: 000000000000000e R11: 0000000000000c4f R12: 03ffe9fffe0b7540
[ 2.339521] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 2.340521] FS: 0000000000000000(0000) GS:ffff888871c00000(0000)
knlGS:0000000000000000
[ 2.341521] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.342521] CR2: ffff888871401000 CR3: 000000087020a001 CR4: 00000000003706f0
[ 2.343521] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2.344521] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2.345521] Kernel panic - not syncing: Fatal exception
ACPI MEMORY or I/O RESET_REG.
To reproduce:
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
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
bin/lkp run generated-yaml-file
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation
Thanks,
Oliver Sang