bisecting fixing commit since 84316ca4e100d8cbfccd9f774e23817cb2059868 building syzkaller on 3c7fef3361a6007112b26adc1c5a550189ef43fe testing commit 84316ca4e100d8cbfccd9f774e23817cb2059868 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: c96f8ccb16a99b2cce0c552a9ca856bab013875542adb846dde83db3085045fd all runs: crashed: WARNING in bpf_test_run testing current HEAD 5b029a32cfe4600f5e10e36b41778506b90fd4de testing commit 5b029a32cfe4600f5e10e36b41778506b90fd4de compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.1 kernel signature: 738a7f1be1488e41e86e1465511c52f19c470ad3a7391aec774861988d7083c7 all runs: crashed: WARNING in bpf_test_run revisions tested: 2, total time: 21m44.702942915s (build: 12m52.109024305s, test: 8m8.531417268s) the crash still happens on HEAD commit msg: bpf: Fix ringbuf helper function compatibility crash: WARNING in bpf_test_run ------------[ cut here ]------------ WARNING: CPU: 0 PID: 10963 at include/linux/bpf-cgroup.h:193 bpf_cgroup_storage_set include/linux/bpf-cgroup.h:182 [inline] WARNING: CPU: 0 PID: 10963 at include/linux/bpf-cgroup.h:193 bpf_test_run+0x5f9/0x930 net/bpf/test_run.c:111 Modules linked in: CPU: 0 PID: 10963 Comm: syz-executor.5 Not tainted 5.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bpf_cgroup_storage_set include/linux/bpf-cgroup.h:193 [inline] RIP: 0010:bpf_test_run+0x5f9/0x930 net/bpf/test_run.c:111 Code: 48 8d 7a 08 48 89 fe 48 c1 ee 03 80 3c 1e 00 0f 85 b2 01 00 00 48 01 42 08 e9 23 fe ff ff 83 c0 01 83 f8 08 0f 85 a2 fb ff ff <0f> 0b 41 bf f0 ff ff ff e9 45 fc ff ff e8 1c 25 4b fa e9 54 fc ff RSP: 0018:ffffc900019dfac8 EFLAGS: 00010246 RAX: 0000000000000008 RBX: dffffc0000000000 RCX: 1ffffffff1e60cf4 RDX: ffff8880261d0000 RSI: 00000212733415c7 RDI: ffff8880186d2fe8 RBP: ffffc90000f4c000 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000000 R12: ffffc900019dfca8 R13: ffff8880119a6780 R14: ffffc900019dfb50 R15: 0000000000000007 FS: 00007fc2bab68700(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000004 CR3: 00000000357ed000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bpf_prog_test_run_skb+0x96b/0x1bd0 net/bpf/test_run.c:657 bpf_prog_test_run kernel/bpf/syscall.c:3207 [inline] __sys_bpf+0x1bf3/0x3c90 kernel/bpf/syscall.c:4487 __do_sys_bpf kernel/bpf/syscall.c:4573 [inline] __se_sys_bpf kernel/bpf/syscall.c:4571 [inline] __x64_sys_bpf+0x70/0xb0 kernel/bpf/syscall.c:4571 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc2bab68188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 000000000056c1a8 RCX: 00000000004665d9 RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c1a8 R13: 00007ffd76d561bf R14: 00007fc2bab68300 R15: 0000000000022000