================================================================== BUG: KASAN: invalid-access in __packet_get_status+0x70/0xe0 net/packet/af_packet.c:438 Read at addr f2ff00002f648000 by task syz-executor.1/12778 Pointer tag: [f2], memory tag: [f0] CPU: 0 PID: 12778 Comm: syz-executor.1 Not tainted 6.4.0-syzkaller-04247-g3a8a670eeeaa #0 Hardware name: linux,dummy-virt (DT) 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:364 [inline] print_report+0xd8/0x5f4 mm/kasan/report.c:475 kasan_report+0x7c/0xa0 mm/kasan/report.c:588 __do_kernel_fault+0x174/0x1c0 arch/arm64/mm/fault.c:334 do_bad_area arch/arm64/mm/fault.c:493 [inline] do_tag_check_fault+0x78/0x8c arch/arm64/mm/fault.c:804 do_mem_abort+0x44/0x94 arch/arm64/mm/fault.c:880 el1_abort+0x40/0x60 arch/arm64/kernel/entry-common.c:369 el1h_64_sync_handler+0xd8/0xe4 arch/arm64/kernel/entry-common.c:429 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+0x288/0x2cc net/core/dev.c:2308 xmit_one net/core/dev.c:3533 [inline] dev_hard_start_xmit+0x78/0x148 net/core/dev.c:3553 __dev_queue_xmit+0xaa0/0xd40 net/core/dev.c:4203 dev_queue_xmit include/linux/netdevice.h:3088 [inline] hsr_xmit net/hsr/hsr_forward.c:382 [inline] hsr_forward_do net/hsr/hsr_forward.c:473 [inline] hsr_forward_skb+0x3a0/0x734 net/hsr/hsr_forward.c:620 send_hsr_supervision_frame+0x114/0x1e4 net/hsr/hsr_device.c:326 hsr_announce+0x4c/0xa8 net/hsr/hsr_device.c:382 call_timer_fn.constprop.0+0x24/0x80 kernel/time/timer.c:1700 expire_timers+0x9c/0xd4 kernel/time/timer.c:1751 __run_timers kernel/time/timer.c:2022 [inline] __run_timers kernel/time/timer.c:1995 [inline] run_timer_softirq+0xf4/0x254 kernel/time/timer.c:2035 __do_softirq+0x124/0x290 kernel/softirq.c:553 ____do_softirq+0x10/0x1c arch/arm64/kernel/irq.c:80 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:882 do_softirq_own_stack+0x1c/0x2c arch/arm64/kernel/irq.c:85 invoke_softirq kernel/softirq.c:434 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xd8/0xf4 kernel/softirq.c:644 __el1_irq arch/arm64/kernel/entry-common.c:474 [inline] el1_interrupt+0x38/0x64 arch/arm64/kernel/entry-common.c:488 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:493 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:587 vm_insert_page+0x34/0x168 mm/memory.c:2021 packet_mmap+0xe8/0x1fc net/packet/af_packet.c:4589 sock_mmap+0x20/0x2c net/socket.c:1381 call_mmap include/linux/fs.h:1877 [inline] mmap_region+0x348/0x92c mm/mmap.c:2669 do_mmap+0x39c/0x4f4 mm/mmap.c:1373 vm_mmap_pgoff+0xe0/0x120 mm/util.c:543 ksys_mmap_pgoff+0x184/0x204 mm/mmap.c:1419 __do_sys_mmap arch/arm64/kernel/sys.c:28 [inline] __se_sys_mmap arch/arm64/kernel/sys.c:21 [inline] __arm64_sys_mmap+0x30/0x44 arch/arm64/kernel/sys.c:21 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x48/0x114 arch/arm64/kernel/syscall.c:52 el0_svc_common.constprop.0+0x44/0xe4 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x38/0xa4 arch/arm64/kernel/syscall.c:191 el0_svc+0x2c/0xb0 arch/arm64/kernel/entry-common.c:647 el0t_64_sync_handler+0xc0/0xc4 arch/arm64/kernel/entry-common.c:665 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:591 The buggy address belongs to the physical page: page:00000000197c2c14 refcount:9 mapcount:1 mapping:0000000000000000 index:0x0 pfn:0x6f648 head:00000000197c2c14 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: ffff00002f647e00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff00002f647f00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 >ffff00002f648000: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ^ ffff00002f648100: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff00002f648200: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ==================================================================