INFO: task kworker/u4:7:5270 blocked for more than 143 seconds. Not tainted 6.3.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:7 state:D stack:20096 pid:5270 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-btrfs-138) 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 folio_lock include/linux/pagemap.h:952 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2615 [inline] extent_writepages+0xa65/0x1930 fs/btrfs/extent_io.c:2755 do_writepages+0x3a6/0x670 mm/page-writeback.c:2551 __writeback_single_inode+0x155/0xfb0 fs/fs-writeback.c:1600 writeback_sb_inodes+0x8ef/0x11d0 fs/fs-writeback.c:1891 __writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:1962 wb_writeback+0x46c/0xc70 fs/fs-writeback.c:2067 wb_check_background_flush fs/fs-writeback.c:2133 [inline] wb_do_writeback fs/fs-writeback.c:2221 [inline] wb_workfn+0xc6f/0xff0 fs/fs-writeback.c:2248 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.0:14835 blocked for more than 144 seconds. Not tainted 6.3.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:23560 pid:14835 ppid:5104 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_page_mkwrite+0x554/0xc90 fs/btrfs/inode.c:8163 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:4941 [inline] __handle_mm_fault mm/memory.c:5065 [inline] handle_mm_fault+0x23a0/0x51c0 mm/memory.c:5211 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:ffffc90016777e60 EFLAGS: 00050206 RAX: ffffffff84302a01 RBX: 00007fffffffec00 RCX: 0000000000000400 RDX: 0000000000000400 RSI: ffff88802c0d7000 RDI: 0000000020000100 RBP: ffff88802c0d7020 R08: dffffc0000000000 R09: ffffed100581ae80 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000400 R13: 1ffff1100581ae03 R14: 0000000020000100 R15: ffff88802c0d7000 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:0x7f7932c8c169 RSP: 002b:00007f7933a18168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f7932dabf80 RCX: 00007f7932c8c169 RDX: 0000000020000100 RSI: 00000000c400941b RDI: 0000000000000009 RBP: 00007f7932ce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe41a0fdcf R14: 00007f7933a18300 R15: 0000000000022000 INFO: task syz-executor.0:14899 blocked for more than 145 seconds. Not tainted 6.3.0-rc6-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:22432 pid:14899 ppid:5104 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 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:7794 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:0x7f7932c8c169 RSP: 002b:00007f79339f7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000147 RAX: ffffffffffffffda RBX: 00007f7932dac050 RCX: 00007f7932c8c169 RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000005 RBP: 00007f7932ce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe41a0fdcf R14: 00007f79339f7300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25570 (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: ffffffff8cf25d70 (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: ffffffff8cf253a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4742: #0: ffff88814a3a2098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 2 locks held by syz-executor.5/5110: #0: ffff88803a46a0e0 (&type->s_umount_key#66){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361 #1: ffffffff8cf2a878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffffffff8cf2a878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:989 3 locks held by kworker/u4:7/5270: #0: ffff888144bac138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90004d1fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 #2: ffff888028e020e0 (&type->s_umount_key#50){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:414 2 locks held by kworker/0:17/6325: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90016757d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 4 locks held by syz-executor.0/14835: #0: ffff888028e02460 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write_file+0x5e/0x1f0 fs/namespace.c:438 #1: ffff88802c8cf698 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #1: ffff88802c8cf698 (&mm->mmap_lock){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1348 [inline] #1: ffff88802c8cf698 (&mm->mmap_lock){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1498 [inline] #1: ffff88802c8cf698 (&mm->mmap_lock){++++}-{3:3}, at: exc_page_fault+0x18e/0x7c0 arch/x86/mm/fault.c:1554 #2: ffff888028e02558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a1/0x600 mm/memory.c:2925 #3: ffff88801686f440 (&ei->i_mmap_lock){++++}-{3:3}, at: btrfs_page_mkwrite+0x425/0xc90 fs/btrfs/inode.c:8152 1 lock held by syz-executor.0/14899: #0: ffff88801686f5b8 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff88801686f5b8 (&sb->s_type->i_mutex_key#21){++++}-{3:3}, at: btrfs_inode_lock+0x60/0xd0 fs/btrfs/inode.c:169 1 lock held by syz-executor.4/17470: #0: ffff888067a2c0e0 (&type->s_umount_key#49/1){+.+.}-{3:3}, at: alloc_super+0x217/0x930 fs/super.c:228 5 locks held by syz-executor.1/17475: 1 lock held by udevadm/17490: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc6-syzkaller #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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 15426 Comm: kworker/u4:13 Not tainted 6.3.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: bat_events batadv_mcast_mla_update RIP: 0010:trace_lock_release include/trace/events/lock.h:69 [inline] RIP: 0010:lock_release+0xba/0x9d0 kernel/locking/lockdep.c:5680 Code: 83 d6 05 00 00 89 c3 48 89 d8 48 c1 e8 06 48 8d 3c c5 28 46 53 8e be 08 00 00 00 e8 60 f0 75 00 48 0f a3 1d d0 0d e9 0c 73 0d 91 0b 09 00 84 c0 0f 84 d9 05 00 00 48 c7 c0 e4 7a 53 8e 48 c1 RSP: 0018:ffffc90003d3f6e0 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff816a3850 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8e534628 RBP: ffffc90003d3f820 R08: dffffc0000000000 R09: fffffbfff1ca68c6 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920007a7ee8 R13: ffffffff817934aa R14: ffff8880b9929580 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31b61e9000 CR3: 000000002ad49000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_unlock+0x16/0x40 kernel/locking/spinlock.c:186 __mod_timer+0x68a/0xf40 kernel/time/timer.c:1110 queue_delayed_work_on+0x15a/0x260 kernel/workqueue.c:1708 queue_delayed_work include/linux/workqueue.h:519 [inline] batadv_mcast_start_timer net/batman-adv/multicast.c:71 [inline] batadv_mcast_mla_update+0x384c/0x3bb0 net/batman-adv/multicast.c:916 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308