INFO: task syz-executor.3:12028 blocked for more than 143 seconds. Not tainted 5.15.152-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:22680 pid:12028 ppid: 11272 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191 __writeback_inodes_sb_nr+0x2ce/0x370 fs/fs-writeback.c:2684 try_to_writeback_inodes_sb+0x94/0xb0 fs/fs-writeback.c:2732 ext4_nonda_switch fs/ext4/inode.c:2933 [inline] ext4_da_write_begin+0x228/0xb60 fs/ext4/inode.c:2960 generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3785 ext4_buffered_write_iter+0x227/0x360 fs/ext4/file.c:268 ext4_file_write_iter+0x87c/0x1990 __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:867 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/0x40 kernel/entry/common.c:314 exc_general_protection+0x358/0x4f0 arch/x86/kernel/traps.c:562 asm_exc_general_protection+0x22/0x30 arch/x86/include/asm/idtentry.h:562 RIP: 0033:0x7efee57b8db1 RSP: 002b:0000000020000030 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007efee58e6f80 RCX: 00007efee57b8da9 RDX: 0000000020000040 RSI: 0000000020000030 RDI: 0000000002008480 RBP: 00007efee580547a R08: 00000000200000c0 R09: 00000000200000c0 R10: 0000000020000080 R11: 0000000000000202 R12: 0000000000000000 R13: 000000000000000b R14: 00007efee58e6f80 R15: 00007ffe28d10018 Showing all locks held in the system: 3 locks held by kworker/0:0/7: #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90000cc7d20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9dba08 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:251 1 lock held by khungtaskd/27: #0: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3263: #0: ffff88814af54098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc9000209b2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 3 locks held by kworker/1:7/3568: #0: ffff888011c70938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90003da7d20 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff888077452400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_trap_report_work+0x56/0xab0 drivers/net/netdevsim/dev.c:757 2 locks held by kworker/0:7/3594: #0: ffff888011c72138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004457d20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 8 locks held by kworker/u4:8/4047: #0: ffff888011dcd138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90005e07d20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9cfe50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf1/0xb60 net/core/net_namespace.c:558 #3: ffffffff8da01028 (devlink_mutex){+.+.}-{3:3}, at: devlink_pernet_pre_exit+0xb1/0x350 net/core/devlink.c:11534 #4: ffff888077451658 (&nsim_bus_dev->nsim_bus_reload_lock){+.+.}-{3:3}, at: nsim_dev_reload_down+0x58/0x160 drivers/net/netdevsim/dev.c:870 #5: ffff888077452400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1359 [inline] #5: ffff888077452400 (&nsim_dev->port_list_lock){+.+.}-{3:3}, at: nsim_dev_reload_destroy+0x118/0x240 drivers/net/netdevsim/dev.c:1561 #6: ffffffff8d9dba08 (rtnl_mutex){+.+.}-{3:3}, at: nsim_destroy+0x3a/0x140 drivers/net/netdevsim/netdev.c:381 #7: ffffffff8c923ce8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #7: ffffffff8c923ce8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:845 3 locks held by kworker/u4:12/7096: 4 locks held by kworker/u4:14/7098: #0: ffff888142bae938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004197d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88814aef6bd8 (&sbi->s_writepages_rwsem){.+.+}-{0:0}, at: ext4_writepages+0x1f6/0x3d10 fs/ext4/inode.c:2677 #3: ffff88814b588990 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x12b9/0x1570 fs/jbd2/transaction.c:462 3 locks held by syz-executor.3/12028: #0: ffff88814aef4460 (sb_writers#5){.+.+}-{0:0}, at: do_coredump+0x1825/0x31e0 fs/coredump.c:825 #1: ffff8880570dc9b8 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #1: ffff8880570dc9b8 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xa0/0x360 fs/ext4/file.c:262 #2: ffff88814aef40e0 (&type->s_umount_key#32){++++}-{3:3}, at: try_to_writeback_inodes_sb+0x1d/0xb0 fs/fs-writeback.c:2729 3 locks held by syz-executor.0/12894: 2 locks held by syz-executor.0/12933: 3 locks held by syz-executor.4/12945: 3 locks held by syz-executor.0/12955: 2 locks held by syz-executor.0/12991: 1 lock held by syz-executor.0/13048: 1 lock held by syz-executor.0/13089: 2 locks held by syz-executor.0/13341: 2 locks held by syz-executor.0/13359: 2 locks held by syz-executor.0/13373: 3 locks held by syz-executor.0/13386: 2 locks held by syz-executor.0/13401: 2 locks held by syz-executor.0/13412: 2 locks held by syz-executor.0/13431: 6 locks held by syz-executor.3/13598: #0: ffff88807ec96460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x29a/0xe50 fs/read_write.c:590 #1: ffff88805cf93088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1e7/0x4f0 fs/kernfs/file.c:287 #2: ffff888147aca918 (kn->active#233){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20b/0x4f0 fs/kernfs/file.c:288 #3: ffffffff8d357a88 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xf1/0x470 drivers/net/netdevsim/bus.c:344 #4: ffff888077b29178 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #4: ffff888077b29178 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1044 [inline] #4: ffff888077b29178 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xc2/0x7f0 drivers/base/dd.c:1259 #5: ffffffff8da01028 (devlink_mutex){+.+.}-{3:3}, at: devlink_reload_disable+0x17/0x60 net/core/devlink.c:9019 3 locks held by syz-executor.0/13619: 1 lock held by syz-executor.1/13645: #0: ffffffff8d9dba08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d9dba08 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5626 1 lock held by syz-executor.2/13669: #0: ffffffff8d9dba08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d9dba08 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5626 3 locks held by syz-executor.0/13689: 2 locks held by syz-executor.0/13700: 3 locks held by syz-executor.0/13710: 1 lock held by syz-executor.0/13723: #0: ffff88804ccf40a8 (&ctx->uring_lock){+.+.}-{3:3}, at: io_ctx_quiesce io_uring/io_uring.c:11087 [inline] #0: ffff88804ccf40a8 (&ctx->uring_lock){+.+.}-{3:3}, at: __io_uring_register io_uring/io_uring.c:11116 [inline] #0: ffff88804ccf40a8 (&ctx->uring_lock){+.+.}-{3:3}, at: __do_sys_io_uring_register io_uring/io_uring.c:11257 [inline] #0: ffff88804ccf40a8 (&ctx->uring_lock){+.+.}-{3:3}, at: __se_sys_io_uring_register+0x119f/0x3450 io_uring/io_uring.c:11234 1 lock held by syz-executor.4/13720: #0: ffffffff8d9dba08 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff8d9dba08 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x94c/0xee0 net/core/rtnetlink.c:5626 1 lock held by syz-executor.0/13724: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 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: 7098 Comm: kworker/u4:14 Not tainted 5.15.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Workqueue: writeback wb_workfn (flush-8:0) RIP: 0010:match_held_lock+0x1/0xb0 kernel/locking/lockdep.c:5070 Code: 03 00 75 cf 48 c7 c7 a0 13 8b 8a 48 c7 c6 e0 13 8b 8a e8 32 17 30 f7 0f 0b eb b6 e8 09 fb ff ff 66 0f 1f 84 00 00 00 00 00 55 <53> bd 01 00 00 00 48 39 77 10 74 67 48 89 fb 81 7f 20 00 00 10 00 RSP: 0018:ffffc90004196b18 EFLAGS: 00000083 RAX: 0000000000000005 RBX: 0000000000000004 RCX: ffff88801dfa8000 RDX: ffff88801dfa8000 RSI: ffff888080e78ee0 RDI: ffff88801dfa8b90 RBP: ffff88801dfa8b90 R08: ffffffff81a89244 R09: fffff940004301b7 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246 R13: ffff88801dfa8000 R14: 00000000ffffffff R15: ffff888080e78ee0 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555573b0788 CR3: 0000000077597000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_is_held kernel/locking/lockdep.c:5366 [inline] lock_is_held_type+0xa4/0x180 kernel/locking/lockdep.c:5666 lock_is_held include/linux/lockdep.h:287 [inline] xa_entry include/linux/xarray.h:1182 [inline] xas_reload+0xfd/0x470 include/linux/xarray.h:1558 find_get_entry+0x1da/0x280 mm/filemap.c:1996 find_get_pages_range_tag+0x241/0x500 mm/filemap.c:2272 pagevec_lookup_range_tag+0x37/0x80 mm/swap.c:1114 mpage_prepare_extent_to_map+0x399/0x1150 fs/ext4/inode.c:2578 ext4_writepages+0x1273/0x3d10 fs/ext4/inode.c:2815 do_writepages+0x481/0x730 mm/page-writeback.c:2364 __writeback_single_inode+0x15b/0xe30 fs/fs-writeback.c:1647 writeback_sb_inodes+0xbce/0x1a40 fs/fs-writeback.c:1930 wb_writeback+0x451/0xc50 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x46c/0x1130 fs/fs-writeback.c:2288 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298