================================================================== BUG: KASAN: invalid-access in __packet_get_status+0x70/0xe0 net/packet/af_packet.c:438 Read at addr f2ff00002fb28000 by task kworker/1:3/4073 Pointer tag: [f2], memory tag: [f0] CPU: 1 PID: 4073 Comm: kworker/1:3 Not tainted 6.4.0-rc5-syzkaller-00313-g4c605260bc60 #0 Hardware name: linux,dummy-virt (DT) Workqueue: wg-crypt-wg0 wg_packet_tx_worker Call trace: dump_backtrace+0x94/0xec arch/arm64/kernel/stacktrace.c:233 show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x48/0x60 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:351 [inline] print_report+0xd8/0x5f4 mm/kasan/report.c:462 kasan_report+0x7c/0x9c mm/kasan/report.c:572 __do_kernel_fault+0x174/0x1c0 arch/arm64/mm/fault.c:320 do_bad_area arch/arm64/mm/fault.c:479 [inline] do_tag_check_fault+0x78/0x8c arch/arm64/mm/fault.c:790 do_mem_abort+0x44/0x94 arch/arm64/mm/fault.c:866 el1_abort+0x40/0x60 arch/arm64/kernel/entry-common.c:367 el1h_64_sync_handler+0xd8/0xe4 arch/arm64/kernel/entry-common.c:427 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:586 __packet_get_status+0x70/0xe0 net/packet/af_packet.c:438 packet_lookup_frame net/packet/af_packet.c:524 [inline] __tpacket_has_room net/packet/af_packet.c:1255 [inline] __packet_rcv_has_room net/packet/af_packet.c:1296 [inline] __packet_rcv_has_room+0xf8/0x188 net/packet/af_packet.c:1271 tpacket_rcv+0x144/0xbbc net/packet/af_packet.c:2285 dev_queue_xmit_nit+0x284/0x2c8 net/core/dev.c:2281 xmit_one net/core/dev.c:3574 [inline] dev_hard_start_xmit+0x78/0x148 net/core/dev.c:3594 __dev_queue_xmit+0xaa0/0xd40 net/core/dev.c:4244 dev_queue_xmit include/linux/netdevice.h:3088 [inline] neigh_hh_output include/net/neighbour.h:528 [inline] neigh_output include/net/neighbour.h:542 [inline] ip6_finish_output2+0x268/0x7b8 net/ipv6/ip6_output.c:134 __ip6_finish_output net/ipv6/ip6_output.c:195 [inline] ip6_finish_output+0x220/0x360 net/ipv6/ip6_output.c:206 NF_HOOK_COND include/linux/netfilter.h:292 [inline] ip6_output+0x74/0x1d4 net/ipv6/ip6_output.c:227 dst_output include/net/dst.h:458 [inline] ip6_local_out+0x48/0x5c net/ipv6/output_core.c:155 ip6tunnel_xmit include/net/ip6_tunnel.h:161 [inline] udp_tunnel6_xmit_skb+0x170/0x2ac net/ipv6/ip6_udp_tunnel.c:109 send6+0x130/0x29c drivers/net/wireguard/socket.c:152 wg_socket_send_skb_to_peer+0x60/0xcc drivers/net/wireguard/socket.c:178 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x98/0x1b4 drivers/net/wireguard/send.c:276 process_one_work+0x1c0/0x30c kernel/workqueue.c:2405 worker_thread+0x70/0x418 kernel/workqueue.c:2552 kthread+0x118/0x11c kernel/kthread.c:379 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 The buggy address belongs to the physical page: page:000000008a5dce5e refcount:9 mapcount:1 mapping:0000000000000000 index:0x0 pfn:0x6fb28 head:000000008a5dce5e order:3 entire_mapcount:0 nr_pages_mapped:8 pincount:0 flags: 0x1ffc34006010000(head|arch_2|arch_3|node=0|zone=0|lastcpupid=0x7ff|kasantag=0xd) page_type: 0x0() raw: 01ffc34006010000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 0000000900000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00002fb27e00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff00002fb27f00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 >ffff00002fb28000: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ^ ffff00002fb28100: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff00002fb28200: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ==================================================================