syzbot


INFO: trying to register non-static key in sco_sock_timeout

Status: auto-closed as invalid on 2022/07/27 14:41
Reported-by: syzbot+07c1a325e9b0489e8683@syzkaller.appspotmail.com
First crash: 699d, last: 699d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: trying to register non-static key in sco_sock_timeout 3 595d 647d 0/1 auto-obsoleted due to no activity on 2022/11/08 15:04
upstream INFO: trying to register non-static key in sco_sock_timeout (2) bluetooth 4 12d 106d 0/26 upstream: reported on 2023/11/13 01:14
upstream INFO: trying to register non-static key in sco_sock_timeout bluetooth 2 674d 720d 0/26 auto-closed as invalid on 2022/08/22 03:23

Sample crash report:
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 11553 Comm: kworker/0:2 Not tainted 4.14.274-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events sco_sock_timeout
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 register_lock_class+0x389/0x1180 kernel/locking/lockdep.c:768
 __lock_acquire+0x167/0x3f20 kernel/locking/lockdep.c:3378
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:152
 spin_lock include/linux/spinlock.h:317 [inline]
 sco_sock_timeout+0x7b/0x1a0 net/bluetooth/sco.c:95
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
BUG: unable to handle kernel NULL pointer dereference at           (null)
IP:           (null)
PGD 0 P4D 0 
Oops: 0010 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 11553 Comm: kworker/0:2 Not tainted 4.14.274-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events sco_sock_timeout
task: ffff8880a5a0a200 task.stack: ffff88809c850000
RIP: 0010:          (null)
RSP: 0018:ffff88809c857d48 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 1ffff1100fafded0 RSI: ffffffff878a4840 RDI: ffff88807d7ef240
RBP: ffff88807d7ef240 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: ffff8880a5a0a200 R12: ffff88807d7ef2c8
R13: ffff8880a9438200 R14: ffff8880ba433b00 R15: ffff8880ba438000
FS:  0000000000000000(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000008e6a000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 sco_sock_timeout+0xd8/0x1a0 net/bluetooth/sco.c:97
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Code:  Bad RIP value.
RIP:           (null) RSP: ffff88809c857d48
CR2: 0000000000000000
---[ end trace 0eeda45858a3e389 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/29 14:40 linux-4.14.y af1af6ebca0e 6bdac766 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in sco_sock_timeout
* Struck through repros no longer work on HEAD.