------------[ cut here ]------------ WARNING: CPU: 1 PID: 4222 at kernel/bpf/btf.c:1943 btf_type_id_size+0x8e0/0x948 Modules linked in: CPU: 1 PID: 4222 Comm: syz-executor952 Not tainted 6.1.80-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btf_type_id_size+0x8e0/0x948 lr : btf_type_id_size+0x8dc/0x948 kernel/bpf/btf.c:1942 sp : ffff80001df079d0 x29: ffff80001df079e0 x28: 1ffff00003be0f50 x27: dfff800000000000 x26: 0000000011000000 x25: 0000000000000011 x24: 0000000000000000 x23: 0000000000000000 x22: ffff0000c3155e00 x21: 0000000000000001 x20: ffff80001df07a80 x19: 000000000e000000 x18: 0000000000000140 x17: ffff8000085a58e8 x16: ffff800012094500 x15: 0000000000000000 x14: 0000000000000012 x13: ffff0000d4dbd340 x12: 0000000000ff0100 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff800008666124 x8 : ffff0000d4dbd340 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000005 x2 : ffff80001df07aa0 x1 : 0000000011000000 x0 : 000000000e000000 Call trace: btf_type_id_size+0x8e0/0x948 map_check_btf+0x104/0x97c kernel/bpf/syscall.c:1018 map_create+0x6f4/0xbc8 kernel/bpf/syscall.c:1167 __sys_bpf+0x284/0x654 kernel/bpf/syscall.c:4987 __do_sys_bpf kernel/bpf/syscall.c:5109 [inline] __se_sys_bpf kernel/bpf/syscall.c:5107 [inline] __arm64_sys_bpf+0x80/0x98 kernel/bpf/syscall.c:5107 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 15018 hardirqs last enabled at (15017): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (15017): [] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194 hardirqs last disabled at (15018): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (14938): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (14938): [] btf_alloc_id+0x98/0x1ac kernel/bpf/btf.c:1585 softirqs last disabled at (14934): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (14934): [] btf_alloc_id+0x38/0x1ac kernel/bpf/btf.c:1581 ---[ end trace 0000000000000000 ]---