last executing test programs: 2.80398837s ago: executing program 2 (id=336): pidfd_open(0x0, 0x0) 2.7501412s ago: executing program 2 (id=340): socket$inet6_dccp(0xa, 0x6, 0x0) 2.692133334s ago: executing program 2 (id=347): socket$nl_audit(0x10, 0x3, 0x9) 2.69193758s ago: executing program 2 (id=348): openat(0xffffffffffffff9c, &(0x7f0000000040)='/proc/thread-self/attr/current', 0x2, 0x0) 2.628620323s ago: executing program 4 (id=353): getdents(0xffffffffffffffff, &(0x7f0000000000), 0x0) 2.628545565s ago: executing program 2 (id=354): fsmount(0xffffffffffffffff, 0x0, 0x0) 2.628459587s ago: executing program 2 (id=355): pause() 2.628319413s ago: executing program 4 (id=356): openat(0xffffffffffffff9c, &(0x7f0000000040)='/dev/rfkill', 0x0, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000080)='/dev/rfkill', 0x1, 0x0) openat(0xffffffffffffff9c, &(0x7f00000000c0)='/dev/rfkill', 0x2, 0x0) openat(0xffffffffffffff9c, &(0x7f0000000100)='/dev/rfkill', 0x800, 0x0) 2.614291802s ago: executing program 4 (id=360): time(&(0x7f0000000000)) 2.564476966s ago: executing program 4 (id=362): rt_sigreturn() 2.432420332s ago: executing program 1 (id=378): execve(&(0x7f0000000000), &(0x7f0000000000), &(0x7f0000000000)) 2.432029565s ago: executing program 1 (id=381): syz_init_net_socket$nl_rdma(0x10, 0x3, 0x14) 2.360643426s ago: executing program 1 (id=385): getrlimit(0x0, &(0x7f0000000000)) 2.360084234s ago: executing program 1 (id=388): openat(0xffffffffffffff9c, &(0x7f0000000040)='/dev/video0', 0x2, 0x0) 2.34081989s ago: executing program 0 (id=391): syslog(0x0, 0x0, 0x0) 2.340710196s ago: executing program 1 (id=392): sched_getattr(0x0, &(0x7f0000000000), 0x0, 0x0) 2.230153538s ago: executing program 3 (id=397): syz_open_dev$sndhw(&(0x7f0000000040), 0x0, 0x0) syz_open_dev$sndhw(&(0x7f0000000080), 0x0, 0x1) syz_open_dev$sndhw(&(0x7f00000000c0), 0x0, 0x2) syz_open_dev$sndhw(&(0x7f0000000100), 0x0, 0x800) syz_open_dev$sndhw(&(0x7f0000000140), 0xa, 0x0) syz_open_dev$sndhw(&(0x7f0000000180), 0xa, 0x1) syz_open_dev$sndhw(&(0x7f00000001c0), 0xa, 0x2) syz_open_dev$sndhw(&(0x7f0000000200), 0xa, 0x800) syz_open_dev$sndhw(&(0x7f0000000240), 0x14, 0x0) syz_open_dev$sndhw(&(0x7f0000000280), 0x14, 0x1) syz_open_dev$sndhw(&(0x7f00000002c0), 0x14, 0x2) syz_open_dev$sndhw(&(0x7f0000000300), 0x14, 0x800) syz_open_dev$sndhw(&(0x7f0000000340), 0x1e, 0x0) syz_open_dev$sndhw(&(0x7f0000000380), 0x1e, 0x1) syz_open_dev$sndhw(&(0x7f00000003c0), 0x1e, 0x2) syz_open_dev$sndhw(&(0x7f0000000400), 0x1e, 0x800) syz_open_dev$sndhw(&(0x7f0000000440), 0x28, 0x0) syz_open_dev$sndhw(&(0x7f0000000480), 0x28, 0x1) syz_open_dev$sndhw(&(0x7f00000004c0), 0x28, 0x2) syz_open_dev$sndhw(&(0x7f0000000500), 0x28, 0x800) 2.148763771s ago: executing program 3 (id=398): tee(0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0x0) 2.122610341s ago: executing program 3 (id=399): lremovexattr(&(0x7f0000000000), &(0x7f0000000000)) 2.078798591s ago: executing program 3 (id=400): clock_adjtime(0x0, &(0x7f0000000000)) 2.012790094s ago: executing program 3 (id=401): iopl(0x0) 1.697176983s ago: executing program 0 (id=395): mmap(&(0x7efffffff000/0x1000)=nil, 0x1000, 0x0, 0x32, 0xffffffffffffffff, 0x0) mmap(&(0x7f0000000000/0x1000000)=nil, 0x1000000, 0x7, 0x32, 0xffffffffffffffff, 0x0) mmap(&(0x7f0001000000/0x1000)=nil, 0x1000, 0x0, 0x32, 0xffffffffffffffff, 0x0) 1.247141626s ago: executing program 1 (id=394): mmap(&(0x7efffffff000/0x1000)=nil, 0x1000, 0x0, 0x32, 0xffffffffffffffff, 0x0) mmap(&(0x7f0000000000/0x1000000)=nil, 0x1000000, 0x7, 0x32, 0xffffffffffffffff, 0x0) mmap(&(0x7f0001000000/0x1000)=nil, 0x1000, 0x0, 0x32, 0xffffffffffffffff, 0x0) 1.025695215s ago: executing program 0 (id=403): sysinfo(&(0x7f0000000000)) 933.119335ms ago: executing program 3 (id=402): mmap(&(0x7efffffff000/0x1000)=nil, 0x1000, 0x0, 0x32, 0xffffffffffffffff, 0x0) mmap(&(0x7f0000000000/0x1000000)=nil, 0x1000000, 0x7, 0x32, 0xffffffffffffffff, 0x0) mmap(&(0x7f0001000000/0x1000)=nil, 0x1000, 0x0, 0x32, 0xffffffffffffffff, 0x0) 555.46289ms ago: executing program 0 (id=405): mmap(&(0x7efffffff000/0x1000)=nil, 0x1000, 0x0, 0x32, 0xffffffffffffffff, 0x0) mmap(&(0x7f0000000000/0x1000000)=nil, 0x1000000, 0x7, 0x32, 0xffffffffffffffff, 0x0) mmap(&(0x7f0001000000/0x1000)=nil, 0x1000, 0x0, 0x32, 0xffffffffffffffff, 0x0) 457.645798ms ago: executing program 4 (id=408): socket$inet6_icmp_raw(0xa, 0x3, 0x3a) 58.701666ms ago: executing program 0 (id=407): shmdt(0x0) 32.846854ms ago: executing program 0 (id=409): syz_open_dev$usbfs(&(0x7f0000000040), 0x1, 0x0) syz_open_dev$usbfs(&(0x7f0000000080), 0x1, 0x1) syz_open_dev$usbfs(&(0x7f00000000c0), 0x1, 0x2) syz_open_dev$usbfs(&(0x7f0000000100), 0x1, 0x800) syz_open_dev$usbfs(&(0x7f0000000140), 0xb, 0x0) syz_open_dev$usbfs(&(0x7f0000000180), 0xb, 0x1) syz_open_dev$usbfs(&(0x7f00000001c0), 0xb, 0x2) syz_open_dev$usbfs(&(0x7f0000000200), 0xb, 0x800) syz_open_dev$usbfs(&(0x7f0000000240), 0x15, 0x0) syz_open_dev$usbfs(&(0x7f0000000280), 0x15, 0x1) syz_open_dev$usbfs(&(0x7f00000002c0), 0x15, 0x2) syz_open_dev$usbfs(&(0x7f0000000300), 0x15, 0x800) syz_open_dev$usbfs(&(0x7f0000000340), 0x1f, 0x0) syz_open_dev$usbfs(&(0x7f0000000380), 0x1f, 0x1) syz_open_dev$usbfs(&(0x7f00000003c0), 0x1f, 0x2) syz_open_dev$usbfs(&(0x7f0000000400), 0x1f, 0x800) syz_open_dev$usbfs(&(0x7f0000000440), 0x29, 0x0) syz_open_dev$usbfs(&(0x7f0000000480), 0x29, 0x1) syz_open_dev$usbfs(&(0x7f00000004c0), 0x29, 0x2) syz_open_dev$usbfs(&(0x7f0000000500), 0x29, 0x800) 0s ago: executing program 4 (id=410): syz_open_dev$sndpcmp(&(0x7f0000000040), 0x3, 0x0) syz_open_dev$sndpcmp(&(0x7f0000000080), 0x3, 0x1) syz_open_dev$sndpcmp(&(0x7f00000000c0), 0x3, 0x2) syz_open_dev$sndpcmp(&(0x7f0000000100), 0x3, 0x800) syz_open_dev$sndpcmp(&(0x7f0000000140), 0xd, 0x0) syz_open_dev$sndpcmp(&(0x7f0000000180), 0xd, 0x1) syz_open_dev$sndpcmp(&(0x7f00000001c0), 0xd, 0x2) syz_open_dev$sndpcmp(&(0x7f0000000200), 0xd, 0x800) syz_open_dev$sndpcmp(&(0x7f0000000240), 0x17, 0x0) syz_open_dev$sndpcmp(&(0x7f0000000280), 0x17, 0x1) syz_open_dev$sndpcmp(&(0x7f00000002c0), 0x17, 0x2) syz_open_dev$sndpcmp(&(0x7f0000000300), 0x17, 0x800) syz_open_dev$sndpcmp(&(0x7f0000000340), 0x21, 0x0) syz_open_dev$sndpcmp(&(0x7f0000000380), 0x21, 0x1) syz_open_dev$sndpcmp(&(0x7f00000003c0), 0x21, 0x2) syz_open_dev$sndpcmp(&(0x7f0000000400), 0x21, 0x800) syz_open_dev$sndpcmp(&(0x7f0000000440), 0x2b, 0x0) syz_open_dev$sndpcmp(&(0x7f0000000480), 0x2b, 0x1) syz_open_dev$sndpcmp(&(0x7f00000004c0), 0x2b, 0x2) syz_open_dev$sndpcmp(&(0x7f0000000500), 0x2b, 0x800) kernel console output (not intermixed with test programs): Warning: Permanently added '10.128.1.142' (ED25519) to the list of known hosts. [ 59.980865][ T5808] cgroup: Unknown subsys name 'net' [ 60.173784][ T5808] cgroup: Unknown subsys name 'cpuset' [ 60.183156][ T5808] cgroup: Unknown subsys name 'rlimit' Setting up swapspace version 1, size = 127995904 bytes [ 61.465731][ T5808] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 64.478395][ T6014] UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list [ 65.013520][ T6097] UDPLite: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list [ 66.051313][ T6228] Bluetooth: hci0: unexpected cc 0x0c03 length: 249 > 1 [ 66.065477][ T6228] Bluetooth: hci0: unexpected cc 0x1003 length: 249 > 9 [ 66.073531][ T6228] Bluetooth: hci0: unexpected cc 0x1001 length: 249 > 9 [ 66.081725][ T6228] Bluetooth: hci0: unexpected cc 0x0c23 length: 249 > 4 [ 66.090720][ T6228] Bluetooth: hci0: unexpected cc 0x0c25 length: 249 > 3 [ 66.099135][ T6228] Bluetooth: hci0: unexpected cc 0x0c38 length: 249 > 2 [ 66.425557][ T62] wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 [ 66.440287][ T62] wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 [ 66.475539][ T6227] soft_limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality. [ 66.551991][ T65] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 [ 66.581144][ T65] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 [ 68.247591][ T35] [ 68.249972][ T35] ====================================================== [ 68.257029][ T35] WARNING: possible circular locking dependency detected [ 68.264150][ T35] 6.13.0-syzkaller-05474-g113691ce9f32 #0 Not tainted [ 68.271014][ T35] ------------------------------------------------------ [ 68.278220][ T35] kworker/u8:2/35 is trying to acquire lock: [ 68.284213][ T35] ffffffff8fcb1c88 (rtnl_mutex){+.+.}-{4:4}, at: unregister_netdevice_many_notify+0xac2/0x2030 [ 68.294622][ T35] [ 68.294622][ T35] but task is already holding lock: [ 68.302342][ T35] ffff88806d788768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: ieee80211_remove_interfaces+0x129/0x700 [ 68.312718][ T35] [ 68.312718][ T35] which lock already depends on the new lock. [ 68.312718][ T35] [ 68.323109][ T35] [ 68.323109][ T35] the existing dependency chain (in reverse order) is: [ 68.332120][ T35] [ 68.332120][ T35] -> #1 (&rdev->wiphy.mtx){+.+.}-{4:4}: [ 68.339846][ T35] lock_acquire+0x1ed/0x550 [ 68.344861][ T35] __mutex_lock+0x19c/0x1010 [ 68.349966][ T35] wiphy_register+0x1a49/0x27b0 [ 68.355419][ T35] ieee80211_register_hw+0x354e/0x4240 [ 68.361474][ T35] mac80211_hwsim_new_radio+0x2a9f/0x4a90 [ 68.367793][ T35] init_mac80211_hwsim+0x87a/0xb00 [ 68.373414][ T35] do_one_initcall+0x248/0x870 [ 68.378862][ T35] do_initcall_level+0x157/0x210 [ 68.384312][ T35] do_initcalls+0x3f/0x80 [ 68.389236][ T35] kernel_init_freeable+0x435/0x5d0 [ 68.395032][ T35] kernel_init+0x1d/0x2b0 [ 68.399895][ T35] ret_from_fork+0x4b/0x80 [ 68.405013][ T35] ret_from_fork_asm+0x1a/0x30 [ 68.410296][ T35] [ 68.410296][ T35] -> #0 (rtnl_mutex){+.+.}-{4:4}: [ 68.417591][ T35] validate_chain+0x18ef/0x5920 [ 68.422955][ T35] __lock_acquire+0x1397/0x2100 [ 68.428407][ T35] lock_acquire+0x1ed/0x550 [ 68.433425][ T35] __mutex_lock+0x19c/0x1010 [ 68.438526][ T35] unregister_netdevice_many_notify+0xac2/0x2030 [ 68.445457][ T35] unregister_netdevice_queue+0x303/0x370 [ 68.451698][ T35] _cfg80211_unregister_wdev+0x163/0x590 [ 68.457853][ T35] ieee80211_remove_interfaces+0x4ef/0x700 [ 68.464179][ T35] ieee80211_unregister_hw+0x5d/0x2c0 [ 68.470067][ T35] mac80211_hwsim_del_radio+0x2c4/0x4c0 [ 68.476129][ T35] hwsim_exit_net+0x5c1/0x670 [ 68.481335][ T35] cleanup_net+0x812/0xd60 [ 68.486344][ T35] process_scheduled_works+0xa66/0x1840 [ 68.492398][ T35] worker_thread+0x870/0xd30 [ 68.497495][ T35] kthread+0x7a9/0x920 [ 68.502080][ T35] ret_from_fork+0x4b/0x80 [ 68.507008][ T35] ret_from_fork_asm+0x1a/0x30 [ 68.512283][ T35] [ 68.512283][ T35] other info that might help us debug this: [ 68.512283][ T35] [ 68.522615][ T35] Possible unsafe locking scenario: [ 68.522615][ T35] [ 68.530064][ T35] CPU0 CPU1 [ 68.535505][ T35] ---- ---- [ 68.540866][ T35] lock(&rdev->wiphy.mtx); [ 68.545364][ T35] lock(rtnl_mutex); [ 68.551945][ T35] lock(&rdev->wiphy.mtx); [ 68.559056][ T35] lock(rtnl_mutex); [ 68.563055][ T35] [ 68.563055][ T35] *** DEADLOCK *** [ 68.563055][ T35] [ 68.571275][ T35] 4 locks held by kworker/u8:2/35: [ 68.576724][ T35] #0: ffff88801baf3148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 [ 68.587744][ T35] #1: ffffc90000ab7c60 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 SYZFAIL: failed to recv rpc fd=3 want=4 recv=0 n=0 (errno 9: Bad file descriptor) [ 68.598349][ T35] #2: ffffffff8fca56d0 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x17a/0xd60 [ 68.607739][ T35] #3: ffff88806d788768 (&rdev->wiphy.mtx){+.+.}-{4:4}, at: ieee80211_remove_interfaces+0x129/0x700 [ 68.618521][ T35] [ 68.618521][ T35] stack backtrace: [ 68.624427][ T35] CPU: 0 UID: 0 PID: 35 Comm: kworker/u8:2 Not tainted 6.13.0-syzkaller-05474-g113691ce9f32 #0 [ 68.624442][ T35] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 68.624454][ T35] Workqueue: netns cleanup_net [ 68.624472][ T35] Call Trace: [ 68.624480][ T35] [ 68.624486][ T35] dump_stack_lvl+0x241/0x360 [ 68.624500][ T35] ? __pfx_dump_stack_lvl+0x10/0x10 [ 68.624511][ T35] ? __pfx__printk+0x10/0x10 [ 68.624532][ T35] print_circular_bug+0x13a/0x1b0 [ 68.624552][ T35] check_noncircular+0x36a/0x4a0 [ 68.624570][ T35] ? __pfx_check_noncircular+0x10/0x10 [ 68.624588][ T35] ? lockdep_lock+0x123/0x2b0 [ 68.624603][ T35] ? mark_lock+0x9a/0x360 [ 68.624619][ T35] validate_chain+0x18ef/0x5920 [ 68.624640][ T35] ? lockdep_hardirqs_on+0x99/0x150 [ 68.624657][ T35] ? __pfx_validate_chain+0x10/0x10 [ 68.624677][ T35] ? __schedule+0x1822/0x4b90 [ 68.624695][ T35] ? __pfx___schedule+0x10/0x10 [ 68.624711][ T35] ? mark_lock+0x9a/0x360 [ 68.624727][ T35] __lock_acquire+0x1397/0x2100 [ 68.624747][ T35] lock_acquire+0x1ed/0x550 [ 68.624761][ T35] ? unregister_netdevice_many_notify+0xac2/0x2030 [ 68.624782][ T35] ? __pfx_lock_acquire+0x10/0x10 [ 68.624798][ T35] ? __pfx___might_resched+0x10/0x10 [ 68.624813][ T35] ? kthread_queue_work+0x110/0x180 [ 68.624831][ T35] __mutex_lock+0x19c/0x1010 [ 68.624845][ T35] ? unregister_netdevice_many_notify+0xac2/0x2030 [ 68.624866][ T35] ? unregister_netdevice_many_notify+0xac2/0x2030 [ 68.624884][ T35] ? __pfx___mutex_lock+0x10/0x10 [ 68.624898][ T35] ? __pfx___might_resched+0x10/0x10 [ 68.624912][ T35] ? unregister_netdevice_many_notify+0x9fa/0x2030 [ 68.624931][ T35] ? unregister_netdevice_many_notify+0x9fa/0x2030 [ 68.624950][ T35] unregister_netdevice_many_notify+0xac2/0x2030 [ 68.624969][ T35] ? mark_lock+0x9a/0x360 [ 68.624988][ T35] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 68.625019][ T35] ? kernfs_remove_by_name_ns+0x11b/0x160 [ 68.625041][ T35] ? __pfx_lock_release+0x10/0x10 [ 68.625062][ T35] unregister_netdevice_queue+0x303/0x370 [ 68.625080][ T35] ? __pfx_up_write+0x10/0x10 [ 68.625091][ T35] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 68.625110][ T35] ? kernfs_remove_by_name_ns+0x11b/0x160 [ 68.625126][ T35] _cfg80211_unregister_wdev+0x163/0x590 [ 68.625142][ T35] ieee80211_remove_interfaces+0x4ef/0x700 [ 68.625161][ T35] ? __pfx_ieee80211_remove_interfaces+0x10/0x10 [ 68.625178][ T35] ? rcu_is_watching+0x15/0xb0 [ 68.625199][ T35] ieee80211_unregister_hw+0x5d/0x2c0 [ 68.625216][ T35] mac80211_hwsim_del_radio+0x2c4/0x4c0 [ 68.625236][ T35] ? __pfx_mac80211_hwsim_del_radio+0x10/0x10 [ 68.625256][ T35] hwsim_exit_net+0x5c1/0x670 [ 68.625273][ T35] ? __pfx_hwsim_exit_net+0x10/0x10 [ 68.625288][ T35] ? __ip_vs_dev_cleanup_batch+0x239/0x260 [ 68.625310][ T35] cleanup_net+0x812/0xd60 [ 68.625326][ T35] ? __pfx_cleanup_net+0x10/0x10 [ 68.625343][ T35] ? process_scheduled_works+0x976/0x1840 [ 68.625356][ T35] process_scheduled_works+0xa66/0x1840 [ 68.625378][ T35] ? __pfx_process_scheduled_works+0x10/0x10 [ 68.625393][ T35] ? assign_work+0x364/0x3d0 [ 68.625406][ T35] worker_thread+0x870/0xd30 [ 68.625422][ T35] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 68.625436][ T35] ? __kthread_parkme+0x169/0x1d0 [ 68.625451][ T35] ? __pfx_worker_thread+0x10/0x10 [ 68.625464][ T35] kthread+0x7a9/0x920 [ 68.625479][ T35] ? __pfx_kthread+0x10/0x10 [ 68.625494][ T35] ? __pfx_worker_thread+0x10/0x10 [ 68.625507][ T35] ? __pfx_kthread+0x10/0x10 [ 68.625521][ T35] ? __pfx_kthread+0x10/0x10 [ 68.625536][ T35] ? __pfx_kthread+0x10/0x10 [ 68.625550][ T35] ? _raw_spin_unlock_irq+0x23/0x50 [ 68.625561][ T35] ? lockdep_hardirqs_on+0x99/0x150 [ 68.625574][ T35] ? __pfx_kthread+0x10/0x10 [ 68.625589][ T35] ret_from_fork+0x4b/0x80 [ 68.625603][ T35] ? __pfx_kthread+0x10/0x10 [ 68.625618][ T35] ret_from_fork_asm+0x1a/0x30 [ 68.625635][ T35] [ 69.016763][ C0] vkms_vblank_simulate: vblank timer overrun [ 71.742101][ T1295] ieee802154 phy0 wpan0: encryption failed: -22 [ 71.748648][ T1295] ieee802154 phy1 wpan1: encryption failed: -22