================================================================== BUG: KASAN: invalid-access in __packet_get_status+0xb0/0x12c net/packet/af_packet.c:439 Read at addr f6ff000026d28000 by task kworker/u4:6/1456 Pointer tag: [f6], memory tag: [f0] CPU: 1 PID: 1456 Comm: kworker/u4:6 Not tainted 6.8.0-rc4-syzkaller-00180-g4f5e5092fdbf #0 Hardware name: linux,dummy-virt (DT) Workqueue: wg-kex-wg1 wg_packet_handshake_send_worker Call trace: dump_backtrace+0x94/0xec arch/arm64/kernel/stacktrace.c:291 show_stack+0x18/0x24 arch/arm64/kernel/stacktrace.c:298 __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:377 [inline] print_report+0x108/0x618 mm/kasan/report.c:488 kasan_report+0x88/0xac mm/kasan/report.c:601 report_tag_fault arch/arm64/mm/fault.c:334 [inline] do_tag_recovery arch/arm64/mm/fault.c:346 [inline] __do_kernel_fault+0x17c/0x1e8 arch/arm64/mm/fault.c:393 do_bad_area arch/arm64/mm/fault.c:493 [inline] do_tag_check_fault+0x78/0x8c arch/arm64/mm/fault.c:772 do_mem_abort+0x44/0x94 arch/arm64/mm/fault.c:848 el1_abort+0x40/0x60 arch/arm64/kernel/entry-common.c:398 el1h_64_sync_handler+0xd8/0xe4 arch/arm64/kernel/entry-common.c:458 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:593 __packet_get_status+0xb0/0x12c net/packet/af_packet.c:439 packet_lookup_frame net/packet/af_packet.c:528 [inline] packet_current_rx_frame net/packet/af_packet.c:1121 [inline] tpacket_rcv+0x2b0/0xbcc net/packet/af_packet.c:2356 dev_queue_xmit_nit+0x27c/0x2c0 net/core/dev.c:2312 xmit_one net/core/dev.c:3543 [inline] dev_hard_start_xmit+0x74/0x110 net/core/dev.c:3563 __dev_queue_xmit+0x1c0/0xe5c net/core/dev.c:4351 dev_queue_xmit include/linux/netdevice.h:3171 [inline] neigh_hh_output include/net/neighbour.h:526 [inline] neigh_output include/net/neighbour.h:540 [inline] ip_finish_output2+0x310/0x64c net/ipv4/ip_output.c:235 __ip_finish_output net/ipv4/ip_output.c:313 [inline] __ip_finish_output+0xa4/0x19c net/ipv4/ip_output.c:295 ip_finish_output+0x34/0x108 net/ipv4/ip_output.c:323 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip_output+0x68/0x100 net/ipv4/ip_output.c:433 dst_output include/net/dst.h:451 [inline] ip_local_out+0x48/0x5c net/ipv4/ip_output.c:129 iptunnel_xmit+0x138/0x330 net/ipv4/ip_tunnel_core.c:82 udp_tunnel_xmit_skb+0xe8/0x11c net/ipv4/udp_tunnel_core.c:172 send4+0x120/0x2ac drivers/net/wireguard/socket.c:85 wg_socket_send_skb_to_peer+0xb0/0xcc drivers/net/wireguard/socket.c:175 wg_socket_send_buffer_to_peer+0x88/0xbc drivers/net/wireguard/socket.c:200 wg_packet_send_handshake_initiation+0xe0/0xf0 drivers/net/wireguard/send.c:40 wg_packet_handshake_send_worker+0x1c/0x34 drivers/net/wireguard/send.c:51 process_one_work+0x148/0x258 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x2b4/0x3cc kernel/workqueue.c:2787 kthread+0x114/0x118 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 The buggy address belongs to the physical page: page:00000000e6f749ff refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x66d28 head:00000000e6f749ff order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x1ffc24006000040(head|arch_2|arch_3|node=0|zone=0|lastcpupid=0x7ff|kasantag=0x9) page_type: 0xffffffff() raw: 01ffc24006000040 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000026d27e00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe ffff000026d27f00: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe >ffff000026d28000: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ^ ffff000026d28100: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff000026d28200: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ==================================================================