syzbot


INFO: task hung in __blockdev_direct_IO

Status: auto-obsoleted due to no activity on 2023/09/01 15:55
Subsystems: nilfs reiserfs
[Documentation on labels]
First crash: 383d, last: 353d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung in __blockdev_direct_IO 9 2007d 1865d 0/3 auto-closed as invalid on 2019/05/22 07:01
upstream INFO: task hung in __blockdev_direct_IO (3) nilfs 1 147d 147d 0/26 auto-obsoleted due to no activity on 2024/03/25 23:42
upstream INFO: task hung in __blockdev_direct_IO (2) nilfs 1 253d 253d 0/26 auto-obsoleted due to no activity on 2023/12/11 08:28
linux-4.14 INFO: task hung in __blockdev_direct_IO 1 1305d 1305d 0/1 auto-closed as invalid on 2021/02/21 17:05

Sample crash report:
INFO: task syz-executor.0:28413 blocked for more than 143 seconds.
      Not tainted 6.3.0-syzkaller-13164-g78b421b6a7c6 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:23112 pid:28413 ppid:5045   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804
 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
 inode_lock include/linux/fs.h:775 [inline]
 __blockdev_direct_IO+0x32b/0x40e0 fs/direct-io.c:1134
 blockdev_direct_IO include/linux/fs.h:2808 [inline]
 nilfs_direct_IO+0xe8/0x120 fs/nilfs2/inode.c:296
 generic_file_read_iter+0x337/0x540 mm/filemap.c:2814
 call_read_iter include/linux/fs.h:1862 [inline]
 generic_file_splice_read+0x240/0x640 fs/splice.c:403
 do_splice_to fs/splice.c:886 [inline]
 splice_direct_to_actor+0x40c/0xbd0 fs/splice.c:957
 do_splice_direct+0x283/0x3d0 fs/splice.c:1066
 do_sendfile+0x620/0xff0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308
 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:0x7f7b4948c169
RSP: 002b:00007f7b4a1c9168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f7b495abf80 RCX: 00007f7b4948c169
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007f7b494e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd32fcc39f R14: 00007f7b4a1c9300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor.0:28432 blocked for more than 144 seconds.
      Not tainted 6.3.0-syzkaller-13164-g78b421b6a7c6 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:23160 pid:28432 ppid:5045   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0x187b/0x4900 kernel/sched/core.c:6669
 schedule+0xc3/0x180 kernel/sched/core.c:6745
 io_schedule+0x8c/0x100 kernel/sched/core.c:8979
 folio_wait_bit_common+0x86c/0x12b0 mm/filemap.c:1301
 folio_wait_writeback+0xec/0x1f0 mm/page-writeback.c:3087
 __filemap_fdatawait_range+0x17b/0x400 mm/filemap.c:525
 filemap_write_and_wait_range+0x220/0x2c0 mm/filemap.c:687
 __generic_file_write_iter+0x2c8/0x400 mm/filemap.c:4037
 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4083
 call_write_iter include/linux/fs.h:1868 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x7f2/0xc10 fs/read_write.c:584
 ksys_write+0x1a0/0x2c0 fs/read_write.c:637
 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:0x7f7b4948c169
RSP: 002b:00007f7b4a187168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f7b495ac120 RCX: 00007f7b4948c169
RDX: 0000000002007ffb RSI: 0000000020000040 RDI: 0000000000000006
RBP: 00007f7b494e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd32fcc39f R14: 00007f7b4a187300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
 #0: ffffffff8cf277f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by rcu_tasks_trace/14:
 #0: ffffffff8cf27bb0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518
1 lock held by khungtaskd/28:
 #0: ffffffff8cf27620 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4749:
 #0: ffff88802c6e1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176
1 lock held by syz-executor.2/5022:
1 lock held by syz-executor.4/5053:
2 locks held by kworker/u4:8/6829:
2 locks held by syz-executor.0/28413:
 #0: ffff88801f6d8460 (sb_writers#22){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1253
 #1: ffff88803a1f2918 (&sb->s_type->i_mutex_key#29){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #1: ffff88803a1f2918 (&sb->s_type->i_mutex_key#29){+.+.}-{3:3}, at: __blockdev_direct_IO+0x32b/0x40e0 fs/direct-io.c:1134
3 locks held by syz-executor.0/28432:
 #0: ffff88807c396ae8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1047
 #1: ffff88801f6d8460 (sb_writers#22){.+.+}-{0:0}, at: vfs_write+0x27f/0xc10 fs/read_write.c:580
 #2: ffff88803a1f2918 (&sb->s_type->i_mutex_key#29){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:775 [inline]
 #2: ffff88803a1f2918 (&sb->s_type->i_mutex_key#29){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 mm/filemap.c:4080
1 lock held by syz-executor.0/30993:
1 lock held by syz-executor.5/31000:
 #0: ffff888032034460 (sb_writers#22){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1253
4 locks held by syz-executor.5/31008:
3 locks held by syz-executor.4/31013:
 #0: ffff8880b983c1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
 #1: ffff8880b98287c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:996
 #2: ffff888021f721f8 (&sig->wait_chldexit){....}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:137 [inline]
 #2: ffff888021f721f8 (&sig->wait_chldexit){....}-{2:2}, at: __wake_up_sync_key+0xf9/0x1c0 kernel/sched/wait.c:208

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-syzkaller-13164-g78b421b6a7c6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/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+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x187/0x300 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+0xec2/0xf00 kernel/hung_task.c:379
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 19333 Comm: kworker/1:3 Not tainted 6.3.0-syzkaller-13164-g78b421b6a7c6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: events nsim_dev_trap_report_work
RIP: 0010:__kasan_check_read+0x4/0x20 mm/kasan/shadow.c:31
Code: 41 5e 41 5f 5d c3 48 c7 c7 e8 18 84 8c 48 89 de eb 0a 48 c7 c7 20 19 84 8c 4c 89 fe e8 a5 59 c9 08 31 db eb d4 90 f3 0f 1e fa <89> f6 48 8b 0c 24 31 d2 e9 2f eb ff ff 66 2e 0f 1f 84 00 00 00 00
RSP: 0000:ffffc9000389f910 EFLAGS: 00000006
RAX: 0000000000000003 RBX: 00000000000000dd RCX: 0000000000000002
RDX: 0000000000000002 RSI: 0000000000000008 RDI: ffffffff90329278
RBP: 0000000000000002 R08: dffffc0000000000 R09: fffffbfff1cab85e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888031da28a8
R13: dffffc0000000000 R14: 0000000000000004 R15: ffff888031da2888
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f45e7e24000 CR3: 0000000045690000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 hlock_class kernel/locking/lockdep.c:228 [inline]
 mark_lock+0x9a/0x340 kernel/locking/lockdep.c:4629
 mark_held_locks kernel/locking/lockdep.c:4247 [inline]
 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4265 [inline]
 lockdep_hardirqs_on_prepare+0x281/0x7a0 kernel/locking/lockdep.c:4332
 trace_hardirqs_on+0x28/0x40 kernel/trace/trace_preemptirq.c:61
 kasan_quarantine_put+0xd8/0x230 mm/kasan/quarantine.c:240
 kasan_slab_free include/linux/kasan.h:162 [inline]
 slab_free_hook mm/slub.c:1781 [inline]
 slab_free_freelist_hook mm/slub.c:1807 [inline]
 slab_free mm/slub.c:3786 [inline]
 __kmem_cache_free+0x264/0x3c0 mm/slub.c:3799
 skb_kfree_head net/core/skbuff.c:906 [inline]
 skb_free_head net/core/skbuff.c:918 [inline]
 skb_release_data+0x660/0x850 net/core/skbuff.c:948
 skb_release_all net/core/skbuff.c:1014 [inline]
 __kfree_skb net/core/skbuff.c:1028 [inline]
 consume_skb+0xb3/0x150 net/core/skbuff.c:1244
 nsim_dev_trap_report drivers/net/netdevsim/dev.c:824 [inline]
 nsim_dev_trap_report_work+0x761/0xa90 drivers/net/netdevsim/dev.c:853
 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552
 kthread+0x2b8/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/05 11:25 upstream 78b421b6a7c6 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in __blockdev_direct_IO
2023/06/03 15:46 linux-next 715abedee4cd a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in __blockdev_direct_IO
* Struck through repros no longer work on HEAD.