syzbot


INFO: task hung in comedi_open

Status: upstream: reported C repro on 2025/12/26 05:04
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+39f0429e297d1a9c9c80@syzkaller.appspotmail.com
First crash: 21d, last: 6d03h
Bug presence (2)
Date Name Commit Repro Result
2025/12/26 linux-6.6.y (ToT) 5fa4793a2d2d C [report] INFO: task hung in comedi_open
2025/12/26 upstream (ToT) ccd1cdca5cd4 C Didn't crash
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in comedi_open origin:lts-only 1 C inconclusive 4 6d02h 32d 0/3 upstream: reported C repro on 2025/12/15 06:44
upstream INFO: task hung in comedi_open comedi 1 C 24 25d 164d 29/29 fixed on 2026/01/07 12:29
linux-6.1 INFO: task hung in comedi_open origin:lts-only 1 C 10 6d02h 22d 0/3 upstream: reported C repro on 2025/12/25 02:22

Sample crash report:
INFO: task syz.3.20:6003 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.3.20        state:D stack:26440 pid:6003  ppid:5908   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6832
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x6b7/0xcc0 kernel/locking/mutex.c:747
 comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
 chrdev_open+0x59e/0x670 fs/char_dev.c:414
 do_dentry_open+0x8c6/0x1500 fs/open.c:929
 do_open fs/namei.c:3640 [inline]
 path_openat+0x274b/0x3190 fs/namei.c:3797
 do_filp_open+0x1c5/0x3d0 fs/namei.c:3824
 do_sys_openat2+0x12c/0x1c0 fs/open.c:1421
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_openat fs/open.c:1452 [inline]
 __se_sys_openat fs/open.c:1447 [inline]
 __x64_sys_openat+0x139/0x160 fs/open.c:1447
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2d4398f749
RSP: 002b:00007ffdde6b6a98 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f2d43be5fa0 RCX: 00007f2d4398f749
RDX: 0000000000000400 RSI: 0000200000000080 RDI: ffffffffffffff9c
RBP: 00007f2d43a13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2d43be5fa0 R14: 00007f2d43be5fa0 R15: 0000000000000004
 </TASK>
INFO: task syz.2.19:6005 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.19        state:D stack:26664 pid:6005  ppid:5901   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6832
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x6b7/0xcc0 kernel/locking/mutex.c:747
 comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
 chrdev_open+0x59e/0x670 fs/char_dev.c:414
 do_dentry_open+0x8c6/0x1500 fs/open.c:929
 do_open fs/namei.c:3640 [inline]
 path_openat+0x274b/0x3190 fs/namei.c:3797
 do_filp_open+0x1c5/0x3d0 fs/namei.c:3824
 do_sys_openat2+0x12c/0x1c0 fs/open.c:1421
 do_sys_open fs/open.c:1436 [inline]
 __do_sys_openat fs/open.c:1452 [inline]
 __se_sys_openat fs/open.c:1447 [inline]
 __x64_sys_openat+0x139/0x160 fs/open.c:1447
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb7de98f749
RSP: 002b:00007ffc232830f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fb7debe5fa0 RCX: 00007fb7de98f749
RDX: 0000000000000400 RSI: 0000200000000080 RDI: ffffffffffffff9c
RBP: 00007fb7dea13f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb7debe5fa0 R14: 00007fb7debe5fa0 R15: 0000000000000004
 </TASK>

Showing all locks held in the system:
3 locks held by kworker/u4:1/12:
 #0: ffff88802c1bd138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff88802c1bd138 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffffc90000117d00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #1: ffffc90000117d00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #2: ffffffff8dfb5448 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xd0/0x14e0 net/ipv6/addrconf.c:4158
1 lock held by khungtaskd/29:
 #0: ffffffff8cd2ff20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8cd2ff20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8cd2ff20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6633
2 locks held by kworker/u4:3/49:
3 locks held by kworker/u4:9/1143:
 #0: ffff888017871538 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff888017871538 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffffc900045bfd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #1: ffffc900045bfd00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #2: ffffffff8dfb5448 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:286
3 locks held by kworker/u4:12/3481:
2 locks held by getty/5528:
 #0: ffff88802d15a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000326e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x425/0x1380 drivers/tty/n_tty.c:2217
2 locks held by kworker/0:6/5996:
 #0: ffff888017872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff888017872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffffc90003207d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #1: ffffc90003207d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
2 locks held by syz.0.17/6001:
1 lock held by syz.3.20/6003:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.2.19/6005:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.1.18/6010:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.5.22/6122:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.4.21/6123:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.7.24/6125:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.6.23/6126:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.8.25/6219:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.9.26/6220:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.0.27/6221:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.2.28/6223:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.3.29/6280:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.1.30/6320:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.4.32/6327:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.5.31/6328:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz.7.33/6369:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
1 lock held by syz-executor/6373:
 #0: ffffffff8dfb5448 (rtnl_mutex){+.+.}-{3:3}, at: devinet_ioctl+0x32c/0x1c60 net/ipv4/devinet.c:1101
1 lock held by syz.6.34/6421:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816
2 locks held by syz-executor/6439:
 #0: ffffffff8dfb5448 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:78 [inline]
 #0: ffffffff8dfb5448 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x76f/0xf10 net/core/rtnetlink.c:6469
 #1: ffffffff8cd358f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline]
 #1: ffffffff8cd358f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x448/0x830 kernel/rcu/tree_exp.h:1004
1 lock held by syz.8.35/6444:
 #0: ffff88802bb2e0f8 (&dev->mutex#3){+.+.}-{3:3}, at: comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2816

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x39b/0x3d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x2f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xf41/0xf80 kernel/hung_task.c:379
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5988 Comm: kworker/1:6 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Workqueue: events_power_efficient wg_ratelimiter_gc_entries
RIP: 0010:kasan_mem_to_shadow include/linux/kasan.h:60 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:127 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:178 [inline]
RIP: 0010:kasan_check_range+0x3d/0x290 mm/kasan/generic.c:187
Code: 56 41 55 41 54 53 4c 8d 04 37 49 39 f8 0f 82 5a 02 00 00 49 89 f9 49 c1 e9 2f 41 81 f9 ff ff 01 00 0f 82 46 02 00 00 49 89 ff <49> c1 ef 03 49 ba 00 00 00 00 00 fc ff df 4f 8d 1c 17 49 ff c8 4d
RSP: 0018:ffffc90003237768 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 00000000000007da RCX: ffffffff81670bf0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90d945f8
RBP: ffffc900032379e8 R08: ffffffff90d94600 R09: 000000000001ffff
R10: dffffc0000000000 R11: fffffbfff21b28c0 R12: 0000000000000000
R13: ffff888030c49e00 R14: ffff888030c4a930 R15: ffffffff90d945f8
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055556468a5c8 CR3: 000000002df2b000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 __lock_acquire+0xda0/0x7c80 kernel/locking/lockdep.c:5107
 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 wg_ratelimiter_gc_entries+0x5d/0x450 drivers/net/wireguard/ratelimiter.c:63
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/26 14:57 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in comedi_open
2025/12/26 11:54 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in comedi_open
2025/12/26 08:35 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in comedi_open
2025/12/26 08:03 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in comedi_open
2026/01/10 11:17 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in comedi_open
2025/12/26 05:03 linux-6.6.y 5fa4793a2d2d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: task hung in comedi_open
* Struck through repros no longer work on HEAD.