INFO: task kworker/u4:10:14067 blocked for more than 143 seconds. Not tainted 6.7.0-rc4-syzkaller-00358-gf2e8a57ee903 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:10 state:D stack:20920 pid:14067 tgid:14067 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-btrfs-285) 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 folio_lock include/linux/pagemap.h:1031 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2082 [inline] extent_writepages+0xb47/0x26a0 fs/btrfs/extent_io.c:2230 do_writepages+0x3a6/0x670 mm/page-writeback.c:2553 __writeback_single_inode+0x155/0xfc0 fs/fs-writeback.c:1625 writeback_sb_inodes+0x8e3/0x1220 fs/fs-writeback.c:1916 __writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:1987 wb_writeback+0x461/0xc70 fs/fs-writeback.c:2094 wb_check_background_flush fs/fs-writeback.c:2164 [inline] wb_do_writeback fs/fs-writeback.c:2252 [inline] wb_workfn+0xc33/0xfb0 fs/fs-writeback.c:2279 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.5:19027 blocked for more than 144 seconds. Not tainted 6.7.0-rc4-syzkaller-00358-gf2e8a57ee903 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:22800 pid:19027 tgid:19026 ppid:5090 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 wait_extent_bit fs/btrfs/extent-io-tree.c:799 [inline] lock_extent+0x69d/0x850 fs/btrfs/extent-io-tree.c:1843 find_lock_delalloc_range+0x4b5/0x970 fs/btrfs/extent_io.c:393 writepage_delalloc+0x17f/0x470 fs/btrfs/extent_io.c:1183 __extent_writepage fs/btrfs/extent_io.c:1440 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2108 [inline] extent_writepages+0x1210/0x26a0 fs/btrfs/extent_io.c:2230 do_writepages+0x3a6/0x670 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:387 __filemap_fdatawrite_range mm/filemap.c:420 [inline] filemap_write_and_wait_range+0x1d4/0x2c0 mm/filemap.c:675 __iomap_dio_rw+0xa80/0x2330 fs/iomap/direct-io.c:592 iomap_dio_rw+0x46/0xa0 fs/iomap/direct-io.c:748 btrfs_dio_read+0xb6/0x100 fs/btrfs/inode.c:7789 btrfs_direct_read fs/btrfs/file.c:3778 [inline] btrfs_file_read_iter+0x39e/0x6b0 fs/btrfs/file.c:3817 call_read_iter include/linux/fs.h:2014 [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+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:0x7f8b8627cba9 RSP: 002b:00007f8b870a80c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f8b8639bf80 RCX: 00007f8b8627cba9 RDX: 0000000000000000 RSI: 000000000000000c RDI: 000000000000000b RBP: 00007f8b862c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f8b8639bf80 R15: 00007fff9f890178 INFO: task syz-executor.5:19111 blocked for more than 145 seconds. Not tainted 6.7.0-rc4-syzkaller-00358-gf2e8a57ee903 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:21560 pid:19111 tgid:19026 ppid:5090 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 btrfs_page_mkwrite+0x4a4/0xd10 fs/btrfs/inode.c:8148 do_page_mkwrite+0x197/0x470 mm/memory.c:2944 wp_page_shared mm/memory.c:3339 [inline] do_wp_page+0x1d07/0x4d40 mm/memory.c:3479 handle_pte_fault mm/memory.c:5055 [inline] __handle_mm_fault mm/memory.c:5180 [inline] handle_mm_fault+0x1b1c/0x6680 mm/memory.c:5345 do_user_addr_fault arch/x86/mm/fault.c:1413 [inline] handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x2ad/0x870 arch/x86/mm/fault.c:1561 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:rep_movs_alternative+0x33/0x70 arch/x86/lib/copy_user_64.S:58 Code: 40 83 f9 08 73 21 85 c9 74 0f 8a 06 88 07 48 ff c7 48 ff c6 48 ff c9 75 f1 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 06 <48> 89 07 48 83 c6 08 48 83 c7 08 83 e9 08 74 df 83 f9 08 73 e8 eb RSP: 0018:ffffc900175d73b0 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000020000398 RCX: 0000000000000038 RDX: 0000000000000000 RSI: ffffc900175d7460 RDI: 0000000020000360 RBP: ffffc900175d7510 R08: ffffc900175d7497 R09: 1ffff92002ebae92 R10: dffffc0000000000 R11: fffff52002ebae93 R12: 0000000000000038 R13: ffffc900175d7460 R14: 0000000020000360 R15: ffffc900175d7460 copy_user_generic arch/x86/include/asm/uaccess_64.h:112 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:133 [inline] _copy_to_user+0x86/0xa0 lib/usercopy.c:41 copy_to_user include/linux/uaccess.h:191 [inline] fiemap_fill_next_extent+0x235/0x410 fs/ioctl.c:145 emit_fiemap_extent fs/btrfs/extent_io.c:2476 [inline] fiemap_process_hole+0x5d2/0xaf0 fs/btrfs/extent_io.c:2695 extent_fiemap+0xeae/0x1fe0 btrfs_fiemap+0x178/0x1e0 fs/btrfs/inode.c:7830 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x19ea/0x2b40 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857 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:0x7f8b8627cba9 RSP: 002b:00007f8b870870c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8b8639c050 RCX: 00007f8b8627cba9 RDX: 0000000020000340 RSI: 00000000c020660b RDI: 000000000000000b RBP: 00007f8b862c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8b8639c050 R15: 00007fff9f890178 INFO: task syz-executor.5:19112 blocked for more than 146 seconds. Not tainted 6.7.0-rc4-syzkaller-00358-gf2e8a57ee903 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:23248 pid:19112 tgid:19026 ppid:5090 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 btrfs_page_start_writer_lock+0x71/0x2f0 fs/btrfs/subpage.c:344 lock_delalloc_pages+0x2d8/0x870 fs/btrfs/extent_io.c:280 find_lock_delalloc_range+0x44d/0x970 fs/btrfs/extent_io.c:373 writepage_delalloc+0x17f/0x470 fs/btrfs/extent_io.c:1183 __extent_writepage fs/btrfs/extent_io.c:1440 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2108 [inline] extent_writepages+0x1210/0x26a0 fs/btrfs/extent_io.c:2230 do_writepages+0x3a6/0x670 mm/page-writeback.c:2553 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:387 __filemap_fdatawrite_range mm/filemap.c:420 [inline] filemap_write_and_wait_range+0x1d4/0x2c0 mm/filemap.c:675 kiocb_invalidate_pages+0xb2/0x140 mm/filemap.c:2694 __iomap_dio_rw+0xb8d/0x2330 fs/iomap/direct-io.c:638 btrfs_dio_write+0xb6/0x100 fs/btrfs/inode.c:7798 btrfs_direct_write fs/btrfs/file.c:1543 [inline] btrfs_do_write_iter+0x7ac/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:0x7f8b8627cba9 RSP: 002b:00007f8b870660c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f8b8639c120 RCX: 00007f8b8627cba9 RDX: 0000000000000000 RSI: 000000000000000a RDI: 0000000000000009 RBP: 00007f8b862c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201004 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8b8639c120 R15: 00007fff9f890178 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92d060 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4807: #0: ffff8880264250a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.1/5087: 2 locks held by kworker/1:3/5146: #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: ffffc9000473fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #1: ffffc9000473fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 1 lock held by syz-executor.2/12877: #0: ffffffff8d932a38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #0: ffffffff8d932a38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:996 3 locks held by kworker/u4:10/14067: #0: ffff888015266938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #0: ffff888015266938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #1: ffffc900161cfd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2602 [inline] #1: ffffc900161cfd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2700 #2: ffff888035f0e0e0 (&type->s_umount_key#80){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:610 2 locks held by syz-executor.5/19027: #0: ffff888035f0e418 (sb_writers#15){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff88803f0ccfc8 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #1: ffff88803f0ccfc8 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:370 4 locks held by syz-executor.5/19111: #0: ffff88803f0ccfc8 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff88803f0ccfc8 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:370 #1: ffff88807b0c73a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff88807b0c73a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5372 [inline] #1: ffff88807b0c73a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5432 #2: ffff888035f0e510 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x197/0x470 mm/memory.c:2944 #3: ffff88803f0cce50 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x49c/0xd10 fs/btrfs/inode.c:8147 2 locks held by syz-executor.5/19112: #0: ffff888035f0e418 (sb_writers#15){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253 #1: ffff88803f0ccfc8 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #1: ffff88803f0ccfc8 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:370 2 locks held by syz-executor.5/21892: 2 locks held by syz-executor.1/21903: 2 locks held by syz-executor.4/21904: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc4-syzkaller-00358-gf2e8a57ee903 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/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: 19383 Comm: syz-executor.5 Not tainted 6.7.0-rc4-syzkaller-00358-gf2e8a57ee903 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:119 [inline] RIP: 0010:lock_release+0xf3/0x9c0 kernel/locking/lockdep.c:5767 Code: c0 3c f2 00 8f 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 dd 05 00 00 83 3d a6 a3 93 0d 00 0f 84 31 05 00 00 65 8b 05 9d 3a 95 7e <85> c0 0f 85 22 05 00 00 65 48 8b 05 4d 6a 96 7e 48 89 44 24 18 48 RSP: 0018:ffffc90018667960 EFLAGS: 00000002 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff816d4e60 RDX: 0000000000000000 RSI: ffffffff8bbdf3c0 RDI: ffffffff8bbdf380 RBP: ffffc90018667a90 R08: ffffffff8f00bf2f R09: 1ffffffff1e017e5 R10: dffffc0000000000 R11: fffffbfff1e017e6 R12: 1ffff920030ccf38 R13: ffffffff817da7a5 R14: ffffc90018667ac0 R15: dffffc0000000000 FS: 000055555748c480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff7a113d14 CR3: 0000000089b0f000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: seqcount_lockdep_reader_access+0x10f/0x220 include/linux/seqlock.h:101 ktime_get+0x35/0x270 kernel/time/timekeeping.c:846 __hrtimer_start_range_ns kernel/time/hrtimer.c:1247 [inline] hrtimer_start_range_ns+0x329/0xc50 kernel/time/hrtimer.c:1301 hrtimer_start_expires include/linux/hrtimer.h:432 [inline] hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1968 [inline] do_nanosleep+0x157/0x5f0 kernel/time/hrtimer.c:2044 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:52 [inline] do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7ffbec4a7fb5 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:00007fff3261f090 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 0000000000000082 RCX: 00007ffbec4a7fb5 RDX: 00007fff3261f0d0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007fff3261f15c R08: 0000000000000000 R09: 00007fff327200b0 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 00000000000cb8b8 R14: 00000000000cb8b8 R15: 0000000000000000