syzbot


WARNING in __cancel_work

Status: closed as dup on 2022/11/05 05:43
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+10e37d0d88cbc2ea19e4@syzkaller.appspotmail.com
First crash: 860d, last: 816d
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: fixed by (bisect log) :
commit 2d2cb3066f2c90cd8ca540b36ba7a55e7f2406e0
Author: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Date: Sat Sep 3 15:32:56 2022 +0000

  Bluetooth: L2CAP: initialize delayed works at l2cap_chan_create()

  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING: ODEBUG bug in __cancel_work bluetooth C inconclusive 1 859d 855d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in __cancel_work 0 (2) 2022/11/05 05:27
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/08/18 10:52 19m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7ebfc85e2cd7 OK log

Sample crash report:
------------[ cut here ]------------
ODEBUG: assert_init not available (active state 0) object type: timer_list hint: 0x0
WARNING: CPU: 1 PID: 3621 at lib/debugobjects.c:505 debug_print_object lib/debugobjects.c:502 [inline]
WARNING: CPU: 1 PID: 3621 at lib/debugobjects.c:505 debug_object_assert_init+0x1fa/0x250 lib/debugobjects.c:892
Modules linked in:
CPU: 1 PID: 3621 Comm: syz-executor370 Not tainted 5.19.0-syzkaller-13930-g7ebfc85e2cd7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:debug_print_object lib/debugobjects.c:502 [inline]
RIP: 0010:debug_object_assert_init+0x1fa/0x250 lib/debugobjects.c:892
Code: e8 db 3a a3 fd 4c 8b 45 00 48 c7 c7 c0 5e 0a 8b 48 c7 c6 c0 5b 0a 8b 48 c7 c2 60 60 0a 8b 31 c9 49 89 d9 31 c0 e8 86 73 17 fd <0f> 0b ff 05 da a3 eb 09 48 83 c5 38 48 89 e8 48 c1 e8 03 42 80 3c
RSP: 0018:ffffc90003d5f8d8 EFLAGS: 00010046
RAX: e412196666895900 RBX: 0000000000000000 RCX: ffff88801fda3b00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffffff8aafbf60 R08: ffffffff816d56dd R09: ffffed1017364f14
R10: ffffed1017364f14 R11: 1ffff11017364f13 R12: dffffc0000000000
R13: ffff8880253f3200 R14: 0000000000000002 R15: ffffffff91a40048
FS:  0000555556182300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000045b630 CR3: 0000000070ee9000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 debug_timer_assert_init kernel/time/timer.c:792 [inline]
 debug_assert_init kernel/time/timer.c:837 [inline]
 del_timer+0xa5/0x3d0 kernel/time/timer.c:1257
 try_to_grab_pending+0x150/0x820 kernel/workqueue.c:1275
 __cancel_work+0xb8/0x380 kernel/workqueue.c:3250
 l2cap_clear_timer include/net/bluetooth/l2cap.h:884 [inline]
 l2cap_chan_del+0x41c/0x610 net/bluetooth/l2cap_core.c:688
 l2cap_sock_shutdown+0x39f/0x860 net/bluetooth/l2cap_sock.c:1377
 l2cap_sock_release+0x68/0x1c0 net/bluetooth/l2cap_sock.c:1420
 __sock_release net/socket.c:650 [inline]
 sock_close+0xd7/0x260 net/socket.c:1365
 __fput+0x3b9/0x820 fs/file_table.c:320
 task_work_run+0x146/0x1c0 kernel/task_work.c:177
 ptrace_notify+0x29a/0x340 kernel/signal.c:2353
 ptrace_report_syscall include/linux/ptrace.h:420 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:482 [inline]
 syscall_exit_work+0x8c/0xe0 kernel/entry/common.c:249
 syscall_exit_to_user_mode_prepare+0x6b/0xc0 kernel/entry/common.c:276
 __syscall_exit_to_user_mode_work kernel/entry/common.c:281 [inline]
 syscall_exit_to_user_mode+0xa/0x60 kernel/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f4b18cac08b
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:00007ffe515692a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f4b18cac08b
RDX: ffffffffffffffb8 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 0000000000000003 R08: 0000000000000000 R09: 000000ff00000001
R10: 0000000000000004 R11: 0000000000000293 R12: 00005555561822b8
R13: 0000000000000009 R14: 00007ffe51569310 R15: 0000000000000003
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/14 01:48 upstream 7ebfc85e2cd7 8dfcaa3d .config strace log report syz C ci-upstream-kasan-gce-smack-root WARNING in __cancel_work
2022/08/14 00:16 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report info ci-upstream-kasan-gce-smack-root WARNING in __cancel_work
2022/09/27 12:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 87840e00 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __cancel_work
* Struck through repros no longer work on HEAD.