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: 220d, last: 23d

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
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 214d 214d 0/1 auto-closed as invalid on 2022/04/03 04:38
upstream WARNING: ODEBUG bug in cancel_delayed_work C done 3384 254d 705d 22/22 fixed on 2021/11/10 00:50
linux-4.19 WARNING: ODEBUG bug in cancel_delayed_work C done 1226 410d 705d 1/1 fixed on 2021/06/23 17:43

Sample crash report:
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object type: timer_list hint: 0x0
WARNING: CPU: 1 PID: 3594 at lib/debugobjects.c:505 debug_print_object+0x16e/0x250 lib/debugobjects.c:505
Modules linked in:
CPU: 1 PID: 3594 Comm: syz-executor193 Not tainted 5.18.0-rc4-syzkaller-00064-g8f4dd16603ce #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 00 3f 27 8a 4c 89 ee 48 c7 c7 00 33 27 8a e8 21 52 29 05 <0f> 0b 83 05 75 e4 bc 09 01 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e c3
RSP: 0018:ffffc9000334f928 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000000
RDX: ffff888023571d80 RSI: ffffffff81600c08 RDI: fffff52000669f17
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815fb5de R11: 0000000000000000 R12: ffffffff89ce5080
R13: ffffffff8a273980 R14: ffffffff81674180 R15: 1ffff92000669f30
FS:  000055555593a300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e7d9a754b0 CR3: 000000007da78000 CR4: 0000000000350ee0
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:1275
 __cancel_work kernel/workqueue.c:3250 [inline]
 cancel_delayed_work+0x79/0x340 kernel/workqueue.c:3279
 l2cap_clear_timer include/net/bluetooth/l2cap.h:883 [inline]
 l2cap_chan_del+0x517/0xa80 net/bluetooth/l2cap_core.c:665
 l2cap_chan_close+0x1b9/0xaf0 net/bluetooth/l2cap_core.c:825
 l2cap_sock_shutdown+0x3d2/0x1070 net/bluetooth/l2cap_sock.c:1377
 l2cap_sock_release+0x72/0x200 net/bluetooth/l2cap_sock.c:1420
 __sock_release+0xcd/0x280 net/socket.c:650
 sock_close+0x18/0x20 net/socket.c:1318
 __fput+0x277/0x9d0 fs/file_table.c:317
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:169 [inline]
 exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:294
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f689864406b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffdfde0f030 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f689864406b
RDX: ffffffffffffffb8 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 0000000000000003 R08: 0000000000000000 R09: 000000ff00000000
R10: 000000ff00000000 R11: 0000000000000293 R12: 000055555593a2b8
R13: 0000000000000072 R14: 00007ffdfde0f0a0 R15: 0000000000000003
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-net-this-kasan-gce 2022/03/31 16:07 net 46b556205dce b838eb76 .config log report syz C
Crashes (13):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
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-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-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