================================================================== BUG: KCSAN: data-race in wg_index_hashtable_insert / wg_index_hashtable_lookup write to 0xffff88811579b79c of 4 bytes by task 3341 on cpu 1: wg_index_hashtable_insert+0xe2/0x2a0 drivers/net/wireguard/peerlookup.c:132 wg_noise_handshake_create_response+0x529/0x5d0 drivers/net/wireguard/noise.c:713 wg_packet_send_handshake_response+0x6e/0x120 drivers/net/wireguard/send.c:94 wg_receive_handshake_packet drivers/net/wireguard/receive.c:154 [inline] wg_packet_handshake_receive_worker+0x3ed/0x5f0 drivers/net/wireguard/receive.c:213 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read to 0xffff88811579b79c of 4 bytes by task 1002 on cpu 0: wg_index_hashtable_lookup+0x5b/0x120 drivers/net/wireguard/peerlookup.c:211 wg_noise_handshake_consume_response+0x12c/0x720 drivers/net/wireguard/noise.c:747 wg_receive_handshake_packet drivers/net/wireguard/receive.c:166 [inline] wg_packet_handshake_receive_worker+0x3fb/0x5f0 drivers/net/wireguard/receive.c:213 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0x2f19b3be -> 0x17543f9f Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 1002 Comm: kworker/0:2 Not tainted 6.11.0-syzkaller-10547-g684a64bf32b6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: wg-kex-wg2 wg_packet_handshake_receive_worker ==================================================================