syzbot


WARNING: ODEBUG bug in cancel_delayed_work (2)

Status: upstream: reported C repro on 2021/12/04 09:19
Reported-by: syzbot+4b140c35e652626b77ba@syzkaller.appspotmail.com
First crash: 374d, last: 147d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING: ODEBUG bug in cancel_delayed_work (log)
Repro: C syz .config

Fix bisection: the fix commit could be any of (bisect log):
  8f4dd16603ce Merge branch 'akpm' (patches from Andrew)
  3cc40a443a04 Merge tag 'nios2_fixes_v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING: ODEBUG bug in cancel_delayed_work (2) 1 368d 368d 0/1 auto-closed as invalid on 2022/04/03 04:38
upstream WARNING: ODEBUG bug in cancel_delayed_work C done 3384 408d 859d 22/24 fixed on 2021/11/10 00:50
linux-4.19 WARNING: ODEBUG bug in cancel_delayed_work C done 1226 564d 859d 1/1 fixed on 2021/06/23 17:43
Patch testing requests:
Created Duration User Patch Repo Result
2022/11/26 01:30 19m retest repro linux-next OK log
2022/10/21 10:30 19m (2) retest repro net OK log
2022/10/21 14:30 19m retest repro upstream OK log
2022/10/21 08:30 16m retest repro net-next report log

Sample crash report:
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object type: timer_list hint: 0x0
WARNING: CPU: 1 PID: 3599 at lib/debugobjects.c:505 debug_print_object+0x16e/0x250 lib/debugobjects.c:505
Modules linked in:
CPU: 1 PID: 3599 Comm: syz-executor034 Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:debug_print_object+0x16e/0x250 lib/debugobjects.c:505
Code: ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 af 00 00 00 48 8b 14 dd c0 66 05 8a 4c 89 ee 48 c7 c7 c0 5a 05 8a e8 4f 3b 25 05 <0f> 0b 83 05 d5 08 b3 09 01 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e c3
RSP: 0018:ffffc90002a8f890 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000000
RDX: ffff88801b1bd700 RSI: ffffffff815eea08 RDI: fffff52000551f04
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815e87ae R11: 0000000000000000 R12: ffffffff89adf9c0
R13: ffffffff8a056140 R14: ffffffff8165db00 R15: 1ffff92000551f1d
FS:  0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f13318e00e8 CR3: 000000000b88e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 debug_object_assert_init lib/debugobjects.c:895 [inline]
 debug_object_assert_init+0x1f4/0x2e0 lib/debugobjects.c:866
 debug_timer_assert_init kernel/time/timer.c:739 [inline]
 debug_assert_init kernel/time/timer.c:784 [inline]
 del_timer+0x6d/0x110 kernel/time/timer.c:1204
 try_to_grab_pending+0x6d/0xd0 kernel/workqueue.c:1271
 __cancel_work kernel/workqueue.c:3259 [inline]
 cancel_delayed_work+0x79/0x340 kernel/workqueue.c:3288
 l2cap_clear_timer include/net/bluetooth/l2cap.h:883 [inline]
 l2cap_chan_del+0x517/0xa80 net/bluetooth/l2cap_core.c:665
 l2cap_conn_del+0x3c2/0x7b0 net/bluetooth/l2cap_core.c:1898
 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:8177 [inline]
 l2cap_disconn_cfm+0x95/0xd0 net/bluetooth/l2cap_core.c:8170
 hci_disconn_cfm include/net/bluetooth/hci_core.h:1556 [inline]
 hci_conn_hash_flush+0x127/0x260 net/bluetooth/hci_conn.c:1455
 hci_dev_close_sync+0x567/0x1120 net/bluetooth/hci_sync.c:4108
 hci_dev_do_close+0x32/0x70 net/bluetooth/hci_core.c:553
 hci_unregister_dev+0x1d0/0x550 net/bluetooth/hci_core.c:2686
 vhci_release+0x7c/0xf0 drivers/bluetooth/hci_vhci.c:568
 __fput+0x286/0x9f0 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc14/0x2b40 kernel/exit.c:832
 do_group_exit+0x125/0x310 kernel/exit.c:929
 __do_sys_exit_group kernel/exit.c:940 [inline]
 __se_sys_exit_group kernel/exit.c:938 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:938
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f1331889629
Code: Unable to access opcode bytes at RIP 0x7f13318895ff.
RSP: 002b:00007ffd8e835988 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f1331914390 RCX: 00007f1331889629
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffb8 R09: 000000ff3190ee00
R10: 000000ff3190ee00 R11: 0000000000000246 R12: 00007f1331914390
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>

Crashes (13):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-kasan-gce 2022/01/20 17:47 net-next fe8152b38d3a b838eb76 .config log report syz C WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-kasan-gce-root 2022/04/28 03:01 upstream 8f4dd16603ce 8a1f1f07 .config log report syz C WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-net-this-kasan-gce 2022/01/20 17:25 net fa2e1ba3e9e3 b838eb76 .config log report syz C WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-linux-next-kasan-gce-root 2022/06/12 13:42 linux-next 6d0c80680317 0d5abf15 .config log report syz C WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-kasan-gce-root 2022/05/23 03:03 upstream 4b0986a3613c 7268fa62 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-kasan-gce-root 2022/01/21 05:32 upstream 2c271fe77d52 ab3d9f17 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-kasan-gce-selinux-root 2022/01/15 17:11 upstream a33f5c380c4b 723cfaf0 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
ci-qemu-upstream-386 2022/01/28 06:33 upstream 23a46422c561 495e00c5 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
ci-qemu-upstream-386 2022/01/27 19:28 upstream 626b2dda7651 64a8e201 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
ci-qemu-upstream-386 2021/11/28 09:01 upstream 3498e7f2bb41 63eeac02 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-net-kasan-gce 2022/03/01 11:33 net-next f2b77012ddd5 45a13a73 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-net-kasan-gce 2022/02/07 17:48 net-next 5a8fb33e5305 a7dab638 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
ci-upstream-net-kasan-gce 2022/02/06 04:05 net-next 5a8fb33e5305 a7dab638 .config log report info WARNING: ODEBUG bug in cancel_delayed_work
* Struck through repros no longer work on HEAD.