================================================================== BUG: KASAN: invalid-access in __packet_get_status+0x70/0xe0 net/packet/af_packet.c:438 Read at addr f8ff000005ab8000 by task syz-executor.1/7386 Pointer tag: [f8], memory tag: [f0] CPU: 1 PID: 7386 Comm: syz-executor.1 Not tainted 6.4.0-rc7-syzkaller-00194-g8a28a0b6f1a1 #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: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] 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: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] NF_HOOK.constprop.0+0x50/0xe0 include/linux/netfilter.h:303 ndisc_send_skb+0x2f0/0x488 net/ipv6/ndisc.c:508 ndisc_send_rs+0x5c/0x1b0 net/ipv6/ndisc.c:718 addrconf_rs_timer+0x154/0x2ac net/ipv6/addrconf.c:3936 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 _stext+0x124/0x290 ____do_softirq+0x10/0x1c arch/arm64/kernel/irq.c:80 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:899 do_softirq_own_stack+0x1c/0x2c arch/arm64/kernel/irq.c:85 invoke_softirq kernel/softirq.c:452 [inline] __irq_exit_rcu+0xe4/0x100 kernel/softirq.c:650 irq_exit_rcu+0x10/0x1c kernel/softirq.c:662 __el1_irq arch/arm64/kernel/entry-common.c:472 [inline] el1_interrupt+0x38/0x64 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:587 __daif_local_irq_enable arch/arm64/include/asm/irqflags.h:33 [inline] arch_local_irq_enable arch/arm64/include/asm/irqflags.h:55 [inline] raw_spin_rq_unlock_irq kernel/sched/sched.h:1378 [inline] finish_lock_switch kernel/sched/core.c:5095 [inline] finish_task_switch.isra.0+0x74/0x250 kernel/sched/core.c:5213 context_switch kernel/sched/core.c:5346 [inline] __schedule+0x2d0/0x8e4 kernel/sched/core.c:6669 preempt_schedule_irq+0x3c/0x84 kernel/sched/core.c:6981 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:265 [inline] __el1_irq arch/arm64/kernel/entry-common.c:474 [inline] el1_interrupt+0x4c/0x64 arch/arm64/kernel/entry-common.c:486 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:491 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:587 pud_alloc include/linux/mm.h:2700 [inline] walk_to_pmd+0x38/0xd8 mm/memory.c:1792 __get_locked_pte+0x24/0xb8 mm/memory.c:1806 get_locked_pte include/linux/mm.h:2583 [inline] insert_page mm/memory.c:1852 [inline] vm_insert_page+0x110/0x168 mm/memory.c:2019 packet_mmap+0xe8/0x1fc net/packet/af_packet.c:4589 sock_mmap+0x20/0x2c net/socket.c:1392 call_mmap include/linux/fs.h:1873 [inline] mmap_region+0x2f0/0x8e4 mm/mmap.c:2649 do_mmap+0x3a0/0x500 mm/mmap.c:1394 vm_mmap_pgoff+0xe0/0x120 mm/util.c:543 ksys_mmap_pgoff+0x184/0x204 mm/mmap.c:1440 __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/0xec arch/arm64/kernel/syscall.c:142 do_el0_svc+0x38/0xa4 arch/arm64/kernel/syscall.c:193 el0_svc+0x2c/0xb0 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0xb8/0xbc arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:591 The buggy address belongs to the physical page: page:00000000da3a25f8 refcount:9 mapcount:1 mapping:0000000000000000 index:0x0 pfn:0x45ab8 head:00000000da3a25f8 order:3 entire_mapcount:0 nr_pages_mapped:8 pincount:0 flags: 0x1ffc1c006010000(head|arch_2|arch_3|node=0|zone=0|lastcpupid=0x7ff|kasantag=0x7) page_type: 0x0() raw: 01ffc1c006010000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 0000000900000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000005ab7e00: fc fc fe fe fe fe fe fe f0 f0 fe fe fe fe fe fe ffff000005ab7f00: f0 f0 f0 f0 fe fe fe fe f0 fe fe fe fe fe fe fe >ffff000005ab8000: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ^ ffff000005ab8100: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff000005ab8200: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ==================================================================