syzbot


INFO: task hung in __blockdev_direct_IO (2)

Status: auto-obsoleted due to no activity on 2023/12/11 08:28
Subsystems: nilfs
[Documentation on labels]
First crash: 260d, last: 260d
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 2014d 1872d 0/3 auto-closed as invalid on 2019/05/22 07:01
upstream INFO: task hung in __blockdev_direct_IO nilfs reiserfs 2 360d 390d 0/26 auto-obsoleted due to no activity on 2023/09/01 15:55
upstream INFO: task hung in __blockdev_direct_IO (3) nilfs 1 154d 154d 0/26 auto-obsoleted due to no activity on 2024/03/25 23:42
linux-4.14 INFO: task hung in __blockdev_direct_IO 1 1312d 1312d 0/1 auto-closed as invalid on 2021/02/21 17:05

Sample crash report:
INFO: task syz-executor.3:13935 blocked for more than 143 seconds.
      Not tainted 6.6.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:24080 pid:13935 ppid:5064   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x1873/0x48f0 kernel/sched/core.c:6695
 schedule+0xc3/0x180 kernel/sched/core.c:6771
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6830
 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:802 [inline]
 __blockdev_direct_IO+0x2f3/0x4280 fs/direct-io.c:1144
 blockdev_direct_IO include/linux/fs.h:3010 [inline]
 nilfs_direct_IO+0xe9/0x120 fs/nilfs2/inode.c:296
 generic_file_read_iter+0x342/0x550 mm/filemap.c:2808
 call_read_iter include/linux/fs.h:1979 [inline]
 copy_splice_read+0x4c9/0x9c0 fs/splice.c:364
 splice_direct_to_actor+0x2c4/0x9e0 fs/splice.c:1069
 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194
 do_sendfile+0x623/0x1070 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:0x7f263c87cae9
RSP: 002b:00007f263d66c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f263c99c120 RCX: 00007f263c87cae9
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000009
RBP: 00007f263c8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000108000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f263c99c120 R15: 00007fff6c18c188
 </TASK>
INFO: task syz-executor.3:13937 blocked for more than 144 seconds.
      Not tainted 6.6.0-rc1-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3  state:D stack:23888 pid:13937 ppid:5064   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x1873/0x48f0 kernel/sched/core.c:6695
 schedule+0xc3/0x180 kernel/sched/core.c:6771
 io_schedule+0x8c/0x100 kernel/sched/core.c:9026
 folio_wait_bit_common+0x871/0x12a0 mm/filemap.c:1301
 folio_wait_writeback+0xe7/0x1e0 mm/page-writeback.c:3068
 __filemap_fdatawait_range+0x17b/0x400 mm/filemap.c:525
 filemap_write_and_wait_range+0x220/0x2c0 mm/filemap.c:687
 direct_write_fallback+0xa1/0x110 fs/libfs.c:1900
 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4063
 call_write_iter include/linux/fs.h:1985 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x782/0xaf0 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:0x7f263c87cae9
RSP: 002b:00007f263d64b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f263c99c1f0 RCX: 00007f263c87cae9
RDX: 00000000200000c1 RSI: 00000000200000c0 RDI: 000000000000000a
RBP: 00007f263c8c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f263c99c1f0 R15: 00007fff6c18c188
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/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+0x198/0x310 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+0xdf5/0xe40 kernel/hung_task.c:379
 kthread+0x2b8/0x350 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5080 Comm: syz-executor.1 Not tainted 6.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:pick_next_task_fair+0xda/0xdc0 kernel/sched/fair.c:8136
Code: 89 fc eb 0c 4c 8b 23 4d 85 e4 0f 84 1b 02 00 00 49 8d 6c 24 60 48 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 48 89 ef e8 dc 87 83 00 48 8b 6d 00 48 85 ed 74 2d 48 83 c5
RSP: 0018:ffffc900042ff978 EFLAGS: 00000046
RAX: 1ffff1100fc4a78c RBX: ffff888020fb40a0 RCX: dffffc0000000000
RDX: ffffc900042ffb90 RSI: ffff888023c95940 RDI: ffff888020fb4028
RBP: ffff88807e253c60 R08: ffff888078b7c7c7 R09: 1ffff1100f16f8f8
R10: dffffc0000000000 R11: ffffed100f16f8f9 R12: ffff88807e253c00
R13: 1ffff1101732787a R14: ffff888020fb4000 R15: ffff8880b993c3c0
FS:  0000555555bca480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f636170652e CR3: 00000000324f6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __pick_next_task kernel/sched/core.c:6004 [inline]
 pick_next_task kernel/sched/core.c:6079 [inline]
 __schedule+0x7c6/0x48f0 kernel/sched/core.c:6659
 schedule+0xc3/0x180 kernel/sched/core.c:6771
 do_nanosleep+0x18a/0x610 kernel/time/hrtimer.c:2047
 hrtimer_nanosleep+0x226/0x460 kernel/time/hrtimer.c:2100
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1396 [inline]
 __se_sys_clock_nanosleep+0x327/0x3b0 kernel/time/posix-timers.c:1373
 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:0x7fc86e8a7ef5
Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 f6 b9 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 4f ba ff ff 48 8b 04 24 48 83 c4 28 f7 d8
RSP: 002b:00007ffd8e1b3ad0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 0000000000000527 RCX: 00007fc86e8a7ef5
RDX: 00007ffd8e1b3b10 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffd8e1b3b9c R08: 0000000000000000 R09: 00007ffd8e1db0b0
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 0000000000089784 R14: 0000000000089765 R15: 0000000000000002
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/12 08:24 upstream 0bb80ecc33a8 59da8366 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in __blockdev_direct_IO
* Struck through repros no longer work on HEAD.