syzbot


INFO: task hung in attr_data_get_block

Status: closed as dup on 2023/01/02 15:02
Labels: ntfs3 (incorrect?)
Reported-by: syzbot+0ed04a03534f9788b484@syzkaller.appspotmail.com
First crash: 196d, last: 165d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: task hung in do_user_addr_fault (3) ntfs3 C 32 81d 156d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] INFO: task hung in attr_data_get_block 0 (1) 2022/12/17 06:49
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/01/03 23:35 0m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master error

Sample crash report:
INFO: task syz-executor194:6265 blocked for more than 143 seconds.
      Not tainted 6.1.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor194 state:D stack:21160 pid:6265  ppid:3719   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5209 [inline]
 __schedule+0x8c9/0xd70 kernel/sched/core.c:6521
 schedule+0xcb/0x190 kernel/sched/core.c:6597
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6656
 __mutex_lock_common+0xe4f/0x26e0 kernel/locking/mutex.c:679
 __mutex_lock kernel/locking/mutex.c:747 [inline]
 mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799
 ni_lock fs/ntfs3/ntfs_fs.h:1108 [inline]
 attr_data_get_block+0x301/0x2370 fs/ntfs3/attrib.c:917
 ntfs_get_block_vbo+0x310/0xe40 fs/ntfs3/inode.c:564
 do_mpage_readpage+0x970/0x1c50 fs/mpage.c:208
 mpage_readahead+0x210/0x380 fs/mpage.c:361
 read_pages+0x169/0x9c0 mm/readahead.c:161
 page_cache_ra_unbounded+0x703/0x820 mm/readahead.c:270
 filemap_readahead mm/filemap.c:2557 [inline]
 filemap_get_pages+0x72f/0x10d0 mm/filemap.c:2597
 filemap_read+0x3cf/0xea0 mm/filemap.c:2675
 call_read_iter include/linux/fs.h:2193 [inline]
 generic_file_splice_read+0x1ff/0x5d0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x41b/0xc00 fs/splice.c:865
 do_splice_direct+0x279/0x3d0 fs/splice.c:974
 do_sendfile+0x5fb/0xf80 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64+0x14f/0x1b0 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8784c2fe69
RSP: 002b:00007f8784bda208 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f8784cd37a8 RCX: 00007f8784c2fe69
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f8784cd37a0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000010007c9 R11: 0000000000000246 R12: 00007f8784cd37ac
R13: 00007ffda4d8823f R14: 00007f8784bda300 R15: 0000000000022000
 </TASK>
INFO: task syz-executor194:6275 blocked for more than 144 seconds.
      Not tainted 6.1.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor194 state:D stack:22856 pid:6275  ppid:3719   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5209 [inline]
 __schedule+0x8c9/0xd70 kernel/sched/core.c:6521
 schedule+0xcb/0x190 kernel/sched/core.c:6597
 io_schedule+0x83/0x100 kernel/sched/core.c:8741
 folio_wait_bit_common+0x83a/0x12a0 mm/filemap.c:1296
 folio_lock include/linux/pagemap.h:939 [inline]
 truncate_inode_pages_range+0xc9d/0x17f0 mm/truncate.c:423
 truncate_inode_pages mm/truncate.c:452 [inline]
 truncate_pagecache mm/truncate.c:753 [inline]
 truncate_setsize+0xcb/0xf0 mm/truncate.c:778
 ntfs_truncate fs/ntfs3/file.c:491 [inline]
 ntfs3_setattr+0x4f2/0xb00 fs/ntfs3/file.c:792
 notify_change+0xe38/0x10f0 fs/attr.c:420
 do_truncate+0x1fb/0x2e0 fs/open.c:65
 handle_truncate fs/namei.c:3216 [inline]
 do_open fs/namei.c:3561 [inline]
 path_openat+0x2770/0x2df0 fs/namei.c:3714
 do_filp_open+0x264/0x4f0 fs/namei.c:3741
 do_sys_openat2+0x124/0x4e0 fs/open.c:1310
 do_sys_open fs/open.c:1326 [inline]
 __do_sys_creat fs/open.c:1402 [inline]
 __se_sys_creat fs/open.c:1396 [inline]
 __x64_sys_creat+0x11f/0x160 fs/open.c:1396
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8784c2fe69
RSP: 002b:00007f877c9b9208 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f8784cd37b8 RCX: 00007f8784c2fe69
RDX: 00007f877c9b9700 RSI: 0000000000000000 RDI: 0000000020000180
RBP: 00007f8784cd37b0 R08: 00007f877c9b9700 R09: 0000000000000000
R10: 00007f877c9b9700 R11: 0000000000000246 R12: 00007f8784cd37bc
R13: 00007ffda4d8823f R14: 00007f877c9b9300 R15: 0000000000022000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d127330 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d127b30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
 #0: 
ffffffff8d127160 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/3312:
 #0: ffff888017ba7098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177
3 locks held by syz-executor194/6265:
 #0: ffff88807c0ce460 (sb_writers#10){.+.+}-{0:0}, at: do_sendfile+0x5d6/0xf80 fs/read_write.c:1254
 #1: ffff8880707022c0 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline]
 #1: ffff8880707022c0 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xe9/0x820 mm/readahead.c:226
 #2: ffff888070701e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1108 [inline]
 #2: ffff888070701e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: attr_data_get_block+0x301/0x2370 fs/ntfs3/attrib.c:917
3 locks held by syz-executor194/6275:
 #0: ffff88807c0ce460 (sb_writers#10){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:393
 #1: ffff888070702120 (&sb->s_type->i_mutex_key#18){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline]
 #1: ffff888070702120 (&sb->s_type->i_mutex_key#18){+.+.}-{3:3}, at: do_truncate+0x1e7/0x2e0 fs/open.c:63
 #2: ffff888070701e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1108 [inline]
 #2: ffff888070701e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_truncate fs/ntfs3/file.c:489 [inline]
 #2: ffff888070701e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs3_setattr+0x4e3/0xb00 fs/ntfs3/file.c:792
2 locks held by syz-executor194/11945:
 #0: ffff8880b9839dd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:537
 #1: ffff8880b9827788 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x611/0x9a0 kernel/sched/psi.c:909

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

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1ba/0x420 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xcf5/0xd40 kernel/hung_task.c:377
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 11955 Comm: syz-executor194 Not tainted 6.1.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:io_serial_out+0x79/0xb0 drivers/tty/serial/8250/8250_port.c:467
Code: fc 89 e9 41 d3 e7 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 df e8 81 16 2a fd 44 03 3b 44 89 f0 44 89 fa ee <5b> 41 5c 41 5e 41 5f 5d c3 89 e9 80 e1 07 38 c1 7c ab 48 89 ef e8
RSP: 0018:ffffc9000b917350 EFLAGS: 00000002
RAX: 0000000000000030 RBX: ffffffff92117ec0 RCX: 0000000000000000
RDX: 00000000000003f8 RSI: 0000000000000000 RDI: 0000000000000020
RBP: 0000000000000000 R08: ffffffff84b4ae06 R09: ffffed1003ca6047
R10: ffffed1003ca6047 R11: 1ffff11003ca6046 R12: dffffc0000000000
R13: ffffffff91dd1d0a R14: 0000000000000030 R15: 00000000000003f8
FS:  00007f8784bda700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8784bdb000 CR3: 000000002109b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 serial8250_console_write+0x14c0/0x1ab0 drivers/tty/serial/8250/8250_port.c:3436
 call_console_driver kernel/printk/printk.c:1942 [inline]
 console_emit_next_record+0x778/0xa40 kernel/printk/printk.c:2731
 console_unlock+0x27c/0x6f0 kernel/printk/printk.c:2860
 vprintk_emit+0xd1/0x1e0 kernel/printk/printk.c:2268
 _printk+0xc0/0x100 kernel/printk/printk.c:2289
 ntfs_printk+0x2fa/0x340 fs/ntfs3/super.c:68
 ntfs_init_from_boot fs/ntfs3/super.c:758 [inline]
 ntfs_fill_super+0xe69/0x42a0 fs/ntfs3/super.c:935
 get_tree_bdev+0x400/0x620 fs/super.c:1324
 vfs_get_tree+0x88/0x270 fs/super.c:1531
 do_new_mount+0x289/0xad0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f8784c3132a
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 08 01 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8784bda078 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f8784c3132a
RDX: 000000002001f180 RSI: 000000002001f1c0 RDI: 00007f8784bda090
RBP: 0000000000000004 R08: 00007f8784bda0d0 R09: 000000000001f16e
R10: 000000000000000e R11: 0000000000000286 R12: 00007f8784bda6b8
R13: 00007f8784bda090 R14: 00007f8784bda0d0 R15: 000000000000000e
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.040 msecs

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2022/12/13 06:34 upstream 830b3c68c1fb 67be1ae7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/12/24 09:06 upstream a27405b2ed9c 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in attr_data_get_block
2022/12/24 09:01 upstream a27405b2ed9c 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in attr_data_get_block
2022/12/24 00:39 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/12/16 18:54 upstream 84e57d292203 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/12/14 02:34 upstream 02bf43c7b7f7 f6511626 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/12/08 12:26 upstream 479174d402bc d88f3abb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/12/05 17:59 upstream 76dcd734eca2 045cbb84 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in attr_data_get_block
2022/12/03 03:21 upstream a4412fdd49dc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/12/01 18:18 upstream ef4d3ea40565 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/11/30 23:40 upstream 04aa64375f48 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/11/30 20:04 upstream 01f856ae6d0c 4c2a66e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/11/29 05:44 upstream b7b275e60bcd ca9683b8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
2022/11/22 16:47 upstream eb7081409f94 9da37ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in attr_data_get_block
* Struck through repros no longer work on HEAD.