INFO: task syz-executor.2:8296 blocked for more than 143 seconds. Not tainted 6.3.0-rc5-syzkaller-00151-g5cc33f139e11 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:24152 pid:8296 ppid:1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574 unregister_netdevice_notifier+0x22/0x180 net/core/dev.c:1759 devlink_free+0x2cb/0x460 net/devlink/core.c:269 nsim_drv_remove+0x158/0x1d0 drivers/net/netdevsim/dev.c:1687 device_remove+0xc8/0x170 drivers/base/dd.c:540 __device_release_driver drivers/base/dd.c:1240 [inline] device_release_driver_internal+0x443/0x610 drivers/base/dd.c:1263 bus_remove_device+0x22c/0x420 drivers/base/bus.c:574 device_del+0x48a/0xb80 drivers/base/core.c:3775 device_unregister+0x1e/0xc0 drivers/base/core.c:3805 nsim_bus_dev_del drivers/net/netdevsim/bus.c:310 [inline] del_device_store+0x34e/0x4a0 drivers/net/netdevsim/bus.c:219 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f1/0x600 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc58563deef RSP: 002b:00007ffe1a5dcce0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fc58563deef RDX: 0000000000000001 RSI: 00007ffe1a5dcd30 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007ffe1a5dcc80 R10: 0000000000000000 R11: 0000000000000293 R12: 00007fc5856e78b6 R13: 00007ffe1a5dcd30 R14: 0000000000000000 R15: 00007ffe1a5dd400 INFO: task syz-executor.3:8300 blocked for more than 143 seconds. Not tainted 6.3.0-rc5-syzkaller-00151-g5cc33f139e11 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:25064 pid:8300 ppid:1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f1/0x600 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1815c3deef RSP: 002b:00007ffec3b05980 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f1815c3deef RDX: 0000000000000001 RSI: 00007ffec3b059d0 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007ffec3b05920 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f1815ce78b6 R13: 00007ffec3b059d0 R14: 0000000000000000 R15: 00007ffec3b060a0 INFO: task syz-executor.5:8303 blocked for more than 143 seconds. Not tainted 6.3.0-rc5-syzkaller-00151-g5cc33f139e11 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:24744 pid:8303 ppid:1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f1/0x600 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe7a703deef RSP: 002b:00007fff5077a6a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fe7a703deef RDX: 0000000000000001 RSI: 00007fff5077a6f0 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007fff5077a640 R10: 0000000000000000 R11: 0000000000000293 R12: 00007fe7a70e78b6 R13: 00007fff5077a6f0 R14: 0000000000000000 R15: 00007fff5077adc0 INFO: task syz-executor.4:8317 blocked for more than 144 seconds. Not tainted 6.3.0-rc5-syzkaller-00151-g5cc33f139e11 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:24528 pid:8317 ppid:1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f1/0x600 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe493e3deef RSP: 002b:00007ffc953355e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fe493e3deef RDX: 0000000000000001 RSI: 00007ffc95335630 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007ffc95335580 R10: 0000000000000000 R11: 0000000000000293 R12: 00007fe493ee78b6 R13: 00007ffc95335630 R14: 0000000000000000 R15: 00007ffc95335d00 INFO: task syz-executor.1:8319 blocked for more than 144 seconds. Not tainted 6.3.0-rc5-syzkaller-00151-g5cc33f139e11 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24496 pid:8319 ppid:1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f1/0x600 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd54423deef RSP: 002b:00007ffd7bd7af10 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fd54423deef RDX: 0000000000000001 RSI: 00007ffd7bd7af60 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007ffd7bd7aeb0 R10: 0000000000000000 R11: 0000000000000293 R12: 00007fd5442e78b6 R13: 00007ffd7bd7af60 R14: 0000000000000000 R15: 00007ffd7bd7b630 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c794a30 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c794730 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8c795580 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6495 2 locks held by getty/4754: #0: ffff88802bfe4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015802f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 3 locks held by kworker/u4:7/5234: #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:639 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:666 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x87a/0x15c0 kernel/workqueue.c:2361 #1: ffffc90004a1fda8 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8ae/0x15c0 kernel/workqueue.c:2365 #2: ffffffff8e0e2310 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9f/0xb10 net/core/net_namespace.c:575 6 locks held by syz-executor.2/8296: #0: ffff88802c35e460 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:637 #1: ffff88804dd8c488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x285/0x600 fs/kernfs/file.c:325 #2: ffff888147078830 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a9/0x600 fs/kernfs/file.c:326 #3: ffffffff8d7e14c8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 #4: ffff8880496750e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:832 [inline] #4: ffff8880496750e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1063 [inline] #4: ffff8880496750e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1260 #5: ffffffff8e0e2310 (pernet_ops_rwsem){++++}-{3:3}, at: unregister_netdevice_notifier+0x22/0x180 net/core/dev.c:1759 4 locks held by syz-executor.3/8300: #0: ffff88802c35e460 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:637 #1: ffff888055fe1c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x285/0x600 fs/kernfs/file.c:325 #2: ffff888147078830 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a9/0x600 fs/kernfs/file.c:326 #3: ffffffff8d7e14c8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 4 locks held by syz-executor.5/8303: #0: ffff88802c35e460 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:637 #1: ffff8880506b2488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x285/0x600 fs/kernfs/file.c:325 #2: ffff888147078830 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a9/0x600 fs/kernfs/file.c:326 #3: ffffffff8d7e14c8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 4 locks held by syz-executor.4/8317: #0: ffff88802c35e460 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:637 #1: ffff8880500fb488 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x285/0x600 fs/kernfs/file.c:325 #2: ffff888147078830 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a9/0x600 fs/kernfs/file.c:326 #3: ffffffff8d7e14c8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 4 locks held by syz-executor.1/8319: #0: ffff88802c35e460 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:637 #1: ffff88805684b888 ( &of->mutex ){+.+.}-{3:3} , at: kernfs_fop_write_iter+0x285/0x600 fs/kernfs/file.c:325 #2: ffff888147078830 (kn->active #51){.+.+}-{0:0} , at: kernfs_fop_write_iter+0x2a9/0x600 fs/kernfs/file.c:326 #3: ffffffff8d7e14c8 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 1 lock held by syz-executor.2/9686: #0: ffffffff8e0e2310 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4cb/0x8e0 net/core/net_namespace.c:486 1 lock held by syz-executor.5/9690: #0: ffffffff8e0e2310 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4cb/0x8e0 net/core/net_namespace.c:486 1 lock held by syz-executor.3/9692: #0: ffffffff8e0e2310 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4cb/0x8e0 net/core/net_namespace.c:486 1 lock held by syz-executor.4/9695: #0: ffffffff8e0e2310 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4cb/0x8e0 net/core/net_namespace.c:486 1 lock held by syz-executor.1/9698: #0: ffffffff8e0e2310 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4cb/0x8e0 net/core/net_namespace.c:486 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc5-syzkaller-00151-g5cc33f139e11 #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+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/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+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x2e8/0x3a0 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: 1214 Comm: aoe_tx0 Not tainted 6.3.0-rc5-syzkaller-00151-g5cc33f139e11 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline] RIP: 0010:write_comp_data+0x21/0x90 kernel/kcov.c:236 Code: 2e 0f 1f 84 00 00 00 00 00 65 8b 05 c1 e5 80 7e 49 89 f1 89 c6 49 89 d2 81 e6 00 01 00 00 49 89 f8 65 48 8b 14 25 80 b8 03 00 00 01 ff 00 74 0e 85 f6 74 59 8b 82 74 15 00 00 85 c0 74 4f 8b RSP: 0018:ffffc9000584f0b8 EFLAGS: 00000246 RAX: 0000000080000203 RBX: 0000000000000009 RCX: ffffffff89f353dd RDX: ffff888020ba57c0 RSI: 0000000000000000 RDI: 0000000000000001 RBP: ffffffff8b89aec0 R08: 0000000000000001 R09: 0000000000000011 R10: 0000000000000009 R11: 000000000000000a R12: 0000000000000009 R13: 0000000000000001 R14: 000000000000000a R15: 0000000000000009 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0064a4398 CR3: 000000002bb57000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __sanitizer_cov_trace_switch+0x54/0x90 kernel/kcov.c:340 vsnprintf+0x6dd/0x1710 lib/vsprintf.c:2765 sprintf+0xc4/0x100 lib/vsprintf.c:3000 print_time kernel/printk/printk.c:1336 [inline] info_print_prefix+0x248/0x340 kernel/printk/printk.c:1362 record_print_text+0x14d/0x3f0 kernel/printk/printk.c:1411 printk_get_next_message+0x267/0x710 kernel/printk/printk.c:2818 console_emit_next_record kernel/printk/printk.c:2853 [inline] console_flush_all+0x371/0xcc0 kernel/printk/printk.c:2942 console_unlock+0xb8/0x1f0 kernel/printk/printk.c:3016 vprintk_emit+0x1bd/0x600 kernel/printk/printk.c:2316 dev_vprintk_emit drivers/base/core.c:4805 [inline] dev_printk_emit+0xda/0x120 drivers/base/core.c:4816 __netdev_printk+0x1dd/0x470 net/core/dev.c:11225 netdev_warn+0xdc/0x120 net/core/dev.c:11278 ieee802154_subif_start_xmit+0x167/0x1d0 net/mac802154/tx.c:245 __netdev_start_xmit include/linux/netdevice.h:4883 [inline] netdev_start_xmit include/linux/netdevice.h:4897 [inline] xmit_one net/core/dev.c:3581 [inline] dev_hard_start_xmit+0x187/0x700 net/core/dev.c:3597 sch_direct_xmit+0x1a3/0xc30 net/sched/sch_generic.c:342 __dev_xmit_skb net/core/dev.c:3808 [inline] __dev_queue_xmit+0x15fd/0x3c40 net/core/dev.c:4213 dev_queue_xmit include/linux/netdevice.h:3053 [inline] tx+0x76/0x100 drivers/block/aoe/aoenet.c:63 kthread+0x1eb/0x3b0 drivers/block/aoe/aoecmd.c:1229 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308