INFO: task kworker/u4:5:127 blocked for more than 143 seconds. Not tainted 6.7.0-rc7-syzkaller-00016-gf5837722ffec #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:5 state:D stack:19096 pid:127 tgid:127 ppid:2 flags:0x00004000 Workqueue: btrfs-endio-write btrfs_work_helper Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 wait_extent_bit fs/btrfs/extent-io-tree.c:799 [inline] lock_extent+0x69d/0x850 fs/btrfs/extent-io-tree.c:1843 btrfs_finish_one_ordered+0x57f/0x1680 fs/btrfs/inode.c:3083 btrfs_work_helper+0x37c/0xbe0 fs/btrfs/async-thread.c:315 process_one_work kernel/workqueue.c:2627 [inline] process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2700 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2781 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:242 INFO: task syz-executor.1:6300 blocked for more than 143 seconds. Not tainted 6.7.0-rc7-syzkaller-00016-gf5837722ffec #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:23280 pid:6300 tgid:6299 ppid:5095 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 io_schedule+0x8c/0x100 kernel/sched/core.c:8998 folio_wait_bit_common+0x881/0x12b0 mm/filemap.c:1273 invalidate_inode_pages2_range+0x467/0x1040 mm/truncate.c:657 kiocb_invalidate_post_direct_write+0x137/0x2d0 mm/filemap.c:3828 iomap_dio_complete+0x50b/0x8e0 fs/iomap/direct-io.c:114 btrfs_direct_write fs/btrfs/file.c:1556 [inline] btrfs_do_write_iter+0x7f4/0x1190 fs/btrfs/file.c:1684 do_iter_readv_writev+0x330/0x4a0 do_iter_write+0x1f6/0x8d0 fs/read_write.c:860 iter_file_splice_write+0x86d/0x1010 fs/splice.c:736 do_splice_from fs/splice.c:933 [inline] direct_splice_actor+0xea/0x1c0 fs/splice.c:1142 splice_direct_to_actor+0x376/0x9e0 fs/splice.c:1088 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194 do_sendfile+0x62c/0x1000 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:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f5bf887cce9 RSP: 002b:00007f5bf950e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f5bf899bf80 RCX: 00007f5bf887cce9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007f5bf88c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000008800000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f5bf899bf80 R15: 00007ffe0c078e48 INFO: task syz-executor.1:6380 blocked for more than 144 seconds. Not tainted 6.7.0-rc7-syzkaller-00016-gf5837722ffec #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:20656 pid:6380 tgid:6299 ppid:5095 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 btrfs_start_ordered_extent+0x41c/0x5f0 fs/btrfs/ordered-data.c:801 btrfs_lock_and_flush_ordered_range+0x115/0x220 fs/btrfs/ordered-data.c:1105 contiguous_readpages fs/btrfs/extent_io.c:1152 [inline] extent_readahead+0x10c1/0x1470 fs/btrfs/extent_io.c:2248 read_pages+0x183/0x830 mm/readahead.c:160 page_cache_ra_unbounded+0x186/0x7c0 mm/readahead.c:241 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline] filemap_get_pages+0x49c/0x2080 mm/filemap.c:2497 filemap_splice_read+0x4ce/0xcd0 mm/filemap.c:2869 splice_direct_to_actor+0x2c4/0x9e0 fs/splice.c:1069 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194 do_sendfile+0x62c/0x1000 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:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f5bf887cce9 RSP: 002b:00007f5bf94ed0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f5bf899c050 RCX: 00007f5bf887cce9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000008 RBP: 00007f5bf88c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f5bf899c050 R15: 00007ffe0c078e48 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by kworker/u4:2/42: #0: ffff88807c167938 ((wq_completion)btrfs-flush_delalloc){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #0: ffff88807c167938 ((wq_completion)btrfs-flush_delalloc){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #1: ffffc90000b2fd20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #1: ffffc90000b2fd20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 3 locks held by kworker/u4:5/127: #0: ffff888015bbb538 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #0: ffff888015bbb538 ((wq_completion)btrfs-endio-write){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #1: ffffc90002d4fd20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #1: ffffc90002d4fd20 ((work_completion)(&work->normal_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #2: ffff88801a27e4a8 (btrfs_ordered_extent){++++}-{0:0}, at: btrfs_finish_one_ordered+0x339/0x1680 fs/btrfs/inode.c:3043 2 locks held by getty/4813: #0: ffff88814b0050a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015c72f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.5/5087: #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8d9334b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:996 2 locks held by kworker/0:1/4902: #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #0: ffff888012c72938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #1: ffffc9000c00fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #1: ffffc9000c00fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 1 lock held by syz-executor.1/6300: #0: ffff8880412e6418 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 2 locks held by syz-executor.1/6380: #0: ffff8880412e6418 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff88802c23b590 (mapping.invalidate_lock#11){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:857 [inline] #1: ffff88802c23b590 (mapping.invalidate_lock#11){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:225 3 locks held by syz-executor.4/7208: #0: ffff8880412e60e0 (&type->s_umount_key#80){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff8880412e60e0 (&type->s_umount_key#80){++++}-{3:3}, at: super_lock+0x176/0x3a0 fs/super.c:117 #1: ffff88801a27ca20 (&fs_info->ordered_operations_mutex){+.+.}-{3:3}, at: btrfs_wait_ordered_roots+0x104/0x950 fs/btrfs/ordered-data.c:744 #2: ffff888029b2a850 (&root->ordered_extent_mutex){+.+.}-{3:3}, at: btrfs_wait_ordered_extents+0x1f3/0xe20 fs/btrfs/ordered-data.c:692 1 lock held by udevd/8104: 2 locks held by syz-executor.4/8751: 4 locks held by udevd/8752: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc7-syzkaller-00016-gf5837722ffec #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __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+0xfaf/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:242 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4494 Comm: syslogd Not tainted 6.7.0-rc7-syzkaller-00016-gf5837722ffec #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:__lock_is_held kernel/locking/lockdep.c:5492 [inline] RIP: 0010:lock_is_held_type+0xbf/0x190 kernel/locking/lockdep.c:5825 Code: 31 ed 48 83 fd 31 73 24 48 89 df 4c 89 fe e8 48 02 00 00 85 c0 75 2a 48 ff c5 49 63 85 b8 0a 00 00 48 83 c3 28 48 39 c5 7c d8 11 48 c7 c7 20 b5 7f 8d 48 89 ee e8 50 12 a5 f9 eb cb 31 db eb RSP: 0018:ffffc900030ef9b8 EFLAGS: 00000046 RAX: 0000000000000002 RBX: ffff88807ae6e450 RCX: ffff88807ae6d940 RDX: 0000000000000000 RSI: ffffffff8d92db40 RDI: ffff88807ae6e428 RBP: 0000000000000002 R08: ffffffff81c292ce R09: 1ffffd40002f6846 R10: dffffc0000000000 R11: fffff940002f6847 R12: 0000000000000246 R13: ffff88807ae6d940 R14: 00000000ffffffff R15: ffffffff8d92db40 FS: 00007fdb77045380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c01339e000 CR3: 0000000019372000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:288 [inline] __might_resched+0xa5/0x780 kernel/sched/core.c:10113 generic_perform_write+0x44b/0x630 mm/filemap.c:3945 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2895 call_write_iter include/linux/fs.h:2020 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x792/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fdb77199bf2 Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffcf92e0fc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fdb77199bf2 RDX: 0000000000000063 RSI: 000055568d199c50 RDI: 0000000000000003 RBP: 000055568d199c50 R08: 0000000000000001 R09: 0000000000000000 R10: 00007fdb773383a3 R11: 0000000000000246 R12: 0000000000000063 R13: 00007fdb77045300 R14: 0000000000000004 R15: 000055568d199a60