INFO: task syz-executor.2:22610 blocked for more than 143 seconds. Not tainted 6.5.0-rc7-syzkaller-00185-g28f20a19294d #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:24584 pid:22610 ppid:5042 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0x1873/0x48f0 kernel/sched/core.c:6710 schedule+0xc3/0x180 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 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:771 [inline] f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2160 [inline] __f2fs_ioctl+0x3597/0xb770 fs/f2fs/file.c:4199 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf8/0x170 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:0x7f47e4c7cae9 RSP: 002b:00007f47e5a260c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f47e4d9bf80 RCX: 00007f47e4c7cae9 RDX: 0000000000000000 RSI: 000000000000f502 RDI: 0000000000000005 RBP: 00007f47e4cc847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f47e4d9bf80 R15: 00007fff1af51578 Showing all locks held in the system: 4 locks held by kworker/u4:1/12: #0: ffff888142666938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7e3/0x12c0 kernel/workqueue.c:2572 #1: ffffc90000117d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x82b/0x12c0 kernel/workqueue.c:2574 #2: ffff888055aca0e0 (&type->s_umount_key#53){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:413 #3: ffff88802cafd2a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2133 [inline] #3: ffff88802cafd2a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x51a/0x6f0 fs/f2fs/segment.c:435 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8d3295f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/14: #0: ffffffff8d3299b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/28: #0: ffffffff8d329420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4765: #0: ffff88802d95a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2187 2 locks held by kworker/1:6/5100: #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7e3/0x12c0 kernel/workqueue.c:2572 #1: ffffc900041dfd00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x82b/0x12c0 kernel/workqueue.c:2574 2 locks held by syz-executor.2/22610: #0: ffff888055aca410 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:447 #1: ffff88804a8e0a28 (&sb->s_type->i_mutex_key#35){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline] #1: ffff88804a8e0a28 (&sb->s_type->i_mutex_key#35){+.+.}-{3:3}, at: f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2160 [inline] #1: ffff88804a8e0a28 (&sb->s_type->i_mutex_key#35){+.+.}-{3:3}, at: __f2fs_ioctl+0x3597/0xb770 fs/f2fs/file.c:4199 6 locks held by syz-executor.2/22628: 1 lock held by syz-executor.2/23590: 2 locks held by syz-executor.2/23591: #0: ffff88814c5f6410 (sb_writers#4){.+.+}-{0:0}, at: do_sendfile+0x600/0x1070 fs/read_write.c:1253 #1: ffff88804a938400 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:781 [inline] #1: ffff88804a938400 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_dio_read_iter fs/ext4/file.c:78 [inline] #1: ffff88804a938400 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_file_read_iter+0x297/0x670 fs/ext4/file.c:145 1 lock held by syz-executor.2/23592: 1 lock held by syz-executor.2/23593: 3 locks held by syz-executor.2/23595: #0: ffff888077aa94a0 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:167 [inline] #0: ffff888077aa94a0 (&mm->mmap_lock){++++}-{3:3}, at: get_mmap_lock_carefully mm/memory.c:5260 [inline] #0: ffff888077aa94a0 (&mm->mmap_lock){++++}-{3:3}, at: lock_mm_and_find_vma+0x32/0x2d0 mm/memory.c:5320 #1: ffff88814c5f6508 (sb_pagefaults){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1494 [inline] #1: ffff88814c5f6508 (sb_pagefaults){.+.+}-{0:0}, at: sb_start_pagefault include/linux/fs.h:1598 [inline] #1: ffff88814c5f6508 (sb_pagefaults){.+.+}-{0:0}, at: ext4_page_mkwrite+0x245/0x1290 fs/ext4/inode.c:6039 #2: ffff88804a9385a0 (mapping.invalidate_lock){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:826 [inline] #2: ffff88804a9385a0 (mapping.invalidate_lock){++++}-{3:3}, at: ext4_page_mkwrite+0x27c/0x1290 fs/ext4/inode.c:6042 2 locks held by dhcpcd/23594: #0: ffff88801ea38130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1715 [inline] #0: ffff88801ea38130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xc10 net/packet/af_packet.c:3206 #1: ffffffff8d32eab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffffffff8d32eab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:992 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.5.0-rc7-syzkaller-00185-g28f20a19294d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4681 Comm: dhcpcd Not tainted 6.5.0-rc7-syzkaller-00185-g28f20a19294d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:26 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:67 [inline] RIP: 0010:check_preemption_disabled+0x59/0x110 lib/smp_processor_id.c:19 Code: 48 8b 04 25 28 00 00 00 48 3b 44 24 08 0f 85 c7 00 00 00 89 d8 48 83 c4 10 5b 41 5c 41 5e 41 5f c3 48 c7 04 24 00 00 00 00 9c <8f> 04 24 f7 04 24 00 02 00 00 74 c9 49 89 f6 49 89 ff 65 4c 8b 25 RSP: 0018:ffffc900034ee8d0 EFLAGS: 00000046 RAX: 0000000080000000 RBX: 0000000000000001 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: ffffffff8b0aa540 RDI: ffffffff8b58af60 RBP: 00000000ffffffff R08: ffffffff8ab50a38 R09: ffffffff8ab507ce R10: 0000000000000003 R11: ffff888027b98000 R12: 0000000000000246 R13: ffff888027b98000 R14: 00000000ffffffff R15: ffff88807b35ea20 FS: 00007fae9dfc0740(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e09d3de308 CR3: 000000002173c000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_inc kernel/locking/lockdep.c:462 [inline] lock_is_held_type+0x7a/0x190 kernel/locking/lockdep.c:5831 mt_slot lib/maple_tree.c:816 [inline] mas_slot lib/maple_tree.c:849 [inline] mas_descend+0x316/0x450 lib/maple_tree.c:1064 mas_new_child lib/maple_tree.c:1816 [inline] mas_descend_adopt lib/maple_tree.c:2131 [inline] mas_wmb_replace+0x7b6/0x1380 lib/maple_tree.c:2799 mas_split lib/maple_tree.c:3587 [inline] mas_commit_b_node+0x157e/0x2460 lib/maple_tree.c:3638 mas_wr_bnode lib/maple_tree.c:4323 [inline] mas_wr_modify+0x715/0x2260 lib/maple_tree.c:4361 mas_store+0x5a8/0x670 lib/maple_tree.c:5493 vma_iter_bulk_store include/linux/mm.h:931 [inline] dup_mmap kernel/fork.c:753 [inline] dup_mm kernel/fork.c:1689 [inline] copy_mm+0x1172/0x1ee0 kernel/fork.c:1738 copy_process+0x1a0f/0x4290 kernel/fork.c:2504 kernel_clone+0x222/0x800 kernel/fork.c:2912 __do_sys_clone kernel/fork.c:3055 [inline] __se_sys_clone kernel/fork.c:3039 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:3039 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:0x7fae9e070a12 Code: 41 5d 41 5e 41 5f c3 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 e7 43 0f 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffec2b9fda8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 000055e09d3de301 RCX: 00007fae9e070a12 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffec2bc0318 R08: 0000000000000000 R09: 000055e09d3de2f0 R10: 00007fae9dfc0a10 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 000055e09d3de324