syzbot


INFO: task hung in con_write (3)

Status: auto-obsoleted due to no activity on 2025/04/29 09:12
Subsystems: kernel
[Documentation on labels]
First crash: 226d, last: 226d
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in con_write (2) serial 1 3 1886d 1933d 0/29 auto-closed as invalid on 2020/10/13 06:51
linux-4.19 INFO: task hung in con_write 1 2 1913d 1980d 0/1 auto-closed as invalid on 2020/10/15 09:20
upstream INFO: task hung in con_write serial 1 1 2098d 2098d 0/29 auto-closed as invalid on 2020/03/14 17:26
linux-4.14 INFO: task hung in con_write 1 1 1944d 1944d 0/1 auto-closed as invalid on 2020/09/14 21:41

Sample crash report:
INFO: task syslogd:5172 blocked for more than 144 seconds.
      Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syslogd         state:D stack:24240 pid:5172  tgid:5172  ppid:1      task_flags:0x400000 flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5377 [inline]
 __schedule+0xf43/0x5890 kernel/sched/core.c:6764
 __schedule_loop kernel/sched/core.c:6841 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6856
 schedule_timeout+0x244/0x280 kernel/time/sleep_timeout.c:75
 ___down_common+0x2d7/0x460 kernel/locking/semaphore.c:225
 __down_common kernel/locking/semaphore.c:246 [inline]
 __down+0x20/0x30 kernel/locking/semaphore.c:254
 down+0x74/0xa0 kernel/locking/semaphore.c:63
 console_lock+0x5b/0xa0 kernel/printk/printk.c:2833
 con_flush_chars drivers/tty/vt/vt.c:3503 [inline]
 con_write+0x81/0xb0 drivers/tty/vt/vt.c:3435
 process_output_block drivers/tty/n_tty.c:574 [inline]
 n_tty_write+0x419/0x1140 drivers/tty/n_tty.c:2389
 iterate_tty_write drivers/tty/tty_io.c:1015 [inline]
 file_tty_write.constprop.0+0x506/0x9a0 drivers/tty/tty_io.c:1090
 redirected_tty_write+0x7c/0x140 drivers/tty/tty_io.c:1130
 new_sync_write fs/read_write.c:586 [inline]
 vfs_write+0x5ae/0x1150 fs/read_write.c:679
 ksys_write+0x12b/0x250 fs/read_write.c:731
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff538c8cbf2
RSP: 002b:00007ffc4861b918 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff538c8cbf2
RDX: 0000000000000051 RSI: 000055d3753cf600 RDI: 0000000000000003
RBP: 000055d3753cf600 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000051
R13: 00007ff538b38480 R14: 0000000000000003 R15: 000055d3753cf410
 </TASK>

Showing all locks held in the system:
2 locks held by kthreadd/2:
3 locks held by kworker/u8:0/11:
3 locks held by kworker/u8:1/12:
5 locks held by kworker/1:0/25:
1 lock held by khungtaskd/30:
 #0: ffffffff8e1be000 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 #0: ffffffff8e1be000 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
 #0: ffffffff8e1be000 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x7f/0x390 kernel/locking/lockdep.c:6746
5 locks held by kworker/u8:3/56:
2 locks held by kworker/u8:5/964:
3 locks held by kworker/u8:6/3401:
 #0: ffff88801b081148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3211
 #1: ffffc9000c107d18 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3212
 #2: ffffffff8fef6168 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0x51/0xc0 net/core/link_watch.c:285
3 locks held by kworker/u8:7/3571:
4 locks held by syslogd/5172:
 #0: ffff88807e9f10a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffff88807e9f1130 (&tty->atomic_write_lock){+.+.}-{4:4}, at: tty_write_lock drivers/tty/tty_io.c:948 [inline]
 #1: ffff88807e9f1130 (&tty->atomic_write_lock){+.+.}-{4:4}, at: iterate_tty_write drivers/tty/tty_io.c:967 [inline]
 #1: ffff88807e9f1130 (&tty->atomic_write_lock){+.+.}-{4:4}, at: file_tty_write.constprop.0+0x281/0x9a0 drivers/tty/tty_io.c:1090
 #2: ffff88807e9f12e8 (&tty->termios_rwsem){++++}-{4:4}, at: n_tty_write+0x1bd/0x1140 drivers/tty/n_tty.c:2372
 #3: ffffc90003c8e380 (&ldata->output_lock){+.+.}-{4:4}, at: process_output_block drivers/tty/n_tty.c:529 [inline]
 #3: ffffc90003c8e380 (&ldata->output_lock){+.+.}-{4:4}, at: n_tty_write+0x533/0x1140 drivers/tty/n_tty.c:2389
1 lock held by udevd/5190:
2 locks held by dhcpcd/5483:
2 locks held by getty/5566:
 #0: ffff8880363a20a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0xfba/0x1480 drivers/tty/n_tty.c:2211
2 locks held by syz-executor/6026:
1 lock held by syz-executor/6029:
5 locks held by syz-executor/6031:
2 locks held by syz-executor/6035:
 #0: ffffffff8fef6168 (rtnl_mutex){+.+.}-{4:4}, at: tun_detach drivers/net/tun.c:702 [inline]
 #0: ffffffff8fef6168 (rtnl_mutex){+.+.}-{4:4}, at: tun_chr_close+0x38/0x230 drivers/net/tun.c:3521
 #1: ffff88805cc8c538 (&idev->mc_lock){+.+.}-{4:4}, at: __ipv6_dev_mc_dec+0x63/0x3b0 net/ipv6/mcast.c:1010
5 locks held by kworker/0:7/6136:
6 locks held by syz.1.6935/20304:
3 locks held by kworker/u8:8/20353:
3 locks held by syz-executor/20357:
2 locks held by syz-executor/20358:

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:236 [inline]
 watchdog+0xf62/0x12b0 kernel/hung_task.c:399
 kthread+0x3af/0x750 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 56 Comm: kworker/u8:3 Not tainted 6.13.0-syzkaller-08265-g9c5968db9e62 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: bat_events batadv_tt_purge
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:23 [inline]
RIP: 0010:raw_atomic_read include/linux/atomic/atomic-arch-fallback.h:457 [inline]
RIP: 0010:rcu_is_watching_curr_cpu include/linux/context_tracking.h:128 [inline]
RIP: 0010:rcu_is_watching+0x5c/0xc0 kernel/rcu/tree.c:716
Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 5c 48 03 1c ed e0 ec aa 8d 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 24 8b
RSP: 0018:ffffc900000069c8 EFLAGS: 00000a06
RAX: dffffc0000000000 RBX: ffff8880b8637be8 RCX: ffffffff8a03ef9c
RDX: 1ffff110170c6f7d RSI: ffffffff8bd2fe40 RDI: ffffffff8daaece0
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000005 R12: 0000000000000001
R13: ffffc90000006cf0 R14: 0000000000000000 R15: ffff88805a8708b8
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc74b59c9e0 CR3: 000000000df80000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 rcu_read_lock_held_common kernel/rcu/update.c:109 [inline]
 rcu_read_lock_held+0x1e/0x50 kernel/rcu/update.c:349
 __find_rr_leaf+0x36d/0xe00 net/ipv6/route.c:800
 find_rr_leaf net/ipv6/route.c:856 [inline]
 rt6_select net/ipv6/route.c:900 [inline]
 fib6_table_lookup+0x57e/0xa30 net/ipv6/route.c:2195
 ip6_pol_route+0x1cd/0x1120 net/ipv6/route.c:2231
 pol_lookup_func include/net/ip6_fib.h:616 [inline]
 fib6_rule_lookup+0x536/0x720 net/ipv6/fib6_rules.c:119
 ip6_route_input_lookup net/ipv6/route.c:2300 [inline]
 ip6_route_input+0x663/0xc10 net/ipv6/route.c:2596
 ip6_rcv_finish_core.constprop.0+0x1a0/0x5d0 net/ipv6/ip6_input.c:66
 ip6_rcv_finish+0x12c/0x5b0 net/ipv6/ip6_input.c:77
 ip_sabotage_in+0x21b/0x290 net/bridge/br_netfilter_hooks.c:993
 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]
 nf_hook_slow+0xbb/0x200 net/netfilter/core.c:626
 nf_hook.constprop.0+0x42e/0x750 include/linux/netfilter.h:269
 NF_HOOK include/linux/netfilter.h:312 [inline]
 ipv6_rcv+0xa4/0x680 net/ipv6/ip6_input.c:309
 __netif_receive_skb_one_core+0x12e/0x1e0 net/core/dev.c:5828
 __netif_receive_skb+0x1d/0x160 net/core/dev.c:5941
 netif_receive_skb_internal net/core/dev.c:6027 [inline]
 netif_receive_skb+0x13f/0x7b0 net/core/dev.c:6086
 NF_HOOK include/linux/netfilter.h:314 [inline]
 NF_HOOK include/linux/netfilter.h:308 [inline]
 br_pass_frame_up+0x346/0x490 net/bridge/br_input.c:70
 br_handle_frame_finish+0xecc/0x1c90 net/bridge/br_input.c:226
 br_nf_hook_thresh+0x303/0x410 net/bridge/br_netfilter_hooks.c:1170
 br_nf_pre_routing_finish_ipv6+0x76a/0xfb0 net/bridge/br_netfilter_ipv6.c:154
 NF_HOOK include/linux/netfilter.h:314 [inline]
 br_nf_pre_routing_ipv6+0x3ce/0x8c0 net/bridge/br_netfilter_ipv6.c:184
 br_nf_pre_routing+0x860/0x15b0 net/bridge/br_netfilter_hooks.c:508
 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline]
 nf_hook_bridge_pre net/bridge/br_input.c:282 [inline]
 br_handle_frame+0xad7/0x14a0 net/bridge/br_input.c:433
 __netif_receive_skb_core.constprop.0+0xa20/0x4330 net/core/dev.c:5722
 __netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5826
 __netif_receive_skb+0x1d/0x160 net/core/dev.c:5941
 process_backlog+0x443/0x15f0 net/core/dev.c:6289
 __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:7106
 napi_poll net/core/dev.c:7175 [inline]
 net_rx_action+0xa94/0x1010 net/core/dev.c:7297
 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561
 do_softirq kernel/softirq.c:462 [inline]
 do_softirq+0xb2/0xf0 kernel/softirq.c:449
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x100/0x120 kernel/softirq.c:389
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 batadv_tt_global_purge net/batman-adv/translation-table.c:2250 [inline]
 batadv_tt_purge+0x251/0xb90 net/batman-adv/translation-table.c:3510
 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3236
 process_scheduled_works kernel/workqueue.c:3317 [inline]
 worker_thread+0x6c8/0xf00 kernel/workqueue.c:3398
 kthread+0x3af/0x750 kernel/kthread.c:464
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/29 09:07 upstream 9c5968db9e62 865ef71e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in con_write
* Struck through repros no longer work on HEAD.