syzbot


INFO: task hung in do_coredump

Status: auto-obsoleted due to no activity on 2023/05/26 05:58
Subsystems: fs
[Documentation on labels]
First crash: 656d, last: 656d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in do_coredump (2) fs 1 182d 182d 0/28 auto-obsoleted due to no activity on 2024/09/10 17:47
upstream INFO: task hung in do_coredump (3) nfs C 235 5h08m 56d 0/28 upstream: reported C repro on 2024/10/17 09:02

Sample crash report:
INFO: task syz-executor.0:7842 blocked for more than 143 seconds.
      Not tainted 6.2.0-syzkaller-10217-ga93e884edf61 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:27304 pid:7842  ppid:5104   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5304 [inline]
 __schedule+0x17d8/0x4990 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6698
 schedule_timeout+0xb0/0x310 kernel/time/timer.c:2143
 do_wait_for_common+0x449/0x5f0 kernel/sched/completion.c:85
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common kernel/sched/completion.c:117 [inline]
 wait_for_completion_state+0x4c/0x70 kernel/sched/completion.c:254
 coredump_wait fs/coredump.c:412 [inline]
 do_coredump+0x9f9/0x2980 fs/coredump.c:569
 get_signal+0x145e/0x17e0 kernel/signal.c:2845
 arch_do_signal_or_restart+0x91/0x670 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x64/0x2e0 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb3b0cb0e21
RSP: 002b:00007fff0710d2f0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: 0000000000000000 RBX: 00007fb3b0dabf80 RCX: 00007fb3b0cb0e21
RDX: 00007fff0710d330 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fb3b0dad980 R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000000563fc
R13: 00007fff0710d440 R14: 00007fb3b0dac120 R15: 0000000000000032
 </TASK>
INFO: task syz-executor.0:7843 blocked for more than 146 seconds.
      Not tainted 6.2.0-syzkaller-10217-ga93e884edf61 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:24304 pid:7843  ppid:5104   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5304 [inline]
 __schedule+0x17d8/0x4990 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6698
 coredump_task_exit+0x2c5/0x3a0 kernel/exit.c:432
 do_exit+0x29a/0x2290 kernel/exit.c:819
 do_group_exit+0x206/0x2c0 kernel/exit.c:1019
 get_signal+0x1701/0x17e0 kernel/signal.c:2859
 arch_do_signal_or_restart+0x91/0x670 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x64/0x2e0 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb3b0c8c0f9
RSP: 002b:00007fb3b1a66218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007fb3b0dabf88 RCX: 00007fb3b0c8c0f9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb3b0dabf88
RBP: 00007fb3b0dabf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb3b0dabf8c
R13: 00007fff0710d2df R14: 00007fb3b1a66300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:7862 blocked for more than 147 seconds.
      Not tainted 6.2.0-syzkaller-10217-ga93e884edf61 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:26872 pid:7862  ppid:5104   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5304 [inline]
 __schedule+0x17d8/0x4990 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6698
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757
 rwsem_down_read_slowpath+0x5f4/0x950 kernel/locking/rwsem.c:1086
 __down_read_common+0x61/0x2c0 kernel/locking/rwsem.c:1250
 iterate_supers+0xb0/0x1e0 fs/super.c:734
 ksys_sync+0xbd/0x1c0 fs/sync.c:102
 __do_sys_sync+0xe/0x20 fs/sync.c:113
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb3b0c8c0f9
RSP: 002b:00007fb3b1a45168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007fb3b0dac050 RCX: 00007fb3b0c8c0f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fb3b0ce7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff0710d2df R14: 00007fb3b1a45300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:7863 blocked for more than 149 seconds.
      Not tainted 6.2.0-syzkaller-10217-ga93e884edf61 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:28600 pid:7863  ppid:5104   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5304 [inline]
 __schedule+0x17d8/0x4990 kernel/sched/core.c:6622
 schedule+0xc3/0x180 kernel/sched/core.c:6698
 coredump_task_exit+0x2c5/0x3a0 kernel/exit.c:432
 do_exit+0x29a/0x2290 kernel/exit.c:819
 do_group_exit+0x206/0x2c0 kernel/exit.c:1019
 get_signal+0x1701/0x17e0 kernel/signal.c:2859
 arch_do_signal_or_restart+0x91/0x670 arch/x86/kernel/signal.c:306
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:203
 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
 syscall_exit_to_user_mode+0x64/0x2e0 kernel/entry/common.c:296
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fb3b0c8c0f9
RSP: 002b:00007fb3b1a24218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00007fb3b0dac128 RCX: 00007fb3b0c8c0f9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb3b0dac128
RBP: 00007fb3b0dac120 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb3b0dac12c
R13: 00007fff0710d2df R14: 00007fb3b1a24300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
5 locks held by kworker/u4:0/9:
 #0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539
 #1: ffff8880b9828788 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:976
 #2: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539
 #3: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539
 #4: ffff88802c6089b0 (&mm->cid_lock#2){....}-{2:2}, at: mm_cid_get kernel/sched/sched.h:3280 [inline]
 #4: ffff88802c6089b0 (&mm->cid_lock#2){....}-{2:2}, at: switch_mm_cid kernel/sched/sched.h:3302 [inline]
 #4: ffff88802c6089b0 (&mm->cid_lock#2){....}-{2:2}, at: prepare_task_switch kernel/sched/core.c:5114 [inline]
 #4: ffff88802c6089b0 (&mm->cid_lock#2){....}-{2:2}, at: context_switch kernel/sched/core.c:5255 [inline]
 #4: ffff88802c6089b0 (&mm->cid_lock#2){....}-{2:2}, at: __schedule+0x1361/0x4990 kernel/sched/core.c:6622
2 locks held by kworker/u4:1/11:
 #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
 #1: ffffc90000107d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d127cb0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d1284b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510
2 locks held by kworker/1:0/22:
 #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
 #1: ffffc900001c7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
1 lock held by khungtaskd/28:
 #0: ffffffff8d127ae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4743:
 #0: ffff8880280ee098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177
2 locks held by kworker/0:3/4771:
 #0: ffff888012470d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
 #1: ffffc9000384fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
1 lock held by syz-executor.5/5584:
3 locks held by kworker/u4:7/6017:
 #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
 #1: ffffc9000329fd20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
 #2: ffffffff8d12d1b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 #2: ffffffff8d12d1b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:989
3 locks held by kworker/u4:8/6240:
 #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
 #1: ffffc9000462fd20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
 #2: ffffffff8d12d1b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 #2: ffffffff8d12d1b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:989
2 locks held by kworker/u4:10/6734:
 #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
 #1: ffffc90016d77d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
2 locks held by kworker/u4:11/6786:
 #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
 #1: ffffc900170a7d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
2 locks held by kworker/u4:12/6861:
 #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77f/0x13a0
 #1: ffffc90017527d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7c6/0x13a0 kernel/workqueue.c:2365
1 lock held by syz-executor.0/7862:
 #0: ffff888026e340e0 (&type->s_umount_key#49){++++}-{3:3}, at: iterate_supers+0xb0/0x1e0 fs/super.c:734
2 locks held by syz-executor.0/10115:
 #0: ffff888058170870 (&newdev->mutex){+.+.}-{3:3}, at: uinput_ioctl_handler+0xeb/0x1770 drivers/input/misc/uinput.c:851
 #1: ffffffff8ddae168 (input_mutex){+.+.}-{3:3}, at: __input_unregister_device+0x308/0x630 drivers/input/input.c:2220
1 lock held by syz-executor.5/10123:
 #0: ffffffff8d12d080 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x4c/0x5f0 kernel/rcu/tree.c:3945

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-syzkaller-10217-ga93e884edf61 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e5/0x560 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x1b4/0x410 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0x1024/0x1070 kernel/hung_task.c:379
 kthread+0x270/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 6861 Comm: kworker/u4:12 Not tainted 6.2.0-syzkaller-10217-ga93e884edf61 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:__lock_acquire+0x433/0x1f80 kernel/locking/lockdep.c:4999
Code: 03 c1 e7 10 09 c7 8b 44 24 60 83 e0 01 c1 e0 12 31 c9 83 7c 24 3c 00 0f 95 c1 c1 e1 13 41 c1 e4 14 41 09 cc 41 09 c4 41 09 fc <48> 8b 44 24 30 0f b6 04 10 84 c0 0f 85 e5 12 00 00 44 8b b4 24 d8
RSP: 0018:ffffc900175279a0 EFLAGS: 00000006
RAX: 0000000000000000 RBX: 0000000000000021 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffff888022cbe1f8 RDI: 0000000000020021
RBP: ffff888022cbe1dc R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000020021
R13: ffff888022cbd7c0 R14: ffffffff8d127ae0 R15: 0000000000000021
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555839708 CR3: 00000000287d1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_acquire+0x23e/0x630 kernel/locking/lockdep.c:5669
 rcu_lock_acquire+0x2e/0x40 include/linux/rcupdate.h:327
 rcu_read_lock include/linux/rcupdate.h:773 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
 batadv_nc_worker+0xc5/0x5c0 net/batman-adv/network-coding.c:719
 process_one_work+0x915/0x13a0 kernel/workqueue.c:2390
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537
 kthread+0x270/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/25 05:53 upstream a93e884edf61 ee50e71c .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in do_coredump
* Struck through repros no longer work on HEAD.