syzbot


INFO: trying to register non-static key in l2cap_sock_teardown_cb

Status: auto-closed as invalid on 2021/09/13 12:54
Reported-by: syzbot+bffd01cd4c2181aee4f2@syzkaller.appspotmail.com
First crash: 1522d, last: 1372d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: trying to register non-static key in l2cap_sock_teardown_cb 10 1125d 1467d 0/1 auto-closed as invalid on 2022/05/18 04:11
upstream INFO: trying to register non-static key in l2cap_sock_teardown_cb bluetooth C done done 88 1204d 1507d 20/28 fixed on 2022/03/08 16:11

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: 1 PID: 3625 Comm: kworker/1:2 Not tainted 4.14.232-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events l2cap_chan_timeout
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 register_lock_class+0x32b/0x1320 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_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:176
 spin_lock_bh include/linux/spinlock.h:322 [inline]
 lock_sock_nested+0x39/0x100 net/core/sock.c:2788
 l2cap_sock_teardown_cb+0x93/0x650 net/bluetooth/l2cap_sock.c:1341
 l2cap_chan_del+0xaf/0x950 net/bluetooth/l2cap_core.c:599
 l2cap_chan_close+0x103/0x870 net/bluetooth/l2cap_core.c:757
 l2cap_chan_timeout+0x143/0x2a0 net/bluetooth/l2cap_core.c:430
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 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: 1 PID: 3625 Comm: kworker/1:2 Not tainted 4.14.232-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events l2cap_chan_timeout
task: ffff8880a8ede380 task.stack: ffff8880a8ee8000
RIP: 0010:          (null)
RSP: 0018:ffff8880a8eefc08 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 000000000000006f RCX: 1ffffffff127a2dc
RDX: 1ffff11009aca6f9 RSI: ffffffff87cce9c0 RDI: ffff88804d6533c0
RBP: 0000000000000000 R08: 0000000000000000 R09: ffff88823fff704f
R10: ffff88823fff7057 R11: 000000678e97c850 R12: ffff8880982eed80
R13: ffff88804d6533c0 R14: ffff88809e69c640 R15: ffff8880982eed80
FS:  0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009b3fa000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 l2cap_sock_teardown_cb+0x483/0x650 net/bluetooth/l2cap_sock.c:1366
 l2cap_chan_del+0xaf/0x950 net/bluetooth/l2cap_core.c:599
 l2cap_chan_close+0x103/0x870 net/bluetooth/l2cap_core.c:757
 l2cap_chan_timeout+0x143/0x2a0 net/bluetooth/l2cap_core.c:430
 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116
 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250
 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: ffff8880a8eefc08
CR2: 0000000000000000
---[ end trace e6be1c734de78eb7 ]---

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/16 12:53 linux-4.14.y 7d7d1c0ab3eb f54a5c09 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in l2cap_sock_teardown_cb
2021/05/04 23:04 linux-4.14.y 7d7d1c0ab3eb 06c27ff5 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in l2cap_sock_teardown_cb
2021/04/28 12:51 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in l2cap_sock_teardown_cb
2021/03/30 13:25 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in l2cap_sock_teardown_cb
2021/03/09 21:06 linux-4.14.y 1d177c0872ab 26967e35 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in l2cap_sock_teardown_cb
2021/03/08 08:48 linux-4.14.y 1d177c0872ab 09fbf400 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in l2cap_sock_teardown_cb
2021/02/11 23:19 linux-4.14.y 2c8a3fceddf0 a5f86b15 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in l2cap_sock_teardown_cb
2021/02/04 12:51 linux-4.14.y 2c8a3fceddf0 42b90a7c .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in l2cap_sock_teardown_cb
2020/12/17 12:59 linux-4.14.y 3f2ecb86cb90 04201c06 .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.