syzbot


WARNING: locking bug in l2cap_sock_teardown_cb (3)

Status: auto-obsoleted due to no activity on 2022/10/13 18:01
Reported-by: syzbot+46991871b4264ba67ffe@syzkaller.appspotmail.com
First crash: 678d, last: 678d
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 1097d 1136d 0/1 auto-closed as invalid on 2021/08/20 21:06
linux-4.19 WARNING: locking bug in l2cap_sock_teardown_cb 2 1177d 1201d 0/1 auto-closed as invalid on 2021/06/02 08:55
linux-4.19 WARNING: locking bug in l2cap_sock_teardown_cb (2) 1 956d 956d 0/1 auto-closed as invalid on 2022/01/09 17:11
upstream WARNING: locking bug in l2cap_sock_teardown_cb bluetooth 129 912d 1205d 0/26 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: 2855 at kernel/locking/lockdep.c:3393 __lock_acquire+0x1221/0x3ff0 kernel/locking/lockdep.c:3393
IPVS: ftp: loaded support on port[0] = 21
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 2855 Comm: kworker/0:2 Not tainted 4.19.211-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 5b ed 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 54 b3 a7 06 <0f> 0b e9 61 ef ff ff 8b 05 52 2d d9 0b 85 c0 0f 85 4e f9 ff ff 4c
RSP: 0018:ffff8880adf07930 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1015be0f18
RBP: ffff8880adef6e8a R08: 0000000000000000 R09: 000000000000287f
R10: 0000000000000006 R11: ffffffff8c66501b R12: 000000000004066f
R13: ffff8880adef6540 R14: ffff8880adef6e80 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:2884
 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
2022/06/15 18:01 linux-4.19.y 3f8a27f9e27b 1719ee24 .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.