------------[ cut here ]------------ verifier bug: not inlined functions bpf_perf_event_read#22 is missing func(1) WARNING: CPU: 0 PID: 5482 at kernel/bpf/verifier.c:22838 do_misc_fixups+0xa938/0xcf04 kernel/bpf/verifier.c:22838 Modules linked in: CPU: 0 UID: 0 PID: 5482 Comm: syz.1.751 Not tainted syzkaller #0 PREEMPT Hardware name: linux,dummy-virt (DT) pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : do_misc_fixups+0xa938/0xcf04 kernel/bpf/verifier.c:22838 lr : do_misc_fixups+0xa938/0xcf04 kernel/bpf/verifier.c:22838 sp : ffff8000a36f7450 x29: ffff8000a36f7450 x28: ffff000012548000 x27: ffff00001254e130 x26: ffff00001254e148 x25: ffff000012548000 x24: 0000000000000000 x23: ffff00001254e128 x22: 1ffff00011b95a13 x21: ffff80008dcad098 x20: ffff800085583e00 x19: ffff80008556d4a0 x18: 0000000000000000 x17: 0000000000000000 x16: 0000000000000000 x15: 0000ffffddf04900 x14: 205b2d2d2d2d2d2d x13: 0000000000000000 x12: ffff7000146dedf3 x11: 1ffff000146dedf2 x10: ffff7000146dedf2 x9 : dfff800000000000 x8 : ffff8000a36f6f98 x7 : ffff8000a36f70c0 x6 : ffff8000a36f7010 x5 : ffff8000a36f6ff8 x4 : 0000000000000000 x3 : 1fffe0000d41313e x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000151f0000 Call trace: do_misc_fixups+0xa938/0xcf04 kernel/bpf/verifier.c:22838 (P) bpf_check+0x3c84/0x9508 kernel/bpf/verifier.c:24742 bpf_prog_load+0xe2c/0x1b74 kernel/bpf/syscall.c:2979 __sys_bpf+0x9c4/0x29c8 kernel/bpf/syscall.c:6029 __do_sys_bpf kernel/bpf/syscall.c:6139 [inline] __se_sys_bpf kernel/bpf/syscall.c:6137 [inline] __arm64_sys_bpf+0x70/0xa4 kernel/bpf/syscall.c:6137 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x6c/0x258 arch/arm64/kernel/syscall.c:49 el0_svc_common.constprop.0+0xac/0x230 arch/arm64/kernel/syscall.c:132 do_el0_svc+0x40/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x50/0x1a0 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0xa0/0xe4 arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 340 hardirqs last enabled at (339): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1531 [inline] hardirqs last enabled at (339): [] finish_lock_switch kernel/sched/core.c:5105 [inline] hardirqs last enabled at (339): [] finish_task_switch.isra.0+0x1a8/0x854 kernel/sched/core.c:5223 hardirqs last disabled at (340): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (250): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (250): [] handle_softirqs+0x88c/0xdb4 kernel/softirq.c:607 softirqs last disabled at (243): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]---