================================================================== BUG: KASAN: invalid-access in __packet_get_status+0x70/0xe0 net/packet/af_packet.c:438 Read at addr fcff000037708100 by task kworker/0:0/26972 Pointer tag: [fc], memory tag: [f0] CPU: 0 PID: 26972 Comm: kworker/0:0 Not tainted 6.4.0-rc5-syzkaller-00002-gf8dba31b0a82 #0 Hardware name: linux,dummy-virt (DT) Workqueue: wg-crypt-wg2 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:791 do_mem_abort+0x44/0x94 arch/arm64/mm/fault.c:867 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] packet_current_rx_frame net/packet/af_packet.c:1117 [inline] tpacket_rcv+0x29c/0xbbc net/packet/af_packet.c:2355 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:3085 [inline] neigh_hh_output include/net/neighbour.h:528 [inline] neigh_output include/net/neighbour.h:542 [inline] ip_finish_output2+0x44c/0x56c net/ipv4/ip_output.c:229 __ip_finish_output net/ipv4/ip_output.c:307 [inline] __ip_finish_output+0xa4/0x1a4 net/ipv4/ip_output.c:289 ip_finish_output+0x34/0xec net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:292 [inline] ip_output+0xf8/0x1ac net/ipv4/ip_output.c:431 dst_output include/net/dst.h:458 [inline] ip_local_out+0x48/0x5c net/ipv4/ip_output.c:126 iptunnel_xmit+0x138/0x288 net/ipv4/ip_tunnel_core.c:82 udp_tunnel_xmit_skb+0xec/0x120 net/ipv4/udp_tunnel_core.c:172 send4+0x120/0x2cc drivers/net/wireguard/socket.c:85 wg_socket_send_skb_to_peer+0xb0/0xcc drivers/net/wireguard/socket.c:175 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:00000000a5aca02e refcount:9 mapcount:1 mapping:0000000000000000 index:0x0 pfn:0x77708 head:00000000a5aca02e order:3 entire_mapcount:0 nr_pages_mapped:8 pincount:0 flags: 0x1ffc0c006010000(head|arch_2|arch_3|node=0|zone=0|lastcpupid=0x7ff|kasantag=0x3) page_type: 0x0() raw: 01ffc0c006010000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 0000000900000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000037707f00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff000037708000: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 >ffff000037708100: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ^ ffff000037708200: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff000037708300: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ==================================================================