================================================================== 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+0x78/0x2f0 net/core/dst_cache.c:50 Write of size 4 at addr 0000000000000041 by task kworker/1:5/5276 CPU: 1 UID: 0 PID: 5276 Comm: kworker/1:5 Not tainted 6.12.0-rc1-syzkaller-00113-g8c245fe7dde3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: wg-crypt-wg1 wg_packet_tx_worker Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 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+0x78/0x2f0 net/core/dst_cache.c:50 dst_cache_get_ip6+0x8e/0x1c0 net/core/dst_cache.c:133 send6+0x400/0xd20 drivers/net/wireguard/socket.c:129 wg_socket_send_skb_to_peer+0xf9/0x220 drivers/net/wireguard/socket.c:178 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x1aa/0x810 drivers/net/wireguard/send.c:276 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 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 ==================================================================