INFO: task syz-executor.4:6430 blocked for more than 143 seconds. Not tainted 6.3.0-rc3-syzkaller-00026-gfff5a5e7f528 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:21112 pid:6430 ppid:5101 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:758 [inline] btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:177 btrfs_sync_file+0x43e/0x10b0 fs/btrfs/file.c:1817 generic_write_sync include/linux/fs.h:2452 [inline] btrfs_do_write_iter+0xccc/0x1270 fs/btrfs/file.c:1684 do_iter_write+0x6ea/0xc50 fs/read_write.c:861 iter_file_splice_write+0x843/0xfe0 fs/splice.c:778 do_splice_from fs/splice.c:856 [inline] direct_splice_actor+0xe7/0x1c0 fs/splice.c:1022 splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:977 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:1323 [inline] __se_sys_sendfile64+0x17c/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:0x7f77d0a8c0f9 RSP: 002b:00007f77d18b9168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f77d0babf80 RCX: 00007f77d0a8c0f9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006 RBP: 00007f77d0ae7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc18e14e5f R14: 00007f77d18b9300 R15: 0000000000022000 INFO: task syz-executor.4:6503 blocked for more than 144 seconds. Not tainted 6.3.0-rc3-syzkaller-00026-gfff5a5e7f528 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:26272 pid:6503 ppid:5101 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 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_page_mkwrite+0x554/0xc90 fs/btrfs/inode.c:8158 do_page_mkwrite+0x1a1/0x600 mm/memory.c:2925 wp_page_shared mm/memory.c:3274 [inline] do_wp_page+0x501/0x3620 mm/memory.c:3356 handle_pte_fault mm/memory.c:4927 [inline] __handle_mm_fault mm/memory.c:5051 [inline] handle_mm_fault+0x23a0/0x51c0 mm/memory.c:5197 do_user_addr_fault arch/x86/mm/fault.c:1407 [inline] handle_page_fault arch/x86/mm/fault.c:1498 [inline] exc_page_fault+0x5b1/0x7c0 arch/x86/mm/fault.c:1554 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:166 Code: d1 f3 a4 31 c0 0f 01 ca c3 8d 0c ca 89 ca eb 2c 66 2e 0f 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 0f 01 cb 83 fa 40 72 34 89 d1 a4 31 c0 0f 01 ca c3 89 ca eb 06 66 0f 1f 44 00 00 83 f8 12 74 RSP: 0018:ffffc900052c7e60 EFLAGS: 00050206 RAX: ffffffff842fee01 RBX: 00007fffffffec00 RCX: 0000000000000400 RDX: 0000000000000400 RSI: ffff8880236e7800 RDI: 0000000020000100 RBP: ffff8880236e7820 R08: dffffc0000000000 R09: ffffed10046dcf80 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000400 R13: 1ffff110046dcf03 R14: 0000000020000100 R15: ffff8880236e7800 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline] _copy_to_user+0xed/0x130 lib/usercopy.c:41 copy_to_user include/linux/uaccess.h:169 [inline] btrfs_ioctl_scrub+0x266/0x340 fs/btrfs/ioctl.c:3186 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/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:0x7f77d0a8c0f9 RSP: 002b:00007f77d1898168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f77d0bac050 RCX: 00007f77d0a8c0f9 RDX: 0000000020000100 RSI: 00000000c400941b RDI: 0000000000000008 RBP: 00007f77d0ae7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc18e14e5f R14: 00007f77d1898300 R15: 0000000000022000 INFO: task syz-executor.4:6511 blocked for more than 145 seconds. Not tainted 6.3.0-rc3-syzkaller-00026-gfff5a5e7f528 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:24672 pid:6511 ppid:5101 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 io_schedule+0x8c/0x100 kernel/sched/core.c:8884 folio_wait_bit_common+0x86c/0x12b0 mm/filemap.c:1301 lock_page include/linux/pagemap.h:973 [inline] set_page_dirty_lock+0xfd/0x2d0 mm/page-writeback.c:2861 bio_set_pages_dirty+0x1f7/0x2c0 block/bio.c:1480 iomap_dio_bio_iter+0xb7f/0x1440 fs/iomap/direct-io.c:341 __iomap_dio_rw+0x121a/0x20d0 fs/iomap/direct-io.c:595 iomap_dio_rw+0x46/0xa0 fs/iomap/direct-io.c:683 btrfs_dio_read+0xbc/0x110 fs/btrfs/inode.c:7789 btrfs_direct_read fs/btrfs/file.c:3772 [inline] btrfs_file_read_iter+0x39d/0x6b0 fs/btrfs/file.c:3811 do_iter_read+0x71a/0xc70 fs/read_write.c:796 vfs_readv fs/read_write.c:916 [inline] do_preadv+0x212/0x350 fs/read_write.c:1008 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:0x7f77d0a8c0f9 RSP: 002b:00007f77d1877168 EFLAGS: 00000246 ORIG_RAX: 0000000000000147 RAX: ffffffffffffffda RBX: 00007f77d0bac120 RCX: 00007f77d0a8c0f9 RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000005 RBP: 00007f77d0ae7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc18e14e5f R14: 00007f77d1877300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf255f0 (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: ffffffff8cf25df0 (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: ffffffff8cf25420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u4:4/75: #0: ffff888144d34138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc900020bfd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 #2: ffff888038d260e0 (&type->s_umount_key#49){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 1 lock held by udevd/4433: 2 locks held by getty/4754: #0: ffff88814b2e0098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 2 locks held by syz-executor.4/6430: #0: ffff888038d26460 (sb_writers#13){.+.+}-{0:0}, at: do_sendfile+0x5fb/0xff0 fs/read_write.c:1254 #1: ffff88807429b450 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff88807429b450 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: btrfs_inode_lock+0x4d/0xd0 fs/btrfs/inode.c:177 4 locks held by syz-executor.4/6503: #0: ffff888038d26460 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write_file+0x5e/0x1f0 fs/namespace.c:438 #1: ffff88807a0a3798 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #1: ffff88807a0a3798 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1348 [inline] #1: ffff88807a0a3798 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1498 [inline] #1: ffff88807a0a3798 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x18e/0x7c0 arch/x86/mm/fault.c:1554 #2: ffff888038d26558 (sb_pagefaults#2){.+.+}-{0:0}, at: do_page_mkwrite+0x1a1/0x600 mm/memory.c:2925 #3: ffff88807429b2d8 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x425/0xc90 fs/btrfs/inode.c:8147 1 lock held by syz-executor.4/6511: #0: ffff88807429b450 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff88807429b450 (&sb->s_type->i_mutex_key#20){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:169 1 lock held by syz-executor.5/12099: #0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 2 locks held by udevadm/12097: 1 lock held by syz-executor.5/12106: #0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 1 lock held by syz-executor.2/12124: #0: ffff8880b993be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 1 lock held by syz-executor.3/12131: 1 lock held by syz-executor.2/12134: #0: ffff8880b993be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 1 lock held by syz-executor.5/12152: 2 locks held by syz-executor.4/12153: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc3-syzkaller-00026-gfff5a5e7f528 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6637 Comm: syz-fuzzer Not tainted 6.3.0-rc3-syzkaller-00026-gfff5a5e7f528 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0033:0x46a456 Code: 44 1f fe c3 89 07 89 44 1f fc c3 48 89 07 c3 48 89 07 48 89 44 1f f8 c3 f3 44 0f 7f 3f f3 44 0f 7f 7c 1f f0 c3 f3 44 0f 7f 3f 44 0f 7f 7f 10 f3 44 0f 7f 7c 1f e0 f3 44 0f 7f 7c 1f f0 c3 f3 RSP: 002b:000000c01fb6d440 EFLAGS: 00000287 RAX: 0000000000000000 RBX: 0000000000000030 RCX: 000000c014e6c000 RDX: 00007f4c675fe5b8 RSI: 000000c0002c3e00 RDI: 000000c01c7bca20 RBP: 000000c01fb6d4a0 R08: 0000000000000000 R09: 0000000000000030 R10: 00007f4c37780eb0 R11: 000000c01c7bca20 R12: 0000000000000001 R13: 0000000000000037 R14: 000000c000285520 R15: 0000000000000036 FS: 000000c014e6c090 GS: 0000000000000000