===================================================== WARNING: SOFTIRQ-safe -> SOFTIRQ-unsafe lock order detected syzkaller #0 Tainted: G L ----------------------------------------------------- kworker/1:6/5690 [HC0[0]:SC0[6]:HE1:SE0] is trying to acquire: ffff0000f4246720 (&r->consumer_lock#3){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:347 [inline] ffff0000f4246720 (&r->consumer_lock#3){+.+.}-{3:3}, at: ptr_ring_consume include/linux/ptr_ring.h:363 [inline] ffff0000f4246720 (&r->consumer_lock#3){+.+.}-{3:3}, at: ptr_ring_cleanup include/linux/ptr_ring.h:700 [inline] ffff0000f4246720 (&r->consumer_lock#3){+.+.}-{3:3}, at: tap_sock_destruct+0x40/0x3f8 drivers/net/tap.c:444 and this task is already holding: ffff0000ca3dc6d0 (&peer->endpoint_lock){++-.}-{3:3}, at: wg_socket_send_skb_to_peer+0x5c/0x19c drivers/net/wireguard/socket.c:172 which would create a new lock dependency: (&peer->endpoint_lock){++-.}-{3:3} -> (&r->consumer_lock#3){+.+.}-{3:3} but this new dependency connects a SOFTIRQ-irq-safe lock: (&peer->endpoint_lock){++-.}-{3:3} ... which became SOFTIRQ-irq-safe at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_write_lock_bh include/linux/rwlock_api_smp.h:221 [inline] _raw_write_lock_bh+0x48/0x60 kernel/locking/spinlock.c:369 wg_socket_clear_peer_endpoint_src+0x20/0x50 drivers/net/wireguard/socket.c:309 wg_expired_retransmit_handshake+0xc8/0x2c0 drivers/net/wireguard/timers.c:73 call_timer_fn+0x198/0x7f4 kernel/time/timer.c:1749 expire_timers kernel/time/timer.c:1800 [inline] __run_timers kernel/time/timer.c:2375 [inline] __run_timer_base+0x530/0x744 kernel/time/timer.c:2387 run_timer_base+0x84/0x1b8 kernel/time/timer.c:2396 run_timer_softirq+0x20/0x48 kernel/time/timer.c:2406 handle_softirqs+0x36c/0xce0 kernel/softirq.c:669 __do_softirq+0x14/0x20 kernel/softirq.c:703 ____do_softirq+0x10/0x1c arch/arm64/kernel/irq.c:78 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:901 do_softirq_own_stack+0x1c/0x28 arch/arm64/kernel/irq.c:83 invoke_softirq kernel/softirq.c:549 [inline] __irq_exit_rcu+0x10c/0x324 kernel/softirq.c:786 irq_exit_rcu+0x14/0x84 kernel/softirq.c:809 __el1_irq arch/arm64/kernel/entry-common.c:570 [inline] el1_interrupt+0x40/0x60 arch/arm64/kernel/entry-common.c:582 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:587 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:602 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:175 [inline] arch_local_irq_restore arch/arm64/include/asm/irqflags.h:195 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] _raw_spin_unlock_irqrestore+0x44/0x98 kernel/locking/spinlock.c:221 debug_object_free+0x280/0x2ac lib/debugobjects.c:1038 debug_percpu_counter_deactivate lib/percpu_counter.c:50 [inline] percpu_counter_destroy_many+0xa0/0x274 lib/percpu_counter.c:239 percpu_counter_destroy include/linux/percpu_counter.h:52 [inline] ext4_percpu_param_destroy+0x24/0x6c fs/ext4/super.c:1261 ext4_put_super+0x4ac/0x8ec fs/ext4/super.c:1361 generic_shutdown_super+0x13c/0x2c0 fs/super.c:723 kill_block_super+0x48/0xa4 fs/super.c:1852 ext4_kill_sb+0x68/0xa8 fs/ext4/super.c:7578 deactivate_locked_super+0xcc/0x128 fs/super.c:558 deactivate_super+0xd4/0xf4 fs/super.c:586 cleanup_mnt+0x190/0x220 fs/namespace.c:1396 __cleanup_mnt+0x20/0x30 fs/namespace.c:1403 task_work_run+0x1cc/0x25c kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x10c/0x17c kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] arm64_syscall_exit_to_user_mode arch/arm64/kernel/entry-common.c:147 [inline] el0_svc+0x12c/0x1d8 arch/arm64/kernel/entry-common.c:798 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 to a SOFTIRQ-irq-unsafe lock: (&r->consumer_lock#3){+.+.}-{3:3} ... which became SOFTIRQ-irq-unsafe at: ... lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ptr_ring_empty include/linux/ptr_ring.h:227 [inline] tap_poll+0xb0/0x30c drivers/net/tap.c:532 vfs_poll include/linux/poll.h:82 [inline] vhost_poll_start+0xb4/0x230 drivers/vhost/vhost.c:221 vhost_net_enable_vq+0xc0/0xfc drivers/vhost/net.c:472 vhost_net_set_backend drivers/vhost/net.c:1595 [inline] vhost_net_ioctl+0xcb0/0x11d8 drivers/vhost/net.c:1765 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 other info that might help us debug this: Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&r->consumer_lock#3); local_irq_disable(); lock(&peer->endpoint_lock); lock(&r->consumer_lock#3); lock(&peer->endpoint_lock); *** DEADLOCK *** locks held by kworker/1:6/5690: 7, last CPU#1: #0: ffff0000f3f5b548 ((wq_completion)wg-crypt-wg0#8){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3470 [inline] #0: ffff0000f3f5b548 ((wq_completion)wg-crypt-wg0#8){+.+.}-{0:0}, at: process_scheduled_works+0x8c8/0x1250 kernel/workqueue.c:3578 #1: ffff80009a6e7c20 ((work_completion)(&peer->transmit_packet_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3470 [inline] #1: ffff80009a6e7c20 ((work_completion)(&peer->transmit_packet_work)){+.+.}-{0:0}, at: process_scheduled_works+0x8d0/0x1250 kernel/workqueue.c:3578 #2: ffff0000ca3dc6d0 (&peer->endpoint_lock){++-.}-{3:3}, at: wg_socket_send_skb_to_peer+0x5c/0x19c drivers/net/wireguard/socket.c:172 #3: ffff800089aa5800 (rcu_read_lock_bh){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #3: ffff800089aa5800 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:905 [inline] #3: ffff800089aa5800 (rcu_read_lock_bh){....}-{1:3}, at: send4+0x1c0/0xcf4 drivers/net/wireguard/socket.c:38 #4: ffff800089aa57a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #4: ffff800089aa57a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #4: ffff800089aa57a0 (rcu_read_lock){....}-{1:3}, at: ip_output+0x74/0x400 net/ipv4/ip_output.c:432 #5: ffff800089aa57a0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #5: ffff800089aa57a0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #5: ffff800089aa57a0 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x410/0xee4 net/ipv4/ip_output.c:229 #6: ffff800089aa5800 (rcu_read_lock_bh){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #6: ffff800089aa5800 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:905 [inline] #6: ffff800089aa5800 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x220/0x2a68 net/core/dev.c:5000 the dependencies between SOFTIRQ-irq-safe lock and the holding lock: -> (&peer->endpoint_lock){++-.}-{3:3} { HARDIRQ-ON-W at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_write_lock_bh include/linux/rwlock_api_smp.h:221 [inline] _raw_write_lock_bh+0x48/0x60 kernel/locking/spinlock.c:369 wg_socket_set_peer_endpoint+0x3e8/0x760 drivers/net/wireguard/socket.c:282 set_peer drivers/net/wireguard/netlink.c:-1 [inline] wg_set_device_doit+0xd8c/0x1a20 drivers/net/wireguard/netlink.c:569 genl_family_rcv_msg_doit+0x1e4/0x2d4 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x43c/0x620 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x238/0x414 net/netlink/af_netlink.c:2584 genl_rcv+0x38/0x50 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x73c/0x934 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x670/0x98c net/netlink/af_netlink.c:1920 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg+0xc8/0x188 net/socket.c:818 __sys_sendto+0x250/0x328 net/socket.c:2283 __do_sys_sendto net/socket.c:2290 [inline] __se_sys_sendto net/socket.c:2286 [inline] __arm64_sys_sendto+0xec/0x10c net/socket.c:2286 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 HARDIRQ-ON-R at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_read_lock_bh include/linux/rwlock_api_smp.h:192 [inline] _raw_read_lock_bh+0x54/0x6c kernel/locking/spinlock.c:287 wg_socket_send_skb_to_peer+0x5c/0x19c drivers/net/wireguard/socket.c:172 wg_socket_send_buffer_to_peer+0x108/0x174 drivers/net/wireguard/socket.c:199 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x1c0/0x2d8 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3578 worker_thread+0x798/0xbd0 kernel/workqueue.c:3659 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 IN-SOFTIRQ-W at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_write_lock_bh include/linux/rwlock_api_smp.h:221 [inline] _raw_write_lock_bh+0x48/0x60 kernel/locking/spinlock.c:369 wg_socket_clear_peer_endpoint_src+0x20/0x50 drivers/net/wireguard/socket.c:309 wg_expired_retransmit_handshake+0xc8/0x2c0 drivers/net/wireguard/timers.c:73 call_timer_fn+0x198/0x7f4 kernel/time/timer.c:1749 expire_timers kernel/time/timer.c:1800 [inline] __run_timers kernel/time/timer.c:2375 [inline] __run_timer_base+0x530/0x744 kernel/time/timer.c:2387 run_timer_base+0x84/0x1b8 kernel/time/timer.c:2396 run_timer_softirq+0x20/0x48 kernel/time/timer.c:2406 handle_softirqs+0x36c/0xce0 kernel/softirq.c:669 __do_softirq+0x14/0x20 kernel/softirq.c:703 ____do_softirq+0x10/0x1c arch/arm64/kernel/irq.c:78 call_on_irq_stack+0x30/0x48 arch/arm64/kernel/entry.S:901 do_softirq_own_stack+0x1c/0x28 arch/arm64/kernel/irq.c:83 invoke_softirq kernel/softirq.c:549 [inline] __irq_exit_rcu+0x10c/0x324 kernel/softirq.c:786 irq_exit_rcu+0x14/0x84 kernel/softirq.c:809 __el1_irq arch/arm64/kernel/entry-common.c:570 [inline] el1_interrupt+0x40/0x60 arch/arm64/kernel/entry-common.c:582 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:587 el1h_64_irq+0x78/0x7c arch/arm64/kernel/entry.S:602 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:175 [inline] arch_local_irq_restore arch/arm64/include/asm/irqflags.h:195 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:210 [inline] _raw_spin_unlock_irqrestore+0x44/0x98 kernel/locking/spinlock.c:221 debug_object_free+0x280/0x2ac lib/debugobjects.c:1038 debug_percpu_counter_deactivate lib/percpu_counter.c:50 [inline] percpu_counter_destroy_many+0xa0/0x274 lib/percpu_counter.c:239 percpu_counter_destroy include/linux/percpu_counter.h:52 [inline] ext4_percpu_param_destroy+0x24/0x6c fs/ext4/super.c:1261 ext4_put_super+0x4ac/0x8ec fs/ext4/super.c:1361 generic_shutdown_super+0x13c/0x2c0 fs/super.c:723 kill_block_super+0x48/0xa4 fs/super.c:1852 ext4_kill_sb+0x68/0xa8 fs/ext4/super.c:7578 deactivate_locked_super+0xcc/0x128 fs/super.c:558 deactivate_super+0xd4/0xf4 fs/super.c:586 cleanup_mnt+0x190/0x220 fs/namespace.c:1396 __cleanup_mnt+0x20/0x30 fs/namespace.c:1403 task_work_run+0x1cc/0x25c kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x10c/0x17c kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] arm64_syscall_exit_to_user_mode arch/arm64/kernel/entry-common.c:147 [inline] el0_svc+0x12c/0x1d8 arch/arm64/kernel/entry-common.c:798 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 INITIAL USE at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_write_lock_bh include/linux/rwlock_api_smp.h:221 [inline] _raw_write_lock_bh+0x48/0x60 kernel/locking/spinlock.c:369 wg_socket_set_peer_endpoint+0x3e8/0x760 drivers/net/wireguard/socket.c:282 set_peer drivers/net/wireguard/netlink.c:-1 [inline] wg_set_device_doit+0xd8c/0x1a20 drivers/net/wireguard/netlink.c:569 genl_family_rcv_msg_doit+0x1e4/0x2d4 net/netlink/genetlink.c:1114 genl_family_rcv_msg net/netlink/genetlink.c:1194 [inline] genl_rcv_msg+0x43c/0x620 net/netlink/genetlink.c:1209 netlink_rcv_skb+0x238/0x414 net/netlink/af_netlink.c:2584 genl_rcv+0x38/0x50 net/netlink/genetlink.c:1218 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x73c/0x934 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x670/0x98c net/netlink/af_netlink.c:1920 sock_sendmsg_nosec net/socket.c:800 [inline] __sock_sendmsg+0xc8/0x188 net/socket.c:818 __sys_sendto+0x250/0x328 net/socket.c:2283 __do_sys_sendto net/socket.c:2290 [inline] __se_sys_sendto net/socket.c:2286 [inline] __arm64_sys_sendto+0xec/0x10c net/socket.c:2286 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 INITIAL READ USE at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_read_lock_bh include/linux/rwlock_api_smp.h:192 [inline] _raw_read_lock_bh+0x54/0x6c kernel/locking/spinlock.c:287 wg_socket_send_skb_to_peer+0x5c/0x19c drivers/net/wireguard/socket.c:172 wg_socket_send_buffer_to_peer+0x108/0x174 drivers/net/wireguard/socket.c:199 wg_packet_send_handshake_initiation drivers/net/wireguard/send.c:40 [inline] wg_packet_handshake_send_worker+0x1c0/0x2d8 drivers/net/wireguard/send.c:51 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3578 worker_thread+0x798/0xbd0 kernel/workqueue.c:3659 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 } ... key at: [] wg_peer_create.__key.5+0x0/0x20 the dependencies between the lock to be acquired and SOFTIRQ-irq-unsafe lock: -> (&r->consumer_lock#3){+.+.}-{3:3} { HARDIRQ-ON-W at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ptr_ring_empty include/linux/ptr_ring.h:227 [inline] tap_poll+0xb0/0x30c drivers/net/tap.c:532 vfs_poll include/linux/poll.h:82 [inline] vhost_poll_start+0xb4/0x230 drivers/vhost/vhost.c:221 vhost_net_enable_vq+0xc0/0xfc drivers/vhost/net.c:472 vhost_net_set_backend drivers/vhost/net.c:1595 [inline] vhost_net_ioctl+0xcb0/0x11d8 drivers/vhost/net.c:1765 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 SOFTIRQ-ON-W at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ptr_ring_empty include/linux/ptr_ring.h:227 [inline] tap_poll+0xb0/0x30c drivers/net/tap.c:532 vfs_poll include/linux/poll.h:82 [inline] vhost_poll_start+0xb4/0x230 drivers/vhost/vhost.c:221 vhost_net_enable_vq+0xc0/0xfc drivers/vhost/net.c:472 vhost_net_set_backend drivers/vhost/net.c:1595 [inline] vhost_net_ioctl+0xcb0/0x11d8 drivers/vhost/net.c:1765 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 INITIAL USE at: lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ptr_ring_empty include/linux/ptr_ring.h:227 [inline] tap_poll+0xb0/0x30c drivers/net/tap.c:532 vfs_poll include/linux/poll.h:82 [inline] vhost_poll_start+0xb4/0x230 drivers/vhost/vhost.c:221 vhost_net_enable_vq+0xc0/0xfc drivers/vhost/net.c:472 vhost_net_set_backend drivers/vhost/net.c:1595 [inline] vhost_net_ioctl+0xcb0/0x11d8 drivers/vhost/net.c:1765 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __arm64_sys_ioctl+0x154/0x1cc fs/ioctl.c:583 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:797 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:816 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 } ... key at: [] ptr_ring_init_noprof.__key.35+0x0/0x20 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ptr_ring_consume include/linux/ptr_ring.h:363 [inline] ptr_ring_cleanup include/linux/ptr_ring.h:700 [inline] tap_sock_destruct+0x40/0x3f8 drivers/net/tap.c:444 __sk_destruct+0x80/0x89c net/core/sock.c:2386 sk_destruct+0x8c/0xb8 net/core/sock.c:2448 __sk_free+0x264/0x328 net/core/sock.c:2459 sock_wfree+0x234/0x6fc net/core/sock.c:-1 skb_release_head_state+0x100/0x2e0 net/core/skbuff.c:1166 skb_release_all+0x28/0x7c net/core/skbuff.c:1186 __kfree_skb net/core/skbuff.c:1202 [inline] sk_skb_reason_drop+0x104/0x160 net/core/skbuff.c:1241 kfree_skb_reason include/linux/skbuff.h:1329 [inline] __tcf_kfree_skb_list+0x154/0x37c net/sched/sch_generic.c:59 tcf_kfree_skb_list include/net/sch_generic.h:1233 [inline] __dev_xmit_skb net/core/dev.c:4496 [inline] __dev_queue_xmit+0x1660/0x2a68 net/core/dev.c:5044 dev_queue_xmit include/linux/netdevice.h:3483 [inline] neigh_hh_output include/net/neighbour.h:538 [inline] neigh_output include/net/neighbour.h:552 [inline] ip_finish_output2+0xa80/0xee4 net/ipv4/ip_output.c:236 __ip_finish_output+0x198/0x424 net/ipv4/ip_output.c:-1 ip_finish_output+0x44/0x2fc net/ipv4/ip_output.c:324 NF_HOOK_COND include/linux/netfilter.h:314 [inline] ip_output+0x28c/0x400 net/ipv4/ip_output.c:437 dst_output include/net/dst.h:471 [inline] ip_local_out+0x110/0x148 net/ipv4/ip_output.c:131 iptunnel_xmit+0x50c/0xd38 net/ipv4/ip_tunnel_core.c:97 udp_tunnel_xmit_skb+0x220/0x348 net/ipv4/udp_tunnel_core.c:187 send4+0x8cc/0xcf4 drivers/net/wireguard/socket.c:85 wg_socket_send_skb_to_peer+0xc0/0x19c drivers/net/wireguard/socket.c:174 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x188/0x75c drivers/net/wireguard/send.c:276 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3578 worker_thread+0x798/0xbd0 kernel/workqueue.c:3659 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 stack backtrace: CPU: 1 UID: 0 PID: 5690 Comm: kworker/1:6 Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Workqueue: wg-crypt-wg0 wg_packet_tx_worker Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 __lock_acquire+0x8f8/0x2b08 kernel/locking/lockdep.c:-1 lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __raw_spin_lock include/linux/spinlock_api_smp.h:190 [inline] _raw_spin_lock+0x48/0x60 kernel/locking/spinlock.c:173 spin_lock include/linux/spinlock.h:347 [inline] ptr_ring_consume include/linux/ptr_ring.h:363 [inline] ptr_ring_cleanup include/linux/ptr_ring.h:700 [inline] tap_sock_destruct+0x40/0x3f8 drivers/net/tap.c:444 __sk_destruct+0x80/0x89c net/core/sock.c:2386 sk_destruct+0x8c/0xb8 net/core/sock.c:2448 __sk_free+0x264/0x328 net/core/sock.c:2459 sock_wfree+0x234/0x6fc net/core/sock.c:-1 skb_release_head_state+0x100/0x2e0 net/core/skbuff.c:1166 skb_release_all+0x28/0x7c net/core/skbuff.c:1186 __kfree_skb net/core/skbuff.c:1202 [inline] sk_skb_reason_drop+0x104/0x160 net/core/skbuff.c:1241 kfree_skb_reason include/linux/skbuff.h:1329 [inline] __tcf_kfree_skb_list+0x154/0x37c net/sched/sch_generic.c:59 tcf_kfree_skb_list include/net/sch_generic.h:1233 [inline] __dev_xmit_skb net/core/dev.c:4496 [inline] __dev_queue_xmit+0x1660/0x2a68 net/core/dev.c:5044 dev_queue_xmit include/linux/netdevice.h:3483 [inline] neigh_hh_output include/net/neighbour.h:538 [inline] neigh_output include/net/neighbour.h:552 [inline] ip_finish_output2+0xa80/0xee4 net/ipv4/ip_output.c:236 __ip_finish_output+0x198/0x424 net/ipv4/ip_output.c:-1 ip_finish_output+0x44/0x2fc net/ipv4/ip_output.c:324 NF_HOOK_COND include/linux/netfilter.h:314 [inline] ip_output+0x28c/0x400 net/ipv4/ip_output.c:437 dst_output include/net/dst.h:471 [inline] ip_local_out+0x110/0x148 net/ipv4/ip_output.c:131 iptunnel_xmit+0x50c/0xd38 net/ipv4/ip_tunnel_core.c:97 udp_tunnel_xmit_skb+0x220/0x348 net/ipv4/udp_tunnel_core.c:187 send4+0x8cc/0xcf4 drivers/net/wireguard/socket.c:85 wg_socket_send_skb_to_peer+0xc0/0x19c drivers/net/wireguard/socket.c:174 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x188/0x75c drivers/net/wireguard/send.c:276 process_one_work kernel/workqueue.c:3495 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3578 worker_thread+0x798/0xbd0 kernel/workqueue.c:3659 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 GRED: Unable to relocate VQ 0x0 after dequeue, screwing up backlog