================================================================== BUG: KASAN: invalid-access in __packet_get_status+0xb0/0x12c net/packet/af_packet.c:439 Read at addr f4ff00001a538000 by task syz-executor.0/14991 Pointer tag: [f4], memory tag: [f0] CPU: 0 PID: 14991 Comm: syz-executor.0 Not tainted 6.8.0-rc1-syzkaller-00049-g6098d87eaf31 #0 Hardware name: linux,dummy-virt (DT) 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 __dev_queue_xmit+0x1c0/0xe5c net/core/dev.c:4351 dev_queue_xmit include/linux/netdevice.h:3171 [inline] hsr_xmit net/hsr/hsr_forward.c:380 [inline] hsr_forward_do net/hsr/hsr_forward.c:471 [inline] hsr_forward_skb+0x398/0x724 net/hsr/hsr_forward.c:619 send_hsr_supervision_frame+0x120/0x1f0 net/hsr/hsr_device.c:343 hsr_announce+0x50/0xac net/hsr/hsr_device.c:399 call_timer_fn.constprop.0+0x24/0x80 kernel/time/timer.c:1700 expire_timers kernel/time/timer.c:1751 [inline] __run_timers+0x22c/0x268 kernel/time/timer.c:2038 run_timer_softirq+0x20/0x40 kernel/time/timer.c:2051 __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 invoke_softirq kernel/softirq.c:434 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xc0/0xdc kernel/softirq.c:644 __el1_irq arch/arm64/kernel/entry-common.c:503 [inline] el1_interrupt+0x38/0x64 arch/arm64/kernel/entry-common.c:517 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:522 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:594 __daif_local_irq_enable arch/arm64/include/asm/irqflags.h:27 [inline] arch_local_irq_enable arch/arm64/include/asm/irqflags.h:49 [inline] raw_spin_rq_unlock_irq kernel/sched/sched.h:1397 [inline] finish_lock_switch kernel/sched/core.c:5154 [inline] finish_task_switch.isra.0+0x74/0x248 kernel/sched/core.c:5272 context_switch kernel/sched/core.c:5403 [inline] __schedule+0x328/0x8a8 kernel/sched/core.c:6727 preempt_schedule_irq+0x3c/0x84 kernel/sched/core.c:7047 arm64_preempt_schedule_irq arch/arm64/kernel/entry-common.c:267 [inline] __el1_irq arch/arm64/kernel/entry-common.c:505 [inline] el1_interrupt+0x4c/0x64 arch/arm64/kernel/entry-common.c:517 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:522 el1h_64_irq+0x64/0x68 arch/arm64/kernel/entry.S:594 wp512_process_buffer+0x288/0x7fc crypto/wp512.c:838 wp512_update+0x108/0x1f4 crypto/wp512.c:1031 crypto_shash_update+0x1c/0x28 crypto/shash.c:70 shash_ahash_update+0x98/0xc0 crypto/ahash.c:71 crypto_ahash_update+0x20/0x44 crypto/ahash.c:350 hash_sendmsg+0x14c/0x414 crypto/algif_hash.c:149 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x54/0x60 net/socket.c:745 ____sys_sendmsg+0x274/0x2ac net/socket.c:2584 ___sys_sendmsg+0xac/0x100 net/socket.c:2638 __sys_sendmsg+0x84/0xe0 net/socket.c:2667 __do_sys_sendmsg net/socket.c:2676 [inline] __se_sys_sendmsg net/socket.c:2674 [inline] __arm64_sys_sendmsg+0x24/0x30 net/socket.c:2674 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x48/0x114 arch/arm64/kernel/syscall.c:51 el0_svc_common.constprop.0+0x40/0xe0 arch/arm64/kernel/syscall.c:136 do_el0_svc+0x1c/0x28 arch/arm64/kernel/syscall.c:155 el0_svc+0x34/0xd8 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x100/0x12c arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x19c/0x1a0 arch/arm64/kernel/entry.S:598 The buggy address belongs to the physical page: page:000000000fea086b refcount:9 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5a538 head:000000000fea086b order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x1ffc2c006000040(head|arch_2|arch_3|node=0|zone=0|lastcpupid=0x7ff|kasantag=0xb) page_type: 0xffffffff() raw: 01ffc2c006000040 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000009ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff00001a537e00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff00001a537f00: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 >ffff00001a538000: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ^ ffff00001a538100: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ffff00001a538200: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ==================================================================