================================================================== BUG: KASAN: invalid-access in __packet_get_status+0xb0/0x12c net/packet/af_packet.c:439 Read at addr f9ff000028da0000 by task kworker/1:0/13569 Pointer tag: [f9], memory tag: [f0] CPU: 1 PID: 13569 Comm: kworker/1:0 Not tainted 6.8.0-rc2-syzkaller-00047-g1bbb19b6eb1b #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: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] __tpacket_has_room net/packet/af_packet.c:1259 [inline] __packet_rcv_has_room+0xf8/0x188 net/packet/af_packet.c:1300 tpacket_rcv+0x158/0xbcc net/packet/af_packet.c:2286 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 sch_direct_xmit+0x90/0x1e0 net/sched/sch_generic.c:342 qdisc_restart net/sched/sch_generic.c:407 [inline] __qdisc_run+0x120/0x728 net/sched/sch_generic.c:415 qdisc_run include/net/pkt_sched.h:125 [inline] qdisc_run include/net/pkt_sched.h:122 [inline] net_tx_action+0x150/0x218 net/core/dev.c:5197 __do_softirq+0x10c/0x26c kernel/softirq.c:553 ____do_softirq+0x10/0x1c arch/arm64/kernel/irq.c:81 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:889 do_softirq_own_stack+0x1c/0x28 arch/arm64/kernel/irq.c:86 do_softirq kernel/softirq.c:454 [inline] do_softirq+0x54/0x6c kernel/softirq.c:441 __local_bh_enable_ip+0x8c/0x98 kernel/softirq.c:381 __raw_read_unlock_bh include/linux/rwlock_api_smp.h:257 [inline] _raw_read_unlock_bh+0x28/0x68 kernel/locking/spinlock.c:284 wg_socket_send_skb_to_peer+0x7c/0xcc drivers/net/wireguard/socket.c:184 wg_packet_create_data_done drivers/net/wireguard/send.c:251 [inline] wg_packet_tx_worker+0x88/0x1b8 drivers/net/wireguard/send.c:276 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:0000000005540aae refcount:9 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x68da0 head:0000000005540aae order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x1ffc18006000040(head|arch_2|arch_3|node=0|zone=0|lastcpupid=0x7ff|kasantag=0x6) page_type: 0xffffffff() raw: 01ffc18006000040 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000009ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000028d9fe00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff000028d9ff00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 >ffff000028da0000: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ^ ffff000028da0100: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff000028da0200: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ==================================================================