------------[ cut here ]------------ WARNING: CPU: 1 PID: 2924 at include/linux/bpf_mprog.h:198 bpf_mprog_pos_before+0x44/0x60 kernel/bpf/mprog.c:204 Modules linked in: CPU: 1 PID: 2924 Comm: syz-executor.0 Not tainted 6.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:bpf_mprog_total include/linux/bpf_mprog.h:198 [inline] RIP: 0010:bpf_mprog_pos_before+0x44/0x60 kernel/bpf/mprog.c:200 Code: f9 3f 89 c2 7f 24 39 c1 7e 26 48 8b 14 d7 49 39 d0 75 e8 48 8b 56 08 48 85 d2 74 0a 49 3b 94 c1 10 04 00 00 75 d5 83 e8 01 c3 <0f> 0b 39 c1 7f da 49 83 f8 01 b8 fe ff ff ff 83 d0 00 c3 66 0f 1f RSP: 0018:ffffc90000eb3d30 EFLAGS: 00010212 RAX: 0000000000000000 RBX: ffffc90000ea1000 RCX: 0000000000000040 RDX: 0000000000000000 RSI: ffffc90000eb3d70 RDI: ffff888112d6d808 RBP: ffff88811a152000 R08: 0000000000000000 R09: ffff888112d6d808 R10: 0000000000000000 R11: 0000000000000000 R12: ffff888112d6d808 R13: 0000000000000008 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f1453c5d6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000110341000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_mprog_attach+0x32a/0x570 kernel/bpf/mprog.c:258 tcx_prog_attach+0xb8/0x2f0 kernel/bpf/tcx.c:39 bpf_prog_attach kernel/bpf/syscall.c:3820 [inline] __sys_bpf+0x28b/0x2600 kernel/bpf/syscall.c:5354 __do_sys_bpf kernel/bpf/syscall.c:5449 [inline] __se_sys_bpf kernel/bpf/syscall.c:5447 [inline] __x64_sys_bpf+0x19/0x20 kernel/bpf/syscall.c:5447 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f14540daae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1453c5d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f14541f9f80 RCX: 00007f14540daae9 RDX: 0000000000000020 RSI: 0000000020000080 RDI: 0000000000000008 RBP: 00007f145412647a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f14541f9f80 R15: 00007fff808a4b18