================================================================== BUG: KCSAN: data-race in insert_work / wq_worker_running read-write to 0xffff888237c2a7e0 of 4 bytes by task 36 on cpu 0: wq_worker_running+0x96/0xe0 kernel/workqueue.c:880 schedule_timeout+0xc1/0x290 kernel/time/timer.c:1935 synchronize_rcu_expedited_wait_once kernel/rcu/tree_exp.h:569 [inline] synchronize_rcu_expedited_wait+0x22a/0xbc0 kernel/rcu/tree_exp.h:620 rcu_exp_wait_wake kernel/rcu/tree_exp.h:685 [inline] rcu_exp_sel_wait_wake+0x355/0x630 kernel/rcu/tree_exp.h:719 wait_rcu_exp_gp+0x1a/0x20 kernel/rcu/tree_exp.h:510 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 read to 0xffff888237c2a7e0 of 4 bytes by interrupt on cpu 1: __need_more_worker kernel/workqueue.c:785 [inline] insert_work+0x10e/0x190 kernel/workqueue.c:1365 __queue_work+0x69e/0x8e0 kernel/workqueue.c:1517 queue_work_on+0x7e/0xe0 kernel/workqueue.c:1545 wg_queue_enqueue_per_device_and_peer drivers/net/wireguard/queueing.h:179 [inline] wg_packet_consume_data drivers/net/wireguard/receive.c:533 [inline] wg_packet_receive+0xb8f/0xdb0 drivers/net/wireguard/receive.c:583 wg_receive+0x4a/0x70 drivers/net/wireguard/socket.c:326 udpv6_queue_rcv_one_skb+0xa62/0xb70 net/ipv6/udp.c:704 udpv6_queue_rcv_skb+0x2c1/0x2e0 net/ipv6/udp.c:762 udp6_unicast_rcv_skb+0x16b/0x190 net/ipv6/udp.c:905 __udp6_lib_rcv+0x7ec/0x910 net/ipv6/udp.c:990 udpv6_rcv+0x1d/0x20 net/ipv6/udp.c:1098 ip6_protocol_deliver_rcu+0x89e/0xd40 net/ipv6/ip6_input.c:439 ip6_input_finish net/ipv6/ip6_input.c:484 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip6_input+0xca/0x180 net/ipv6/ip6_input.c:493 dst_input include/net/dst.h:461 [inline] ip6_rcv_finish+0x1e9/0x2d0 net/ipv6/ip6_input.c:79 NF_HOOK include/linux/netfilter.h:307 [inline] ipv6_rcv+0x85/0x140 net/ipv6/ip6_input.c:309 __netif_receive_skb_one_core net/core/dev.c:5484 [inline] __netif_receive_skb+0x8b/0x1b0 net/core/dev.c:5598 process_backlog+0x23f/0x3b0 net/core/dev.c:5926 __napi_poll+0x65/0x390 net/core/dev.c:6492 napi_poll net/core/dev.c:6559 [inline] net_rx_action+0x37e/0x730 net/core/dev.c:6670 __do_softirq+0x158/0x2e3 kernel/softirq.c:571 do_softirq+0xb1/0xf0 kernel/softirq.c:472 __local_bh_enable_ip+0x6f/0x80 kernel/softirq.c:396 __raw_read_unlock_bh include/linux/rwlock_api_smp.h:257 [inline] _raw_read_unlock_bh+0x17/0x20 kernel/locking/spinlock.c:284 wg_socket_send_skb_to_peer+0x107/0x120 drivers/net/wireguard/socket.c:184 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x142/0x360 drivers/net/wireguard/send.c:276 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1914 Comm: kworker/1:4 Not tainted 5.19.0-rc7-syzkaller-00199-g515f71412bb7-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Workqueue: wg-crypt-wg0 wg_packet_tx_worker ==================================================================