INFO: task syz-executor.3:32707 blocked for more than 143 seconds. Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:26184 pid:32707 ppid:5120 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 io_schedule+0x8c/0x100 kernel/sched/core.c:8887 folio_wait_bit_common+0x86c/0x12b0 mm/filemap.c:1301 __filemap_get_folio+0x44e/0xe50 mm/filemap.c:1936 pagecache_get_page+0x2c/0x240 mm/folio-compat.c:99 find_or_create_page include/linux/pagemap.h:632 [inline] copy_inline_to_page+0x23d/0x890 fs/btrfs/reflink.c:88 clone_copy_inline_extent fs/btrfs/reflink.c:322 [inline] btrfs_clone+0x1826/0x2c60 fs/btrfs/reflink.c:530 btrfs_clone_files+0x329/0x400 fs/btrfs/reflink.c:772 btrfs_remap_file_range+0x61f/0xf50 fs/btrfs/reflink.c:910 do_clone_file_range+0x26c/0x2d0 fs/remap_range.c:393 vfs_clone_file_range+0x1fd/0x500 fs/remap_range.c:411 ioctl_file_clone fs/ioctl.c:239 [inline] ioctl_file_clone_range fs/ioctl.c:258 [inline] do_vfs_ioctl+0xf83/0x2b10 fs/ioctl.c:823 __do_sys_ioctl fs/ioctl.c:868 [inline] __se_sys_ioctl+0x81/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f84d428c169 RSP: 002b:00007f84d4f0b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f84d43ac050 RCX: 00007f84d428c169 RDX: 0000000020000080 RSI: 000000004020940d RDI: 0000000000000005 RBP: 00007f84d42e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffee1839f4f R14: 00007f84d4f0b300 R15: 0000000000022000 INFO: task syz-executor.3:32708 blocked for more than 144 seconds. Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:25288 pid:32708 ppid:5120 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 wait_on_state fs/btrfs/extent-io-tree.c:707 [inline] wait_extent_bit+0x50c/0x670 fs/btrfs/extent-io-tree.c:751 lock_extent+0x1ce/0x280 fs/btrfs/extent-io-tree.c:1742 btrfs_lock_and_flush_ordered_range+0xd3/0x220 fs/btrfs/ordered-data.c:1047 contiguous_readpages fs/btrfs/extent_io.c:1383 [inline] extent_readahead+0x1075/0x1410 fs/btrfs/extent_io.c:2773 read_pages+0x183/0x830 mm/readahead.c:161 page_cache_ra_unbounded+0x697/0x7c0 mm/readahead.c:270 page_cache_sync_readahead include/linux/pagemap.h:1214 [inline] filemap_get_pages+0x49c/0x20c0 mm/filemap.c:2598 filemap_read+0x45a/0x1170 mm/filemap.c:2693 call_read_iter include/linux/fs.h:1845 [inline] generic_file_splice_read+0x240/0x640 fs/splice.c:402 do_splice_to fs/splice.c:885 [inline] splice_direct_to_actor+0x40c/0xbd0 fs/splice.c:956 do_splice_direct+0x283/0x3d0 fs/splice.c:1065 do_sendfile+0x620/0xff0 fs/read_write.c:1255 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x100/0x1e0 fs/read_write.c:1309 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f84d428c169 RSP: 002b:00007f84cb9fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f84d43ac120 RCX: 00007f84d428c169 RDX: 0000000020000100 RSI: 0000000000000005 RDI: 0000000000000005 RBP: 00007f84d42e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffee1839f4f R14: 00007f84cb9fe300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25530 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf25d30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf25360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4746: #0: ffff8880289c9098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 5 locks held by syz-executor.3/32707: #0: ffff88807707a460 (sb_writers#16){.+.+}-{0:0}, at: ioctl_file_clone fs/ioctl.c:239 [inline] #0: ffff88807707a460 (sb_writers#16){.+.+}-{0:0}, at: ioctl_file_clone_range fs/ioctl.c:258 [inline] #0: ffff88807707a460 (sb_writers#16){.+.+}-{0:0}, at: do_vfs_ioctl+0xf83/0x2b10 fs/ioctl.c:823 #1: ffff888031b28598 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888031b28598 (&sb->s_type->i_mutex_key#22){++++}-{3:3}, at: lock_two_nondirectories+0xe2/0x140 fs/inode.c:1122 #2: ffff888031b2ec60 (&sb->s_type->i_mutex_key#22/4){+.+.}-{3:3}, at: btrfs_remap_file_range+0x173/0xf50 fs/btrfs/reflink.c:898 #3: ffff888031b2eae8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:654 [inline] #3: ffff888031b2eae8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_remap_file_range+0x190/0xf50 fs/btrfs/reflink.c:899 #4: ffff888031b28420 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_double_mmap_lock fs/btrfs/reflink.c:655 [inline] #4: ffff888031b28420 (&ei->i_mmap_lock/1){+.+.}-{3:3}, at: btrfs_remap_file_range+0x1b1/0xf50 fs/btrfs/reflink.c:899 2 locks held by syz-executor.3/32708: #0: ffff88807707a460 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1254 #1: ffff888031b2ee00 (mapping.invalidate_lock#4){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:813 [inline] #1: ffff888031b2ee00 (mapping.invalidate_lock#4){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:226 3 locks held by syz-executor.3/1833: 1 lock held by syz-executor.2/1846: #0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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+0x187/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x270/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: 5109 Comm: syz-executor.2 Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:may_use_simd arch/x86/include/asm/simd.h:11 [inline] RIP: 0010:crc32c_pcl_intel_update+0x41/0x270 arch/x86/crypto/crc32c-intel_glue.c:160 Code: 48 89 fb 49 bd 00 00 00 00 00 fc ff df e8 c7 53 3d 00 48 83 c3 08 bf ff 01 00 00 89 ee e8 67 57 3d 00 81 fd 00 02 00 00 72 57 2a a3 e5 ff 84 c0 0f 84 85 00 00 00 e8 9d 53 3d 00 bf 02 00 00 RSP: 0018:ffffc90003ebf830 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffc90003ebfa28 RCX: ffff888027340000 RDX: ffff888027340000 RSI: 0000000000000ff4 RDI: 00000000000001ff RBP: 0000000000000ff4 R08: ffffffff814d0ec9 R09: fffff520007d7f39 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888044ebb000 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000ff4 FS: 00005555557da400(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd41fb85998 CR3: 00000000448f1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: crypto_shash_update+0x1df/0x2a0 crypto/shash.c:121 ext4_chksum fs/ext4/ext4.h:2464 [inline] ext4_dirblock_csum fs/ext4/namei.c:381 [inline] ext4_dirblock_csum_set fs/ext4/namei.c:429 [inline] ext4_handle_dirty_dirblock+0x515/0x6f0 fs/ext4/namei.c:437 ext4_delete_entry+0x462/0x5c0 fs/ext4/namei.c:2719 __ext4_unlink+0x563/0xbb0 fs/ext4/namei.c:3250 ext4_unlink+0x1af/0x550 fs/ext4/namei.c:3298 vfs_unlink+0x35d/0x5f0 fs/namei.c:4250 do_unlinkat+0x4a1/0x940 fs/namei.c:4316 __do_sys_unlink fs/namei.c:4364 [inline] __se_sys_unlink fs/namei.c:4362 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4362 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f44d2e8bad7 Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 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:00007ffd614aefc8 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f44d2e8bad7 RDX: 00007ffd614af000 RSI: 00007ffd614af000 RDI: 00007ffd614af090 RBP: 00007ffd614af090 R08: 0000000000000001 R09: 00007ffd614aee60 R10: 00005555557db873 R11: 0000000000000206 R12: 00007f44d2ee6cdc R13: 00007ffd614b0150 R14: 00005555557db810 R15: 00007ffd614b0190