syzbot


WARNING: locking bug in sco_conn_del

Status: auto-closed as invalid on 2022/02/07 01:50
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+cd697685f3b1d78acd79@syzkaller.appspotmail.com
First crash: 955d, last: 941d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING: locking bug in sco_conn_del 0 (1) 2021/09/30 13:30

Sample crash report:
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(1)
WARNING: CPU: 0 PID: 11797 at kernel/locking/lockdep.c:203 check_wait_context kernel/locking/lockdep.c:4688 [inline]
WARNING: CPU: 0 PID: 11797 at kernel/locking/lockdep.c:203 __lock_acquire+0xb6c/0x2b00 kernel/locking/lockdep.c:4965
Modules linked in:
CPU: 0 PID: 11797 Comm: syz-executor.4 Not tainted 5.15.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:hlock_class kernel/locking/lockdep.c:203 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4688 [inline]
RIP: 0010:__lock_acquire+0xb6c/0x2b00 kernel/locking/lockdep.c:4965
Code: 78 0c 00 0f 85 0d fa ff ff 31 db 48 c7 c7 00 e9 4e 8a 48 c7 c6 40 ec 4e 8a 31 c0 e8 5e 9f e9 ff 48 ba 00 00 00 00 00 fc ff df <0f> 0b e9 07 fa ff ff e8 f8 a7 a9 02 85 c0 0f 84 f5 06 00 00 48 c7
RSP: 0018:ffffc9000f73f480 EFLAGS: 00010046
RAX: 95f8aad604fa6c00 RBX: 0000000000000000 RCX: ffff888026045580
RDX: dffffc0000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000f73f5d0 R08: ffffffff81681d12 R09: ffffed1017383f2c
R10: ffffed1017383f2c R11: 0000000000000000 R12: 000000000000000f
R13: ffff888026046010 R14: 000000000000151d R15: ffff888026045f70
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1e8636c058 CR3: 000000004399c000 CR4: 00000000003506f0
Call Trace:
 lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625
 lock_sock_nested+0x4a/0x100 net/core/sock.c:3203
 lock_sock include/net/sock.h:1615 [inline]
 sco_conn_del+0x10a/0x2f0 net/bluetooth/sco.c:194
 hci_disconn_cfm include/net/bluetooth/hci_core.h:1518 [inline]
 hci_conn_hash_flush+0x112/0x240 net/bluetooth/hci_conn.c:1608
 hci_dev_do_close+0x93e/0xeb0 net/bluetooth/hci_core.c:1793
 hci_unregister_dev+0x2a2/0x510 net/bluetooth/hci_core.c:4029
 vhci_release+0x73/0xc0 drivers/bluetooth/hci_vhci.c:340
 __fput+0x3fe/0x870 fs/file_table.c:280
 task_work_run+0x146/0x1c0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0x6fc/0x2580 kernel/exit.c:825
 do_group_exit+0x168/0x2d0 kernel/exit.c:922
 get_signal+0x16e0/0x20c0 kernel/signal.c:2868
 arch_do_signal_or_restart+0x9c/0x730 arch/x86/kernel/signal.c:865
 handle_signal_work kernel/entry/common.c:148 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:172 [inline]
 exit_to_user_mode_prepare+0x191/0x220 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300
 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fda398ce8d9
Code: Unable to access opcode bytes at RIP 0x7fda398ce8af.
RSP: 002b:00007fda36e45218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007fda399d2f68 RCX: 00007fda398ce8d9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fda399d2f68
RBP: 00007fda399d2f60 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fda399d2f6c
R13: 00007ffc813e039f R14: 00007fda36e45300 R15: 0000000000022000

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/10 01:49 upstream 7fd2bf83d59a 838e7e2c .config console log report info ci-upstream-kasan-gce-smack-root WARNING: locking bug in sco_conn_del
2021/09/26 13:11 upstream a3b397b4fffb 8cac236e .config console log report info ci-upstream-kasan-gce-root WARNING: locking bug in sco_conn_del
* Struck through repros no longer work on HEAD.