[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210912162127.GK25450@xsang-OptiPlex-9020>
Date: Mon, 13 Sep 2021 00:21:27 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: Peter Zijlstra <peterz@...radead.org>,
Masami Hiramatsu <mhiramat@...nel.org>,
LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
lkp@...el.com
Subject: [kprobes] 645f224e7b: WARNING:kernel_stack
Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: 645f224e7ba2f4200bf163153d384ceb0de5462e ("kprobes: Tell lockdep about kprobe nesting")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
in testcase: trinity
version: trinity-x86_64-b1a0aef9-1_20210908
with following parameters:
number: 99999
group: group-02
test-description: Trinity is a linux system call fuzz tester.
test-url: http://codemonkey.org.uk/projects/trinity/
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):
+------------------------------------------+------------+------------+
| | 561ca66910 | 645f224e7b |
+------------------------------------------+------------+------------+
| WARNING:inconsistent_lock_state | 32 | |
| inconsistent{INITIAL_USE}->{IN-NMI}usage | 32 | |
| RIP:do_sys_open | 32 | |
| WARNING:kernel_stack | 0 | 32 |
+------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>
[ 41.353724][ T141] random: get_random_u64 called from arch_rnd+0x1a/0x40 with crng_init=0
[ 41.353739][ T141] random: get_random_u64 called from randomize_stack_top+0x3b/0x70 with crng_init=0
[ 41.354503][ T141] WARNING: kernel stack regs at (____ptrval____) in modprobe:141 has bad 'bp' value (____ptrval____)
[ 41.354505][ T141] unwind stack type:1 next_sp:0000000000000000 mask:0x2 graph_idx:0
[ 41.354509][ T141] (____ptrval____): ffffc90000633bd0 (0xffffc90000633bd0)
[ 41.354513][ T141] (____ptrval____): ffffffff8102c502 (arch_stack_walk+0x82/0xf0)
[ 41.354515][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354517][ T141] (____ptrval____): ffffc90000630000 (0xffffc90000630000)
[ 41.354519][ T141] (____ptrval____): ffffc90000634000 (0xffffc90000634000)
[ 41.354520][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354522][ T141] (____ptrval____): 0000000000000002 (0x2)
[ 41.354524][ T141] (____ptrval____): ffff88812cb3c040 (0xffff88812cb3c040)
[ 41.354526][ T141] (____ptrval____): 0000010100000000 (0x10100000000)
[ 41.354527][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354529][ T141] (____ptrval____): ffffc90000633b38 (0xffffc90000633b38)
[ 41.354532][ T141] (____ptrval____): ffffffff81057580 (elfcorehdr_read+0x20/0x20)
[ 41.354533][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354535][ T141] (____ptrval____): ffffc90000633e90 (0xffffc90000633e90)
[ 41.354537][ T141] (____ptrval____): b7ac570188a9ae00 (0xb7ac570188a9ae00)
[ 41.354538][ T141] (____ptrval____): 0000000000000008 (0x8)
[ 41.354540][ T141] (____ptrval____): 0000000000000008 (0x8)
[ 41.354541][ T141] (____ptrval____): 000000007cb38ca4 (0x7cb38ca4)
[ 41.354543][ T141] (____ptrval____): ffff88812cb3c040 (0xffff88812cb3c040)
[ 41.354545][ T141] (____ptrval____): ffffc90000633c00 (0xffffc90000633c00)
[ 41.354550][ T141] (____ptrval____): ffffffff81132f3b (stack_trace_save+0x4b/0x70)
[ 41.354553][ T141] (____ptrval____): ffffffff83506a50 (stack_trace+0x3f6f0/0x400000)
[ 41.354555][ T141] (____ptrval____): 0000000000078122 (0x78122)
[ 41.354557][ T141] (____ptrval____): 0000000000000007 (0x7)
[ 41.354559][ T141] (____ptrval____): b7ac570188a9ae00 (0xb7ac570188a9ae00)
[ 41.354560][ T141] (____ptrval____): ffffc90000633c70 (0xffffc90000633c70)
[ 41.354564][ T141] (____ptrval____): ffffffff81104716 (save_trace+0x56/0x480)
[ 41.354566][ T141] (____ptrval____): 0000000000000e72 (0xe72)
[ 41.354569][ T141] (____ptrval____): ffffffff83de27c0 (__key.45201+0x10/0x10)
[ 41.354571][ T141] (____ptrval____): ffff88811b64c8d0 (0xffff88811b64c8d0)
[ 41.354572][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354574][ T141] (____ptrval____): 0000000000007edb (0x7edb)
[ 41.354576][ T141] (____ptrval____): ffffffff83506a50 (stack_trace+0x3f6f0/0x400000)
[ 41.354580][ T141] (____ptrval____): ffffffff8110d580 (register_lock_class+0x560/0x750)
[ 41.354582][ T141] (____ptrval____): 0000000000000008 (0x8)
[ 41.354583][ T141] (____ptrval____): 0000000000000008 (0x8)
[ 41.354585][ T141] (____ptrval____): ffff88812cb3c8c8 (0xffff88812cb3c8c8)
[ 41.354586][ T141] (____ptrval____): ffff88812cb3c040 (0xffff88812cb3c040)
[ 41.354589][ T141] (____ptrval____): ffffffff839304a0 (lock_classes+0x1cd00/0x200000)
[ 41.354591][ T141] (____ptrval____): ffffc90000633cb0 (0xffffc90000633cb0)
[ 41.354594][ T141] (____ptrval____): ffffffff8110b17b (mark_lock+0x19b/0x5a0)
[ 41.354598][ T141] (____ptrval____): ffffffff81025c19 (sched_clock+0x9/0x10)
[ 41.354600][ T141] (____ptrval____): ffff88812cb3c890 (0xffff88812cb3c890)
[ 41.354602][ T141] (____ptrval____): ffff88812cb3c8c8 (0xffff88812cb3c8c8)
[ 41.354603][ T141] (____ptrval____): ffff88812cb3c040 (0xffff88812cb3c040)
[ 41.354605][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354606][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354608][ T141] (____ptrval____): ffffc90000633d18 (0xffffc90000633d18)
[ 41.354610][ T141] (____ptrval____): ffffffff8110bb79 (__lock_acquire+0x3d9/0xb60)
[ 41.354614][ T141] (____ptrval____): ffffffff82dcc540 (rcu_callback_map+0x40/0x40)
[ 41.354615][ T141] (____ptrval____): ffff88812cb3c040 (0xffff88812cb3c040)
[ 41.354617][ T141] (____ptrval____): ffff88812cb3c890 (0xffff88812cb3c890)
[ 41.354618][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354619][ T141] (____ptrval____): ffffc90000000001 (0xffffc90000000001)
[ 41.354621][ T141] (____ptrval____): 00000000000001cd (0x1cd)
[ 41.354622][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354623][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354624][ T141] (____ptrval____): ffff88811b64c8d0 (0xffff88811b64c8d0)
[ 41.354626][ T141] (____ptrval____): ffffc90000633dc0 (0xffffc90000633dc0)
[ 41.354628][ T141] (____ptrval____): ffffffff8110cbdd (lock_acquire+0xdd/0x3f0)
[ 41.354629][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354632][ T141] (____ptrval____): ffffffff8116fefd (recycle_rp_inst+0x4d/0xa0)
[ 41.354633][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354635][ T141] (____ptrval____): 0000000000000046 (0x46)
[ 41.354636][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354638][ T141] (____ptrval____): ffff88811b64c938 (0xffff88811b64c938)
[ 41.354639][ T141] (____ptrval____): ffff88811b64c800 (0xffff88811b64c800)
[ 41.354641][ T141] (____ptrval____): ffff888100242274 (0xffff888100242274)
[ 41.354643][ T141] (____ptrval____): ffffc90000633e90 (0xffffc90000633e90)
[ 41.354644][ T141] (____ptrval____): ffff88810005e000 (0xffff88810005e000)
[ 41.354646][ T141] (____ptrval____): ffff888100242250 (0xffff888100242250)
[ 41.354647][ T141] (____ptrval____): ffff8881008bdc30 (0xffff8881008bdc30)
[ 41.354649][ T141] (____ptrval____): b7ac570188a9ae00 (0xb7ac570188a9ae00)
[ 41.354651][ T141] (____ptrval____): ffff88811b64c818 (0xffff88811b64c818)
[ 41.354652][ T141] (____ptrval____): ffff88811b64c8b8 (0xffff88811b64c8b8)
[ 41.354654][ T141] (____ptrval____): ffff88811b64c8d0 (0xffff88811b64c8d0)
[ 41.354655][ T141] (____ptrval____): ffff88812cb3c040 (0xffff88812cb3c040)
[ 41.354660][ T141] (____ptrval____): ffffffff812bc2e0 (__x64_sys_openat+0x20/0x30)
[ 41.354662][ T141] (____ptrval____): ffffc90000633de8 (0xffffc90000633de8)
[ 41.354666][ T141] (____ptrval____): ffffffff81d5ee44 (_raw_spin_lock+0x34/0x70)
[ 41.354668][ T141] (____ptrval____): ffffffff8116fefd (recycle_rp_inst+0x4d/0xa0)
[ 41.354669][ T141] (____ptrval____): ffff888119ec8240 (0xffff888119ec8240)
[ 41.354671][ T141] (____ptrval____): ffff88811b64c8b8 (0xffff88811b64c8b8)
[ 41.354672][ T141] (____ptrval____): ffffc90000633e10 (0xffffc90000633e10)
[ 41.354675][ T141] (____ptrval____): ffffffff8116fefd (recycle_rp_inst+0x4d/0xa0)
[ 41.354676][ T141] (____ptrval____): ffff888119ec8240 (0xffff888119ec8240)
[ 41.354677][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354679][ T141] (____ptrval____): ffff888119ec8240 (0xffff888119ec8240)
[ 41.354681][ T141] (____ptrval____): ffffc90000633e68 (0xffffc90000633e68)
[ 41.354683][ T141] (____ptrval____): ffffffff8117006e (__kretprobe_trampoline_handler+0x11e/0x1d0)
[ 41.354685][ T141] (____ptrval____): 0000000000000286 (0x286)
[ 41.354686][ T141] (____ptrval____): ffffc90000633e90 (0xffffc90000633e90)
[ 41.354688][ T141] (____ptrval____): ffffc90000633f28 (0xffffc90000633f28)
[ 41.354689][ T141] (____ptrval____): ffffc90000633f28 (0xffffc90000633f28)
[ 41.354691][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354692][ T141] (____ptrval____): ffffc90000633e90 (0xffffc90000633e90)
[ 41.354693][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354695][ T141] (____ptrval____): ffffc90000633e80 (0xffffc90000633e80)
[ 41.354698][ T141] (____ptrval____): ffffffff810577d8 (trampoline_handler+0x48/0x60)
[ 41.354699][ T141] (____ptrval____): ffffc90000633f58 (0xffffc90000633f58)
[ 41.354701][ T141] (____ptrval____): ffffc90000633e91 (0xffffc90000633e91)
[ 41.354703][ T141] (____ptrval____): ffffffff810575aa (kretprobe_trampoline+0x2a/0x50)
[ 41.354705][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354706][ T141] (____ptrval____): ffffc90000633f58 (0xffffc90000633f58)
[ 41.354708][ T141] (____ptrval____): ffffc90000633f30 (0xffffc90000633f30)
[ 41.354709][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354710][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354712][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354713][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354714][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354715][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354718][ T141] (____ptrval____): ffffffff82dcc540 (rcu_callback_map+0x40/0x40)
[ 41.354720][ T141] (____ptrval____): ffffffffffffffff (0xffffffffffffffff)
[ 41.354722][ T141] (____ptrval____): ffffffff81057580 (elfcorehdr_read+0x20/0x20)
[ 41.354724][ T141] (____ptrval____): 0000000000000010 (0x10)
[ 41.354725][ T141] (____ptrval____): 0000000000000246 (0x246)
[ 41.354727][ T141] (____ptrval____): ffffc90000633f30 (0xffffc90000633f30)
[ 41.354728][ T141] (____ptrval____): ffffc90000633f48 (0xffffc90000633f48)
[ 41.354731][ T141] (____ptrval____): ffffffff81d4c9e3 (do_syscall_64+0x33/0x80)
[ 41.354733][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354736][ T141] (____ptrval____): ffffffff81e00065 (entry_SYSCALL_64_after_hwframe+0x44/0xa9)
[ 41.354737][ T141] (____ptrval____): 00007f2defedf540 (0x7f2defedf540)
[ 41.354739][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354740][ T141] (____ptrval____): 0000000000000001 (0x1)
[ 41.354742][ T141] (____ptrval____): 00007f2defedf0c8 (0x7f2defedf0c8)
[ 41.354743][ T141] (____ptrval____): ffffffffffffffff (0xffffffffffffffff)
[ 41.354745][ T141] (____ptrval____): 00005577596eff79 (0x5577596eff79)
[ 41.354746][ T141] (____ptrval____): 0000000000000287 (0x287)
[ 41.354747][ T141] (____ptrval____): 0000000000000000 ...
[ 41.354749][ T141] (____ptrval____): 0000000000000003 (0x3)
[ 41.354750][ T141] (____ptrval____): 000000000000ffff (0xffff)
[ 41.354752][ T141] (____ptrval____): ffffffffffffffda (0xffffffffffffffda)
[ 41.354754][ T141] (____ptrval____): 00007f2defed04fd (0x7f2defed04fd)
[ 41.354755][ T141] (____ptrval____): 0000000000080000 (0x80000)
[ 41.354757][ T141] (____ptrval____): 00007f2defed690f (0x7f2defed690f)
[ 41.354758][ T141] (____ptrval____): 00000000ffffff9c (0xffffff9c)
[ 41.354760][ T141] (____ptrval____): 0000000000000101 (0x101)
[ 41.354761][ T141] (____ptrval____): 00007f2defed04fd (0x7f2defed04fd)
[ 41.354763][ T141] (____ptrval____): 0000000000000033 (0x33)
[ 41.354764][ T141] (____ptrval____): 0000000000000287 (0x287)
[ 41.354766][ T141] (____ptrval____): 00007ffdba1434f8 (0x7ffdba1434f8)
[ 41.354767][ T141] (____ptrval____): 000000000000002b (0x2b)
To reproduce:
# build kernel
cd linux
cp config-5.10.0-rc2-00007-g645f224e7ba2 .config
make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation
Thanks,
Oliver Sang
View attachment "config-5.10.0-rc2-00007-g645f224e7ba2" of type "text/plain" (139203 bytes)
View attachment "job-script" of type "text/plain" (4652 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (24764 bytes)
View attachment "trinity" of type "text/plain" (73260 bytes)
Powered by blists - more mailing lists