INFO: task kworker/u4:8:3729 blocked for more than 143 seconds. Not tainted 5.15.118-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:8 state:D stack:21024 pid: 3729 ppid: 2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:4) Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12c4/0x4590 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 rwsem_down_write_slowpath+0xebb/0x15c0 kernel/locking/rwsem.c:1157 __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1293 [inline] down_write+0x164/0x170 kernel/locking/rwsem.c:1542 f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:529 f2fs_write_inode+0x4c3/0x540 fs/f2fs/inode.c:727 write_inode fs/fs-writeback.c:1478 [inline] __writeback_single_inode+0x644/0xe30 fs/fs-writeback.c:1683 writeback_sb_inodes+0xbf0/0x1a50 fs/fs-writeback.c:1908 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1979 wb_writeback+0x465/0xc50 fs/fs-writeback.c:2084 wb_check_old_data_flush fs/fs-writeback.c:2184 [inline] wb_do_writeback fs/fs-writeback.c:2237 [inline] wb_workfn+0xc55/0x1130 fs/fs-writeback.c:2266 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2307 worker_thread+0xaca/0x1280 kernel/workqueue.c:2454 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 INFO: task syz-executor.0:8063 blocked for more than 145 seconds. Not tainted 5.15.118-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28096 pid: 8063 ppid: 3551 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12c4/0x4590 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191 sync_inodes_sb+0x293/0xab0 fs/fs-writeback.c:2748 iterate_supers+0x127/0x1e0 fs/super.c:705 ksys_sync+0xb9/0x1c0 fs/sync.c:102 __do_sys_sync+0xa/0x10 fs/sync.c:113 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f6331b41389 RSP: 002b:00007f63300b3168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007f6331c60f80 RCX: 00007f6331b41389 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f6331b8c493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcf809df3f R14: 00007f63300b3300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91c5e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:1/144: 3 locks held by kworker/1:2/1070: #0: ffff888011c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2280 #1: ffffc90004f97d20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2282 #2: ffffffff8d9dda08 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:251 2 locks held by getty/3261: #0: ffff88814b110098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90002bb32e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1da0 drivers/tty/n_tty.c:2147 2 locks held by syz-executor.3/3555: #0: ffff88801bd95118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xfb/0x790 block/bdev.c:912 #1: ffff88801bd8a468 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0xa9/0xbe0 drivers/block/loop.c:1365 1 lock held by syz-executor.4/3556: #0: ffffffff8c941e90 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: copy_process+0x2210/0x3ef0 kernel/fork.c:2299 2 locks held by kworker/1:6/3613: #0: ffff888011c66538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2280 #1: ffffc9000457fd20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2282 4 locks held by kworker/u4:8/3729: #0: ffff888142394938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2280 #1: ffffc90004f1fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2282 #2: ffff888093c340e0 (&type->s_umount_key#61){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff88807bbb9108 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:529 5 locks held by kworker/1:16/4309: #0: ffff888141bead38 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2280 #1: ffffc90004f3fd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2282 #2: ffff88801f4c6220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #2: ffff88801f4c6220 (&dev->mutex){....}-{3:3}, at: hub_event+0x207/0x56d0 drivers/usb/core/hub.c:5676 #3: ffff88808f787220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #3: ffff88808f787220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:954 #4: ffff88807d8cf1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #4: ffff88807d8cf1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:954 3 locks held by syz-executor.4/6566: 2 locks held by syz-executor.0/8063: #0: ffff888093c340e0 (&type->s_umount_key#61){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:703 #1: ffff88801bf5a7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff88801bf5a7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2746 4 locks held by udevd/8487: #0: ffff88801eca79e0 (&p->lock){+.+.}-{3:3}, at: seq_read_iter+0xae/0xd10 fs/seq_file.c:182 #1: ffff88805c5af888 (&of->mutex){+.+.}-{3:3}, at: kernfs_seq_start+0x50/0x3b0 fs/kernfs/file.c:112 #2: ffff88807d16cd58 (&ep->lock){...-}-{2:2}, at: ep_poll_callback+0x75/0x970 fs/eventpoll.c:1138 #3: ffff88807d16cca8 (&ep->wq){..-.}-{2:2}, at: __wake_up_common_lock kernel/sched/wait.c:137 [inline] #3: ffff88807d16cca8 (&ep->wq){..-.}-{2:2}, at: __wake_up+0xf5/0x1c0 kernel/sched/wait.c:157 2 locks held by syz-executor.1/9201: #0: ffffffff8d9dda08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d9dda08 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5590 #1: ffffffff8c920b28 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #1: ffffffff8c920b28 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:842 1 lock held by syz-executor.0/9209: #0: ffffffff8d9dda08 (rtnl_mutex){+.+.}-{3:3}, at: __tun_chr_ioctl+0x475/0x2340 drivers/net/tun.c:3045 1 lock held by syz-executor.0/9211: #0: ffffffff8d9dda08 (rtnl_mutex){+.+.}-{3:3}, at: __tun_chr_ioctl+0x475/0x2340 drivers/net/tun.c:3045 1 lock held by syz-executor.0/9215: #0: ffffffff8d9dda08 (rtnl_mutex){+.+.}-{3:3}, at: __tun_chr_ioctl+0x475/0x2340 drivers/net/tun.c:3045 5 locks held by kvm-nx-lpage-re/9226: #0: ffffffff8c941ca8 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_attach_task_all+0x23/0x150 kernel/cgroup/cgroup-v1.c:61 #1: ffffffff8c7b9f50 (cpu_hotplug_lock){++++}-{0:0}, at: cgroup_attach_task_all+0x28/0x150 kernel/cgroup/cgroup-v1.c:62 #2: ffffffff8c941e90 (cgroup_threadgroup_rwsem){++++}-{0:0}, at: cgroup_attach_task_all+0x34/0x150 kernel/cgroup/cgroup-v1.c:63 #3: ffffffff8c94df70 (&cpuset_rwsem){++++}-{0:0}, at: cpuset_can_attach+0x1e9/0x490 kernel/cgroup/cpuset.c:2197 #4: ffffffff8c920b28 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #4: ffffffff8c920b28 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x350/0x740 kernel/rcu/tree_exp.h:842 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6566 Comm: syz-executor.4 Not tainted 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:__lock_release kernel/locking/lockdep.c:5299 [inline] RIP: 0010:lock_release+0x249/0x9a0 kernel/locking/lockdep.c:5642 Code: f0 0a 00 00 4c 63 e3 41 83 fc 31 0f 83 e9 05 00 00 4f 8d 2c a4 4f 8d 3c ee 4c 89 ff 48 8b 74 24 20 e8 ab 77 b8 08 89 5c 24 44 <89> da 85 c0 0f 84 12 02 00 00 4d 85 ff 0f 84 26 03 00 00 49 8d 5f RSP: 0018:ffffc90004b4d800 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 0000000000000003 RCX: ffffc90004b4d803 RDX: 1ffff92000969b10 RSI: ffff8880749a3180 RDI: ffff88802072a928 RBP: ffffc90004b4d938 R08: dffffc0000000000 R09: fffffbfff1bc78be R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000003 R13: 000000000000000f R14: ffff88802072a8b0 R15: ffff88802072a928 FS: 00007f92fcb8b700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020278000 CR3: 000000007823e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:403 [inline] __lookup_nat_cache+0x256/0x290 fs/f2fs/node.c:217 f2fs_get_node_info+0xfa/0x12c0 fs/f2fs/node.c:564 read_node_page+0x411/0x8f0 fs/f2fs/node.c:1360 f2fs_ra_node_page+0x166/0x220 fs/f2fs/node.c:1401 gc_data_segment fs/f2fs/gc.c:1469 [inline] do_garbage_collect+0x26c4/0x7600 fs/f2fs/gc.c:1670 f2fs_gc+0x9e5/0x1ad0 fs/f2fs/gc.c:1764 f2fs_balance_fs+0x4e8/0x6a0 fs/f2fs/segment.c:530 f2fs_write_single_data_page+0xc4f/0x18f0 fs/f2fs/data.c:2869 f2fs_write_cache_pages fs/f2fs/data.c:3083 [inline] __f2fs_write_data_pages fs/f2fs/data.c:3234 [inline] f2fs_write_data_pages+0x17de/0x2c00 fs/f2fs/data.c:3261 do_writepages+0x481/0x730 mm/page-writeback.c:2364 filemap_fdatawrite_wbc+0x1d6/0x230 mm/filemap.c:400 __filemap_fdatawrite_range mm/filemap.c:433 [inline] file_write_and_wait_range+0x1cb/0x2b0 mm/filemap.c:810 f2fs_do_sync_file+0x650/0x19d0 fs/f2fs/file.c:274 generic_write_sync include/linux/fs.h:2913 [inline] f2fs_file_write_iter+0x476/0xb80 fs/f2fs/file.c:4358 __kernel_write+0x5b1/0xa60 fs/read_write.c:539 __dump_emit+0x264/0x3a0 fs/coredump.c:875 dump_user_range+0x91/0x320 fs/coredump.c:949 elf_core_dump+0x3c7d/0x4570 fs/binfmt_elf.c:2285 do_coredump+0x1852/0x31e0 fs/coredump.c:826 get_signal+0xc06/0x14e0 kernel/signal.c:2875 arch_do_signal_or_restart+0xc3/0x1890 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0x97/0x130 kernel/entry/common.c:172 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:314 exc_page_fault+0x342/0x740 arch/x86/mm/fault.c:1544 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:0000000020000048 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f92fe738f80 RCX: 00007f92fe619389 RDX: 0000000020000080 RSI: 0000000020000040 RDI: 0000000040002080 RBP: 00007f92fe664493 R08: 0000000020000140 R09: 0000000020000140 R10: 00000000200000c0 R11: 0000000000000202 R12: 0000000000000000 R13: 00007ffc751083ef R14: 00007f92fcb8b300 R15: 0000000000022000