syzbot


upstream test error: WARNING: ODEBUG bug in mgmt_index_removed

Status: upstream: reported on 2022/08/04 09:42
Reported-by: syzbot+b8ddd338a8838e581b1c@syzkaller.appspotmail.com
Fix commit: Bluetooth: don't try to cancel uninitialized works at mgmt_index_removed()
Patched on: [ci-upstream-linux-next-kasan-gce-root ci-upstream-net-this-kasan-gce], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-net-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 6d14h, last: 40m
duplicates (3):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-next test error: WARNING: ODEBUG bug in mgmt_index_removed 21 4d08h 7d15h 0/23 closed as dup on 2022/08/05 07:14
bpf-next test error: WARNING: ODEBUG bug in mgmt_index_removed 111 6h06m 14d 0/23 closed as dup on 2022/08/05 07:16
net-next test error: WARNING: ODEBUG bug in mgmt_index_removed 162 7h50m 14d 0/23 closed as dup on 2022/08/05 07:15

Sample crash report:
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object type: timer_list hint: 0x0
WARNING: CPU: 1 PID: 3692 at lib/debugobjects.c:502 debug_print_object+0x16e/0x250 lib/debugobjects.c:502
Modules linked in:
CPU: 1 PID: 3692 Comm: syz-executor.0 Not tainted 5.19.0-syzkaller-13663-gaeb6e6ac18c7 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:debug_print_object+0x16e/0x250 lib/debugobjects.c:502
Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 af 00 00 00 48 8b 14 dd e0 e2 48 8a 4c 89 ee 48 c7 c7 80 d6 48 8a e8 53 98 38 05 <0f> 0b 83 05 25 69 dd 09 01 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e c3
RSP: 0018:ffffc90002edf6e0 EFLAGS: 00010086
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000000
RDX: ffff88801c0b8180 RSI: ffffffff81611b48 RDI: fffff520005dbece
RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffffffff89eeeb60
R13: ffffffff8a48dd40 R14: ffffffff816a4d00 R15: 1ffff920005dbee7
FS:  0000000000000000(0000) GS:ffff88802c900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f30cd7e3300 CR3: 0000000024f34000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 debug_object_assert_init lib/debugobjects.c:892 [inline]
 debug_object_assert_init+0x1f4/0x2e0 lib/debugobjects.c:863
 debug_timer_assert_init kernel/time/timer.c:792 [inline]
 debug_assert_init kernel/time/timer.c:837 [inline]
 del_timer+0x6d/0x110 kernel/time/timer.c:1257
 try_to_grab_pending+0x6d/0xd0 kernel/workqueue.c:1275
 __cancel_work_timer+0xa6/0x570 kernel/workqueue.c:3121
 mgmt_index_removed+0x187/0x2e0 net/bluetooth/mgmt.c:8939
 hci_unregister_dev+0x34f/0x4e0 net/bluetooth/hci_core.c:2688
 vhci_release+0x7c/0xf0 drivers/bluetooth/hci_vhci.c:568
 __fput+0x277/0x9d0 fs/file_table.c:320
 task_work_run+0xdd/0x1a0 kernel/task_work.c:177
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xad5/0x29b0 kernel/exit.c:795
 do_group_exit+0xd2/0x2f0 kernel/exit.c:925
 get_signal+0x238c/0x2610 kernel/signal.c:2857
 arch_do_signal_or_restart+0x82/0x2300 arch/x86/kernel/signal.c:869
 exit_to_user_mode_loop kernel/entry/common.c:166 [inline]
 exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1c4e488db8
Code: Unable to access opcode bytes at RIP 0x7f1c4e488d8e.
RSP: 002b:00007fffdcd83290 EFLAGS: 00000287 ORIG_RAX: 0000000000000101
RAX: 0000000000000003 RBX: 0000000000000003 RCX: 00007f1c4e488db8
RDX: 0000000000090800 RSI: 00007fffdcd84480 RDI: 00000000ffffff9c
RBP: 00007fffdcd8445c R08: 0000000000090800 R09: 00007fffdcd84480
R10: 0000000000000000 R11: 0000000000000287 R12: 00007f1c4e4e22ce
R13: 00007fffdcd84480 R14: 0000000000000003 R15: 00007fffdcd844c0
 </TASK>

Crashes (476):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream 2022/08/10 21:56 upstream aeb6e6ac18c7 a6201f11 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream 2022/08/10 08:36 upstream d4252071b97d aaa9eaa0 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/10 06:08 upstream d4252071b97d c2a623d6 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/09 18:55 upstream 15205c2829ca c2a623d6 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/09 18:55 upstream 15205c2829ca c2a623d6 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/09 17:51 upstream 426b4ca2d6a5 c2a623d6 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce 2022/08/09 17:23 upstream 426b4ca2d6a5 c2a623d6 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream 2022/08/09 15:33 upstream eb555cb5b794 c2a623d6 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-selinux-root 2022/08/09 05:32 upstream eb555cb5b794 da700653 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/09 05:22 upstream eb555cb5b794 da700653 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-selinux-root 2022/08/08 23:47 upstream 5d5d353bed32 da700653 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream 2022/08/08 23:33 upstream 5d5d353bed32 da700653 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce 2022/08/08 22:31 upstream 3466f49dd0dd 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream 2022/08/08 18:06 upstream 3466f49dd0dd da700653 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/08 01:02 upstream 4e23eeebb2e5 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce 2022/08/07 20:35 upstream 3bc1bc0b59d0 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream 2022/08/07 18:30 upstream 3bc1bc0b59d0 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-selinux-root 2022/08/07 01:22 upstream 1612c382ffbd 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce 2022/08/07 01:13 upstream 1612c382ffbd 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-selinux-root 2022/08/06 22:58 upstream 4d1044fcb996 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream 2022/08/06 21:12 upstream af3e9579ecfb 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/06 13:43 upstream 6614a3c3164a 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce 2022/08/05 23:55 upstream 6614a3c3164a e853abd9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/05 21:35 upstream 74cae210a335 e853abd9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/05 19:14 upstream 9e2f40233670 e853abd9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/05 18:08 upstream 3bd6e5854bf9 e853abd9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce 2022/08/05 17:23 upstream b2a88c212e65 e853abd9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-root 2022/08/05 16:12 upstream b2a88c212e65 e853abd9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream 2022/08/04 09:29 upstream b44f2fd87919 1c9013ac .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/10 20:41 upstream f41445645ab5 a6201f11 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/10 18:51 upstream f41445645ab5 aaa9eaa0 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/10 18:51 upstream f41445645ab5 aaa9eaa0 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-386 2022/08/10 14:36 upstream d4252071b97d a6201f11 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/09 23:29 upstream d4252071b97d c2a623d6 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-386 2022/08/09 16:21 upstream eb555cb5b794 c2a623d6 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/09 03:34 upstream eb555cb5b794 da700653 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/08 19:10 upstream c8a684e2e110 da700653 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/08 15:12 upstream 4e23eeebb2e5 da700653 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-386 2022/08/08 01:41 upstream 4e23eeebb2e5 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-386 2022/08/07 20:27 upstream 3bc1bc0b59d0 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-386 2022/08/06 22:20 upstream af3e9579ecfb 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/06 20:51 upstream af3e9579ecfb 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/06 18:53 upstream 20cf903a0c40 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-386 2022/08/06 14:52 upstream 6614a3c3164a 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/06 12:38 upstream 6614a3c3164a 88e3a122 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/06 00:25 upstream 6614a3c3164a e853abd9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-upstream-kasan-gce-386 2022/08/05 22:04 upstream 74cae210a335 e853abd9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/05 19:08 upstream 9e2f40233670 a65a7ce9 .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed
ci-qemu-upstream-386 2022/08/04 09:01 upstream b44f2fd87919 1c9013ac .config log report upstream test error: WARNING: ODEBUG bug in mgmt_index_removed