INFO: task syz-executor.3:29566 blocked for more than 143 seconds. Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:21736 pid:29566 ppid:1 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 unregister_netdevice_notifier+0x92/0x400 net/core/dev.c:1757 devlink_free+0x279/0x430 net/devlink/core.c:269 nsim_drv_remove+0x139/0x160 drivers/net/netdevsim/dev.c:1687 device_remove drivers/base/dd.c:567 [inline] __device_release_driver drivers/base/dd.c:1272 [inline] device_release_driver_internal+0x4a5/0x7a0 drivers/base/dd.c:1295 bus_remove_device+0x341/0x410 drivers/base/bus.c:574 device_del+0x538/0x9c0 drivers/base/core.c:3814 device_unregister+0x20/0xc0 drivers/base/core.c:3844 nsim_bus_dev_del drivers/net/netdevsim/bus.c:310 [inline] del_device_store+0x363/0x480 drivers/net/netdevsim/bus.c:219 kernfs_fop_write_iter+0x3a6/0x4f0 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7ec/0xc10 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 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:0x7fc6cac3deef RSP: 002b:00007ffe03235330 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fc6cac3deef RDX: 0000000000000001 RSI: 00007ffe03235380 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007ffe032352d0 R10: 0000000000000000 R11: 0000000000000293 R12: 00007fc6cace78b6 R13: 00007ffe03235380 R14: 0000000000000000 R15: 00007ffe03235a50 INFO: task syz-executor.5:29571 blocked for more than 143 seconds. Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:21736 pid:29571 ppid:1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799 del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:209 kernfs_fop_write_iter+0x3a6/0x4f0 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x7ec/0xc10 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 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:0x7fb13423deef RSP: 002b:00007ffcc0d0ba60 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fb13423deef RDX: 0000000000000001 RSI: 00007ffcc0d0bab0 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007ffcc0d0ba00 R10: 0000000000000000 R11: 0000000000000293 R12: 00007fb1342e78b6 R13: 00007ffcc0d0bab0 R14: 0000000000000000 R15: 00007ffcc0d0c180 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8cf277b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8cf27b70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8cf275e0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4743: #0: ffff88814a74c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2176 3 locks held by kworker/u4:10/5232: #0: ffff88801425b138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2378 #1: ffffc9000510fd20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2380 #2: ffffffff8e08f650 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf5/0xb80 net/core/net_namespace.c:576 2 locks held by kworker/u4:39/11090: 6 locks held by syz-executor.3/29566: #0: ffff88802890e460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x27f/0xc10 fs/read_write.c:580 #1: ffff8880365c3088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x4f0 fs/kernfs/file.c:325 #2: ffff888142323da0 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x4f0 fs/kernfs/file.c:326 #3: ffffffff8da11248 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:209 #4: ffff8880370ac0e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline] #4: ffff8880370ac0e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff8880370ac0e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xce/0x7a0 drivers/base/dd.c:1292 #5: ffffffff8e08f650 (pernet_ops_rwsem){++++}-{3:3}, at: unregister_netdevice_notifier+0x92/0x400 net/core/dev.c:1757 4 locks held by syz-executor.5/29571: #0: ffff88802890e460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x27f/0xc10 fs/read_write.c:580 #1: ffff8880992f2088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x4f0 fs/kernfs/file.c:325 #2: ffff888142323da0 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x4f0 fs/kernfs/file.c:326 #3: ffffffff8da11248 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:209 4 locks held by syz-executor.2/29578: #0: ffff88802890e460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x27f/0xc10 fs/read_write.c:580 #1: ffff88808d571088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x4f0 fs/kernfs/file.c:325 #2: ffff888142323da0 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x4f0 fs/kernfs/file.c:326 #3: ffffffff8da11248 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:209 4 locks held by syz-executor.1/29580: #0: ffff88802890e460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x27f/0xc10 fs/read_write.c:580 #1: ffff88808a901888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1eb/0x4f0 fs/kernfs/file.c:325 #2: ffff888142323da0 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20f/0x4f0 fs/kernfs/file.c:326 #3: ffffffff8da11248 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:209 1 lock held by syz-executor.3/30332: #0: ffffffff8e08f650 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4af/0x790 net/core/net_namespace.c:487 1 lock held by syz-executor.5/30337: #0: ffffffff8e08f650 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4af/0x790 net/core/net_namespace.c:487 1 lock held by syz-executor.2/30339: #0: ffffffff8e08f650 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4af/0x790 net/core/net_namespace.c:487 1 lock held by syz-executor.1/30341: #0: ffffffff8e08f650 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4af/0x790 net/core/net_namespace.c:487 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/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+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 6994 Comm: kworker/u4:19 Not tainted 6.3.0-syzkaller-11301-g1ae78a14516b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: phy11 ieee80211_iface_work RIP: 0010:stack_trace_consume_entry+0xcf/0x280 kernel/stacktrace.c:93 Code: 10 00 74 26 4c 89 0c 24 48 89 df 49 89 f5 4d 89 c6 e8 05 a9 69 00 4d 89 f0 4c 8b 0c 24 4c 89 ee 48 ba 00 00 00 00 00 fc ff df <48> 8b 1b 45 8d 70 01 41 0f b6 04 17 84 c0 0f 85 2d 01 00 00 45 89 RSP: 0018:ffffc9000b547650 EFLAGS: 00000246 RAX: 1ffff920016a8ef0 RBX: ffffc9000b547780 RCX: ffffffff8f971000 RDX: dffffc0000000000 RSI: ffffffff815cc888 RDI: ffffc9000b54778c RBP: ffffc9000b547788 R08: 0000000000000009 R09: ffffc9000b547790 R10: ffffc9000b5476f0 R11: dffffc0000000001 R12: 1ffff920016a8ef1 R13: 1ffff920016a8ef1 R14: 0000000000000000 R15: 1ffff920016a8ef2 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00357f000 CR3: 000000000cd30000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x105/0x140 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:521 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook mm/slub.c:1807 [inline] slab_free mm/slub.c:3786 [inline] kmem_cache_free+0x297/0x520 mm/slub.c:3808 skb_kfree_head net/core/skbuff.c:903 [inline] skb_free_head net/core/skbuff.c:918 [inline] skb_release_data+0x637/0x850 net/core/skbuff.c:948 skb_release_all net/core/skbuff.c:1014 [inline] __kfree_skb net/core/skbuff.c:1028 [inline] kfree_skb_reason+0x193/0x380 net/core/skbuff.c:1064 kfree_skb include/linux/skbuff.h:1236 [inline] ieee80211_iface_work+0x264/0xd00 net/mac80211/iface.c:1650 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2405 worker_thread+0xa63/0x1210 kernel/workqueue.c:2552 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308