syzbot


WARNING: locking bug in l2cap_sock_teardown_cb (2)

Status: auto-closed as invalid on 2022/01/09 17:11
Reported-by: syzbot+bd7ad758c584083eec7c@syzkaller.appspotmail.com
First crash: 1168d, last: 1168d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING: locking bug in l2cap_sock_teardown_cb 2 1310d 1349d 0/1 auto-closed as invalid on 2021/08/20 21:06
linux-4.19 WARNING: locking bug in l2cap_sock_teardown_cb 2 1390d 1414d 0/1 auto-closed as invalid on 2021/06/02 08:55
linux-4.19 WARNING: locking bug in l2cap_sock_teardown_cb (3) 1 891d 891d 0/1 auto-obsoleted due to no activity on 2022/10/13 18:01
upstream WARNING: locking bug in l2cap_sock_teardown_cb bluetooth 129 1125d 1418d 0/28 auto-closed as invalid on 2022/02/21 20:37

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(class_idx > MAX_LOCKDEP_KEYS)
WARNING: CPU: 0 PID: 29378 at kernel/locking/lockdep.c:3393 __lock_acquire+0x1221/0x3ff0 kernel/locking/lockdep.c:3393
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 29378 Comm: kworker/0:1 Not tainted 4.19.206-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:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:__lock_acquire+0x1221/0x3ff0 kernel/locking/lockdep.c:3393
Code: d2 0f 85 2d 1f 00 00 44 8b 3d fb ce eb 0b 45 85 ff 0f 85 78 ef ff ff 48 c7 c6 e0 43 6a 88 48 c7 c7 40 19 6a 88 e8 bf 76 a7 06 <0f> 0b e9 61 ef ff ff 8b 05 f2 0e d9 0b 85 c0 0f 85 4e f9 ff ff 4c
RSP: 0018:ffff88804ab5f930 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814e0d61 RDI: ffffed100956bf18
RBP: ffff88804f3b0e0a R08: 0000000000000000 R09: 00000000000050f7
R10: 0000000000000006 R11: ffffffff8c66401b R12: 00000000000402b9
R13: ffff88804f3b04c0 R14: ffff88804f3b0e00 R15: 0000000000000000
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:168
 spin_lock_bh include/linux/spinlock.h:334 [inline]
 lock_sock_nested+0x3b/0x110 net/core/sock.c:2864
 l2cap_sock_teardown_cb+0xa0/0x6d0 net/bluetooth/l2cap_sock.c:1348
 l2cap_chan_del+0xbc/0xa50 net/bluetooth/l2cap_core.c:603
 l2cap_chan_close+0x1b5/0x950 net/bluetooth/l2cap_core.c:761
 l2cap_chan_timeout+0x17e/0x2f0 net/bluetooth/l2cap_core.c:430
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/11 17:10 linux-4.19.y b172b44fcb17 3ce60af8 .config console log report info ci2-linux-4-19 WARNING: locking bug in l2cap_sock_teardown_cb
* Struck through repros no longer work on HEAD.