INFO: task syz-executor.1:3656 blocked for more than 143 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:21192 pid:3656 ppid:5100 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6690 __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:1122 [inline] ntfs_read_folio+0x16a/0x1e0 fs/ntfs3/inode.c:702 filemap_read_folio+0x187/0x7d0 mm/filemap.c:2426 filemap_create_folio mm/filemap.c:2555 [inline] filemap_get_pages+0xadb/0x10d0 mm/filemap.c:2607 filemap_read+0x3cf/0xea0 mm/filemap.c:2694 call_read_iter include/linux/fs.h:2180 [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:0x7fd6f7a8c0a9 RSP: 002b:00007fd6f87af168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fd6f7babf80 RCX: 00007fd6f7a8c0a9 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007fd6f7ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff9edf8e4f R14: 00007fd6f87af300 R15: 0000000000022000 INFO: task syz-executor.1:3673 blocked for more than 144 seconds. Not tainted 6.2.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24240 pid:3673 ppid:5100 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x995/0xe20 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 io_schedule+0x83/0x100 kernel/sched/core.c:8811 folio_wait_bit_common+0x83a/0x12a0 mm/filemap.c:1297 folio_lock include/linux/pagemap.h:938 [inline] truncate_inode_pages_range+0xc7d/0x1690 mm/truncate.c:421 truncate_inode_pages mm/truncate.c:448 [inline] truncate_pagecache mm/truncate.c:743 [inline] truncate_setsize+0xcb/0xf0 mm/truncate.c:768 ntfs_truncate fs/ntfs3/file.c:395 [inline] ntfs3_setattr+0x5a5/0xca0 fs/ntfs3/file.c:696 notify_change+0xe50/0x1100 fs/attr.c:482 do_truncate+0x200/0x2f0 fs/open.c:65 do_sys_ftruncate+0x2b0/0x350 fs/open.c:193 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:0x7fd6f7a8c0a9 RSP: 002b:00007fd6f878e168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007fd6f7bac050 RCX: 00007fd6f7a8c0a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007fd6f7ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff9edf8e4f R14: 00007fd6f878e300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d326e90 (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: ffffffff8d327690 (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: ffffffff8d326cc0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:3/46: #0: ffff888012879138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffff8880b9827748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x611/0x9a0 kernel/sched/psi.c:976 2 locks held by getty/4746: #0: ffff88814ad59098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 3 locks held by kworker/1:9/5235: #0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc900045b7d00 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 #2: ffffffff8d32c338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #2: ffffffff8d32c338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x384/0x860 kernel/rcu/tree_exp.h:946 3 locks held by syz-executor.1/3656: #0: ffff88802b4f2460 (sb_writers#25){.+.+}-{0:0}, at: do_sendfile+0x5d6/0xf80 fs/read_write.c:1254 #1: ffff88802d72d660 (mapping.invalidate_lock#9){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline] #1: ffff88802d72d660 (mapping.invalidate_lock#9){++++}-{3:3}, at: filemap_create_folio mm/filemap.c:2547 [inline] #1: ffff88802d72d660 (mapping.invalidate_lock#9){++++}-{3:3}, at: filemap_get_pages+0xa30/0x10d0 mm/filemap.c:2607 #2: ffff88802d72d220 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline] #2: ffff88802d72d220 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_read_folio+0x16a/0x1e0 fs/ntfs3/inode.c:702 3 locks held by syz-executor.1/3673: #0: ffff88802b4f2460 (sb_writers#25){.+.+}-{0:0}, at: do_sys_ftruncate+0x243/0x350 fs/open.c:190 #1: ffff88802d72d4c0 (&sb->s_type->i_mutex_key#35){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #1: ffff88802d72d4c0 (&sb->s_type->i_mutex_key#35){+.+.}-{3:3}, at: do_truncate+0x1ec/0x2f0 fs/open.c:63 #2: ffff88802d72d220 (&ni->ni_lock/4){+.+.}-{3:3}, at: ni_lock fs/ntfs3/ntfs_fs.h:1122 [inline] #2: ffff88802d72d220 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_truncate fs/ntfs3/file.c:393 [inline] #2: ffff88802d72d220 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs3_setattr+0x596/0xca0 fs/ntfs3/file.c:696 1 lock held by syz-executor.1/3724: #0: ffffffff8d32c338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #0: ffffffff8d32c338 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x455/0x860 kernel/rcu/tree_exp.h:946 2 locks held by kworker/1:12/4813: #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc9001851fd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 1 lock held by syz-executor.5/6497: 1 lock held by syz-executor.4/6499: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x290 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+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 6497 Comm: syz-executor.5 Not tainted 6.2.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:184 [inline] RIP: 0010:unwind_next_frame+0x248/0x24c0 arch/x86/kernel/unwind_orc.c:467 Code: d3 1b 00 00 44 8b 3b 44 89 f0 ff c0 48 8d 1c 85 24 93 c8 8f 48 89 d8 48 c1 e8 03 42 8a 04 08 84 c0 0f 85 d7 1b 00 00 44 8b 03 <41> ff c0 4b 8d 04 7f 48 8d 94 00 38 94 17 8f 48 c7 c0 24 93 c8 8f RSP: 0018:ffffc900033cee40 EFLAGS: 00000246 RAX: 1ffffffff1f99200 RBX: ffffffff8fcc9598 RCX: 000000000009e000 RDX: dffffc0000000000 RSI: ffffffff82009c9a RDI: ffffffff813d1143 RBP: 1ffff92000679dea R08: 000000000003857f R09: dffffc0000000000 R10: fffff52000679df0 R11: 1ffff92000679dee R12: ffffffff82009c99 R13: ffffc900033cef01 R14: 000000000001009c R15: 000000000003857e FS: 00007f16d4ffe700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4004915829 CR3: 0000000077ffb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0xb2/0xe0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x104/0x1e0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x3d/0x60 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc+0xaf/0x190 mm/slab_common.c:981 kmalloc include/linux/slab.h:584 [inline] kzalloc include/linux/slab.h:720 [inline] apply_wqattrs_prepare+0xb1/0xb20 kernel/workqueue.c:3963 apply_workqueue_attrs_locked kernel/workqueue.c:4075 [inline] apply_workqueue_attrs+0xf2/0x700 kernel/workqueue.c:4112 alloc_and_link_pwqs kernel/workqueue.c:4230 [inline] alloc_workqueue+0xc37/0x1190 kernel/workqueue.c:4344 btrfs_alloc_workqueue+0x154/0x2a0 fs/btrfs/async-thread.c:102 btrfs_init_workqueues+0x401/0x7e0 fs/btrfs/disk-io.c:2386 open_ctree+0x12d1/0x2ea0 fs/btrfs/disk-io.c:3666 btrfs_fill_super+0x1c6/0x2d0 fs/btrfs/super.c:1151 btrfs_mount_root+0x885/0x9a0 fs/btrfs/super.c:1520 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1489 fc_mount fs/namespace.c:1149 [inline] vfs_kern_mount+0xc9/0x160 fs/namespace.c:1179 btrfs_mount+0x3d3/0xbc0 fs/btrfs/super.c:1580 legacy_get_tree+0xea/0x180 fs/fs_context.c:610 vfs_get_tree+0x88/0x270 fs/super.c:1489 do_new_mount+0x289/0xad0 fs/namespace.c:3145 do_mount fs/namespace.c:3488 [inline] __do_sys_mount fs/namespace.c:3697 [inline] __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3674 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:0x7f16d648d5da Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 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:00007f16d4ffdf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00000000000050ed RCX: 00007f16d648d5da RDX: 0000000020005100 RSI: 0000000020005140 RDI: 00007f16d4ffdfe0 RBP: 00007f16d4ffe020 R08: 00007f16d4ffe020 R09: 0000000000000016 R10: 0000000000000016 R11: 0000000000000202 R12: 0000000020005100 R13: 0000000020005140 R14: 00007f16d4ffdfe0 R15: 0000000020000040