syzbot


INFO: task hung in ext4_buffered_write_iter

Status: auto-closed as invalid on 2020/12/15 19:03
Subsystems: ext4
[Documentation on labels]
First crash: 1315d, last: 1315d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in ext4_buffered_write_iter (3) ext4 1 261d 261d 0/26 auto-obsoleted due to no activity on 2023/11/04 07:21
upstream INFO: task hung in ext4_buffered_write_iter (2) ext4 24 361d 557d 0/26 auto-obsoleted due to no activity on 2023/07/27 13:19

Sample crash report:
INFO: task syz-executor.4:2126 blocked for more than 143 seconds.
      Not tainted 5.9.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4  state:D stack:28272 pid: 2126 ppid:  6861 flags:0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3778 [inline]
 __schedule+0xea9/0x2230 kernel/sched/core.c:4527
 schedule+0xd0/0x2a0 kernel/sched/core.c:4602
 rwsem_down_write_slowpath+0x603/0xc60 kernel/locking/rwsem.c:1235
 __down_write kernel/locking/rwsem.c:1389 [inline]
 down_write+0x137/0x150 kernel/locking/rwsem.c:1532
 inode_lock include/linux/fs.h:779 [inline]
 ext4_buffered_write_iter+0xb3/0x4a0 fs/ext4/file.c:263
 ext4_file_write_iter+0x1f0/0x13f0 fs/ext4/file.c:660
 call_write_iter include/linux/fs.h:1882 [inline]
 do_iter_readv_writev+0x532/0x7b0 fs/read_write.c:713
 do_iter_write+0x188/0x670 fs/read_write.c:1018
 vfs_iter_write+0x70/0xa0 fs/read_write.c:1059
 iter_file_splice_write+0x721/0xbe0 fs/splice.c:750

Showing all locks held in the system:
1 lock held by khungtaskd/1169:
 #0: ffffffff89bd6a40 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5829
3 locks held by in:imklog/6536:
 #0: ffff8880a1f87670 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:930
 #1: ffffffff89c85bc0 (fs_reclaim){+.+.}-{0:0}, at: is_bpf_text_address+0x0/0x160 kernel/bpf/core.c:691
 #2: ffff8880ae720ec8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2fb/0x400 kernel/sched/psi.c:833
2 locks held by agetty/6776:
 #0: ffff88808a76f098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:267
 #1: ffffc9000105c2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x223/0x1a30 drivers/tty/n_tty.c:2156

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

NMI backtrace for cpu 0
CPU: 0 PID: 1169 Comm: khungtaskd Not tainted 5.9.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x198/0x1fd lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x70/0xb1 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1b3/0x223 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:209 [inline]
 watchdog+0xd7d/0x1000 kernel/hung_task.c:295
 kthread+0x3b5/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3887 Comm: systemd-journal Not tainted 5.9.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_pc+0x30/0x60 kernel/kcov.c:197
Code: fe 01 00 65 8b 05 90 b0 8d 7e a9 00 01 ff 00 48 8b 34 24 74 0f f6 c4 01 74 35 8b 82 24 14 00 00 85 c0 74 2b 8b 82 00 14 00 00 <83> f8 02 75 20 48 8b 8a 08 14 00 00 8b 92 04 14 00 00 48 8b 01 48
RSP: 0018:ffffc90000e97ce0 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880a83f85c0 RSI: ffffffff839f22d5 RDI: 0000000000000000
RBP: ffffffff889419c0 R08: 000000007c42984d R09: ffff8880a83f8ea0
R10: fffffbfff1564cf9 R11: 0000000000000000 R12: 0000000000000001
R13: ffffffff88941980 R14: ffff8880aa221900 R15: dffffc0000000000
FS:  00007f925d6e88c0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f925ac10000 CR3: 00000000a8413000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 arch_local_save_flags+0x5/0x50 arch/x86/include/asm/paravirt.h:765
 check_preemption_disabled+0x50/0x130 lib/smp_processor_id.c:19
 quarantine_put+0x4c/0x1d0 mm/kasan/quarantine.c:190
 __kasan_slab_free+0xea/0x120 mm/kasan/common.c:424
 __cache_free mm/slab.c:3418 [inline]
 kmem_cache_free.part.0+0x74/0x1e0 mm/slab.c:3693
 putname+0xe1/0x120 fs/namei.c:259
 do_sys_openat2+0x153/0x420 fs/open.c:1177
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_open fs/open.c:1192 [inline]
 __se_sys_open fs/open.c:1188 [inline]
 __x64_sys_open+0x119/0x1c0 fs/open.c:1188
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f925cc78840
Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24
RSP: 002b:00007fff7662bf58 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fff7662c260 RCX: 00007f925cc78840
RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 0000563ed430d990
RBP: 000000000000000d R08: 000000000000c0ff R09: 00000000ffffffff
R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000563ed4302060 R14: 00007fff7662c220 R15: 0000563ed430f090

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/16 18:56 upstream fc4f28bb3daf 18d7d030 .config console log report info ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.