INFO: task syz-executor.2:16891 blocked for more than 143 seconds. Not tainted 6.8.0-rc1-next-20240129-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:24960 pid:16891 tgid:16890 ppid:15897 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0xf15/0x5ce0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6804 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6819 wait_extent_bit fs/btrfs/extent-io-tree.c:822 [inline] lock_extent+0x65a/0x730 fs/btrfs/extent-io-tree.c:1868 btrfs_lock_and_flush_ordered_range+0xf1/0x1b0 fs/btrfs/ordered-data.c:1092 contiguous_readpages fs/btrfs/extent_io.c:1177 [inline] extent_readahead+0x8fe/0x15d0 fs/btrfs/extent_io.c:2283 read_pages+0x1a8/0xda0 mm/readahead.c:160 page_cache_ra_unbounded+0x455/0x5f0 mm/readahead.c:269 do_page_cache_ra mm/readahead.c:299 [inline] page_cache_ra_order+0x745/0xa00 mm/readahead.c:542 do_sync_mmap_readahead mm/filemap.c:3144 [inline] filemap_fault+0x16a7/0x3570 mm/filemap.c:3236 __do_fault+0x10a/0x4a0 mm/memory.c:4379 do_read_fault mm/memory.c:4741 [inline] do_fault mm/memory.c:4871 [inline] do_pte_missing mm/memory.c:3748 [inline] handle_pte_fault mm/memory.c:5147 [inline] __handle_mm_fault+0x383c/0x4bf0 mm/memory.c:5288 handle_mm_fault+0x476/0xa00 mm/memory.c:5453 faultin_page mm/gup.c:958 [inline] __get_user_pages+0x4b5/0x1490 mm/gup.c:1241 populate_vma_page_range+0x2d4/0x420 mm/gup.c:1679 __mm_populate+0x1d6/0x380 mm/gup.c:1788 mm_populate include/linux/mm.h:3391 [inline] vm_mmap_pgoff+0x2d0/0x3c0 mm/util.c:578 ksys_mmap_pgoff+0x425/0x5b0 mm/mmap.c:1426 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:93 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:86 [inline] __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:86 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f8992c7dda9 RSP: 002b:00007f8993a110c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f8992dabf80 RCX: 00007f8992c7dda9 RDX: 00000000027fffff RSI: 0000000000600000 RDI: 0000000020000000 RBP: 00007f8992cca47a R08: 0000000000000005 R09: 0000000000000000 R10: 0000000004002011 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f8992dabf80 R15: 00007ffcfcb9b3a8 INFO: task syz-executor.2:16943 blocked for more than 145 seconds. Not tainted 6.8.0-rc1-next-20240129-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:24080 pid:16943 tgid:16890 ppid:15897 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0xf15/0x5ce0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6804 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6819 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6876 rwsem_down_write_slowpath kernel/locking/rwsem.c:1178 [inline] __down_write_common+0x950/0x13f0 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] btrfs_inode_lock+0xc8/0x110 fs/btrfs/inode.c:387 btrfs_sync_file+0x494/0x1340 fs/btrfs/file.c:1824 vfs_fsync_range+0x141/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2741 [inline] btrfs_do_write_iter+0x57a/0x1120 fs/btrfs/file.c:1697 call_write_iter include/linux/fs.h:2091 [inline] iter_file_splice_write+0x906/0x10b0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x19b/0x6d0 fs/splice.c:1164 splice_direct_to_actor+0x346/0xa40 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x17e/0x250 fs/splice.c:1233 do_sendfile+0xaa8/0xdb0 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0x1da/0x220 fs/read_write.c:1348 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f8992c7dda9 RSP: 002b:00007f89939f00c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f8992dac050 RCX: 00007f8992c7dda9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000007 RBP: 00007f8992cca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000800000009 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8992dac050 R15: 00007ffcfcb9b3a8 INFO: task syz-executor.2:16944 blocked for more than 146 seconds. Not tainted 6.8.0-rc1-next-20240129-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:26000 pid:16944 tgid:16890 ppid:15897 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0xf15/0x5ce0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6804 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6819 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6876 rwsem_down_write_slowpath kernel/locking/rwsem.c:1178 [inline] __down_write_common+0x950/0x13f0 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] btrfs_inode_lock+0xc8/0x110 fs/btrfs/inode.c:387 btrfs_sync_file+0x494/0x1340 fs/btrfs/file.c:1824 vfs_fsync_range+0x141/0x230 fs/sync.c:188 generic_write_sync include/linux/fs.h:2741 [inline] btrfs_do_write_iter+0x57a/0x1120 fs/btrfs/file.c:1697 call_write_iter include/linux/fs.h:2091 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x6db/0x1100 fs/read_write.c:590 ksys_write+0x12f/0x260 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f8992c7dda9 RSP: 002b:00007f89939cf0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f8992dac120 RCX: 00007f8992c7dda9 RDX: 0000000000000012 RSI: 0000000020000080 RDI: 0000000000000007 RBP: 00007f8992cca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8992dac120 R15: 00007ffcfcb9b3a8 INFO: task syz-executor.2:16945 blocked for more than 146 seconds. Not tainted 6.8.0-rc1-next-20240129-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:26800 pid:16945 tgid:16890 ppid:15897 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0xf15/0x5ce0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6804 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6819 wait_extent_bit fs/btrfs/extent-io-tree.c:822 [inline] lock_extent+0x65a/0x730 fs/btrfs/extent-io-tree.c:1868 btrfs_page_mkwrite+0x824/0x1430 fs/btrfs/inode.c:8176 do_page_mkwrite+0x17d/0x390 mm/memory.c:2969 wp_page_shared mm/memory.c:3356 [inline] do_wp_page+0xab7/0x3740 mm/memory.c:3496 handle_pte_fault mm/memory.c:5163 [inline] __handle_mm_fault+0x2081/0x4bf0 mm/memory.c:5288 handle_mm_fault+0x476/0xa00 mm/memory.c:5453 do_user_addr_fault+0x3f6/0x1020 arch/x86/mm/fault.c:1415 handle_page_fault arch/x86/mm/fault.c:1507 [inline] exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1563 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 cc cc cc cc 66 0f 1f 84 00 00 00 00 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:ffffc90016a1f8c0 EFLAGS: 00050206 RAX: 0000000000000000 RBX: 0000000000000038 RCX: 0000000000000038 RDX: fffff52002d43f2f RSI: ffffc90016a1f940 RDI: 0000000020000260 RBP: 0000000020000260 R08: 0000000000000000 R09: fffff52002d43f2e R10: ffffc90016a1f977 R11: 0000000000000003 R12: ffffc90016a1f940 R13: 0000000020000298 R14: 0000000000000000 R15: 0000000000000000 copy_user_generic arch/x86/include/asm/uaccess_64.h:109 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:130 [inline] _copy_to_user lib/usercopy.c:41 [inline] _copy_to_user+0xac/0xc0 lib/usercopy.c:34 copy_to_user include/linux/uaccess.h:191 [inline] fiemap_fill_next_extent+0x232/0x390 fs/ioctl.c:145 emit_last_fiemap_cache fs/btrfs/extent_io.c:2546 [inline] extent_fiemap+0x1415/0x1a20 fs/btrfs/extent_io.c:3073 btrfs_fiemap+0xe4/0x170 fs/btrfs/inode.c:7844 ioctl_fiemap fs/ioctl.c:220 [inline] do_vfs_ioctl+0x33b/0x1940 fs/ioctl.c:811 __do_sys_ioctl fs/ioctl.c:869 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x116/0x220 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f8992c7dda9 RSP: 002b:00007f89939ae0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8992dac1f0 RCX: 00007f8992c7dda9 RDX: 0000000020000240 RSI: 00000000c020660b RDI: 0000000000000007 RBP: 00007f8992cca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8992dac1f0 R15: 00007ffcfcb9b3a8 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8d7b0920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8d7b0920 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8d7b0920 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614 2 locks held by kworker/u4:11/2851: 2 locks held by getty/4815: #0: ffff88802b1470a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc8/0x1490 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.4/5104: #0: ffffffff8d7bc038 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #0: ffffffff8d7bc038 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x403/0x7a0 kernel/rcu/tree_exp.h:939 1 lock held by syz-executor.2/16891: #0: ffff888084079898 (mapping.invalidate_lock#4){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:857 [inline] #0: ffff888084079898 (mapping.invalidate_lock#4){.+.+}-{3:3}, at: page_cache_ra_unbounded+0x138/0x5f0 mm/readahead.c:225 2 locks held by syz-executor.2/16943: #0: ffff88801e6b6420 (sb_writers#22){.+.+}-{0:0}, at: splice_direct_to_actor+0x346/0xa40 fs/splice.c:1108 #1: ffff8880840796f8 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff8880840796f8 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: btrfs_inode_lock+0xc8/0x110 fs/btrfs/inode.c:387 3 locks held by syz-executor.2/16944: #0: ffff88802c662d48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xeb/0x180 fs/file.c:1191 #1: ffff88801e6b6420 (sb_writers#22){.+.+}-{0:0}, at: ksys_write+0x12f/0x260 fs/read_write.c:643 #2: ffff8880840796f8 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #2: ffff8880840796f8 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: btrfs_inode_lock+0xc8/0x110 fs/btrfs/inode.c:387 4 locks held by syz-executor.2/16945: #0: ffff8880840796f8 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:812 [inline] #0: ffff8880840796f8 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: btrfs_inode_lock+0x100/0x110 fs/btrfs/inode.c:379 #1: ffff888014c8e0a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:165 [inline] #1: ffff888014c8e0a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5480 [inline] #1: ffff888014c8e0a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x35/0x590 mm/memory.c:5540 #2: ffff88801e6b6518 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x17d/0x390 mm/memory.c:2969 #3: ffff888084079580 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x8b5/0x1430 fs/btrfs/inode.c:8165 1 lock held by syz-executor.2/19234: 5 locks held by syz-executor.1/19237: 2 locks held by syz-executor.3/19239: 2 locks held by syz-executor.0/19241: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.8.0-rc1-next-20240129-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x29c/0x300 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+0xf86/0x1210 kernel/hung_task.c:379 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5104 Comm: syz-executor.4 Not tainted 6.8.0-rc1-next-20240129-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:deref_stack_reg arch/x86/kernel/unwind_orc.c:406 [inline] RIP: 0010:unwind_next_frame+0x1ad8/0x2390 arch/x86/kernel/unwind_orc.c:648 Code: ff e8 ac 1f 50 00 4c 89 e7 e8 74 d9 ff ff 48 8d 7b 40 48 89 fa 49 89 c4 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 <0f> 84 68 f6 ff ff e8 8d a3 aa 00 e9 5e f6 ff ff e8 73 1f 50 00 4c RSP: 0018:ffffc90003b773c0 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffffc90003b77440 RCX: ffffc90003b77474 RDX: 1ffff9200076ee90 RSI: ffffffff813bf989 RDI: ffffc90003b77480 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 000000000000000f R13: 0000000000000001 R14: 0000000000000001 R15: 0000000000000001 FS: 00005555555b4480(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5c817cdb8 CR3: 000000003c322000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x100/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x95/0xd0 kernel/stacktrace.c:122 save_stack+0x162/0x1f0 mm/page_owner.c:129 __reset_page_owner+0x51/0x2e0 mm/page_owner.c:150 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1140 [inline] free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2388 free_unref_page_list+0xe6/0xb50 mm/page_alloc.c:2574 release_pages+0x32a/0x14f0 mm/swap.c:1042 __folio_batch_release+0x77/0xe0 mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] shmem_undo_range+0x57e/0x1140 mm/shmem.c:1005 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x3a3/0xbb0 mm/shmem.c:1242 evict+0x2ed/0x6c0 fs/inode.c:666 iput_final fs/inode.c:1740 [inline] iput.part.0+0x573/0x7c0 fs/inode.c:1766 iput+0x5c/0x80 fs/inode.c:1756 dentry_unlink_inode+0x295/0x440 fs/dcache.c:400 __dentry_kill+0x1d0/0x600 fs/dcache.c:603 dput.part.0+0x4b1/0x9b0 fs/dcache.c:845 dput+0x1f/0x30 fs/dcache.c:835 __fput+0x3bc/0xb80 fs/file_table.c:384 task_work_run+0x14e/0x250 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:108 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0x27e/0x2b0 kernel/entry/common.c:212 do_syscall_64+0xe2/0x260 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x6d/0x75 RIP: 0033:0x7f27ed27db0b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007fff8eef1e90 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007f27ed27db0b RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000003 RBP: 00007fff8eef1f4c R08: 0000000000000000 R09: 00007fff8eef1c37 R10: 0000000000000000 R11: 0000000000000246 R12: 00005555555b595b R13: 00005555555b5900 R14: 00007f27ed2dd5e0 R15: 0000000000000000