syzbot


INFO: task hung in ntfs_compress_write

Status: auto-obsoleted due to no activity on 2024/01/11 04:23
Subsystems: ntfs3
[Documentation on labels]
First crash: 683d, last: 683d

Sample crash report:
INFO: task syz-executor.2:1785 blocked for more than 143 seconds.
      Not tainted 6.6.0-rc5-syzkaller-00157-ge8c127b05766 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:24616 pid:1785  ppid:5074   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x196c/0x4af0 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+0x881/0x12a0 mm/filemap.c:1301
 __filemap_get_folio+0xa3/0xbb0 mm/filemap.c:1882
 pagecache_get_page+0x2f/0x590 mm/folio-compat.c:99
 find_or_create_page include/linux/pagemap.h:723 [inline]
 ntfs_get_frame_pages fs/ntfs3/file.c:793 [inline]
 ntfs_compress_write+0xfd6/0x1b30 fs/ntfs3/file.c:943
 ntfs_file_write_iter+0x3db/0x6d0 fs/ntfs3/file.c:1080
 call_write_iter include/linux/fs.h:1956 [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:0x7f2dce67cae9
RSP: 002b:00007f2dcf4660c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f2dce79bf80 RCX: 00007f2dce67cae9
RDX: 000000000000004f RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 00007f2dce6c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f2dce79bf80 R15: 00007ffe56c8ff98
 </TASK>
INFO: task syz-executor.2:1797 blocked for more than 144 seconds.
      Not tainted 6.6.0-rc5-syzkaller-00157-ge8c127b05766 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2  state:D stack:26024 pid:1797  ppid:5074   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x196c/0x4af0 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+0x881/0x12a0 mm/filemap.c:1301
 __filemap_get_folio+0xa3/0xbb0 mm/filemap.c:1882
 pagecache_get_page+0x2f/0x590 mm/folio-compat.c:99
 find_or_create_page include/linux/pagemap.h:723 [inline]
 ni_readpage_cmpr+0x313/0xa50 fs/ntfs3/frecord.c:2135
 ntfs_read_folio+0x19e/0x210 fs/ntfs3/inode.c:718
 filemap_read_folio+0x19c/0x770 mm/filemap.c:2382
 filemap_update_page mm/filemap.c:2466 [inline]
 filemap_get_pages+0x15a2/0x2080 mm/filemap.c:2580
 filemap_splice_read+0x4ce/0xcd0 mm/filemap.c:2919
 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:1316 [inline]
 __se_sys_sendfile64+0x100/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:0x7f2dce67cae9
RSP: 002b:00007f2dcf4450c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f2dce79c050 RCX: 00007f2dce67cae9
RDX: 0000000020000080 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007f2dce6c847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000080000001 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f2dce79c050 R15: 00007ffe56c8ff98
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/30:
 #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline]
 #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline]
 #0: ffffffff8d32c420 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613
2 locks held by udevd/4486:
 #0: ffff8880b983c318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
 #1: ffff8880b9828808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:999
2 locks held by getty/4795:
 #0: ffff88802a64a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206
1 lock held by syz-executor.0/5066:
4 locks held by syz-executor.5/5072:
1 lock held by syz-executor.4/5083:
 #0: ffffffff8d331db8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline]
 #0: ffffffff8d331db8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992
2 locks held by kworker/u4:16/24613:
3 locks held by syz-executor.2/1785:
 #0: ffff888075ed6848 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2b0/0x340 fs/file.c:1064
 #1: ffff8880329f0410 (sb_writers#15){.+.+}-{0:0}, at: vfs_write+0x216/0xaf0 fs/read_write.c:580
 #2: ffff88804767e380 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_trylock include/linux/fs.h:822 [inline]
 #2: ffff88804767e380 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: ntfs_file_write_iter+0x1cb/0x6d0 fs/ntfs3/file.c:1060
3 locks held by syz-executor.2/1797:
 #0: ffff8880329f0410 (sb_writers#15){.+.+}-{0:0}, at: do_sendfile+0x600/0x1070 fs/read_write.c:1253
 #1: ffff88804767e520 (mapping.invalidate_lock#5){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:857 [inline]
 #1: ffff88804767e520 (mapping.invalidate_lock#5){++++}-{3:3}, at: filemap_update_page mm/filemap.c:2432 [inline]
 #1: ffff88804767e520 (mapping.invalidate_lock#5){++++}-{3:3}, at: filemap_get_pages+0x8b1/0x2080 mm/filemap.c:2580
 #2: 
ffff88804767e0e0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1124 [inline]
ffff88804767e0e0 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_read_folio+0x193/0x210 fs/ntfs3/inode.c:717
2 locks held by kworker/1:4/1957:
 #0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
 #0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703
 #1: ffffc900150bfd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline]
 #1: ffffc900150bfd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703
4 locks held by syz-executor.1/3992:
1 lock held by syz-executor.0/4002:
 #0: ffff8880b993c318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558
1 lock held by syz-executor.3/4005:

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

NMI backtrace for cpu 0
CPU: 0 PID: 30 Comm: khungtaskd Not tainted 6.6.0-rc5-syzkaller-00157-ge8c127b05766 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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+0xfa9/0xff0 kernel/hung_task.c:379
 kthread+0x2d3/0x370 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: 30496 Comm: kworker/u4:1 Not tainted 6.6.0-rc5-syzkaller-00157-ge8c127b05766 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:lockdep_hardirqs_on+0x71/0x140 kernel/locking/lockdep.c:4408
Code: c0 75 74 65 8b 05 a7 08 34 75 85 c0 75 69 83 3d c4 75 20 07 00 75 2e 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 <75> 63 83 3d a6 75 20 07 00 75 10 48 8b 83 a0 0a 00 00 48 3b 83 b8
RSP: 0000:ffffc90009c47a18 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffff88802356d940 RCX: ffffffff816dc25a
RDX: dffffc0000000000 RSI: ffffffff8b0ab620 RDI: ffffffff8155c4a8
RBP: ffffc90009c47af0 R08: ffffffff906f745f R09: 1ffffffff20dee8b
R10: dffffc0000000000 R11: fffffbfff20dee8c R12: dffffc0000000000
R13: 1ffff92001388f50 R14: ffffffff8155c4a8 R15: 0000000000000201
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f72dd4ed000 CR3: 0000000027310000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __local_bh_enable_ip+0x168/0x1f0 kernel/softirq.c:386
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 batadv_nc_purge_paths+0x309/0x3a0 net/batman-adv/network-coding.c:471
 batadv_nc_worker+0x328/0x610 net/batman-adv/network-coding.c:720
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703
 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784
 kthread+0x2d3/0x370 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>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/13 04:22 upstream e8c127b05766 6388bc36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in ntfs_compress_write
* Struck through repros no longer work on HEAD.