================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: null-ptr-deref in atomic_add_negative_relaxed include/linux/atomic/atomic-instrumented.h:1475 [inline] BUG: KASAN: null-ptr-deref in rcuref_get include/linux/rcuref.h:67 [inline] BUG: KASAN: null-ptr-deref in dst_hold include/net/dst.h:238 [inline] BUG: KASAN: null-ptr-deref in dst_cache_per_cpu_get+0x57/0x350 net/core/dst_cache.c:48 Write of size 4 at addr 0000000000000045 by task kworker/u32:6/1087 CPU: 1 PID: 1087 Comm: kworker/u32:6 Not tainted 6.10.0-rc1-syzkaller-00021-ge0cce98fe279 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Workqueue: wg-kex-wg0 wg_packet_handshake_send_worker Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 kasan_report+0xd9/0x110 mm/kasan/report.c:601 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_add_negative_relaxed include/linux/atomic/atomic-instrumented.h:1475 [inline] rcuref_get include/linux/rcuref.h:67 [inline] dst_hold include/net/dst.h:238 [inline] dst_cache_per_cpu_get+0x57/0x350 net/core/dst_cache.c:48 dst_cache_get_ip4+0x89/0x140 net/core/dst_cache.c:82 send4+0x312/0xe20 drivers/net/wireguard/socket.c:49 wg_socket_send_skb_to_peer+0x196/0x220 drivers/net/wireguard/socket.c:175 wg_socket_send_buffer_to_peer+0x12b/0x190 drivers/net/wireguard/socket.c:200 wg_packet_send_handshake_initiation+0x227/0x360 drivers/net/wireguard/send.c:40 wg_packet_handshake_send_worker+0x1c/0x30 drivers/net/wireguard/send.c:51 process_one_work+0x958/0x1ad0 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 ==================================================================