syzbot


WARNING in bpf_prog_select_runtime

Status: auto-closed as invalid on 2021/04/02 15:25
Reported-by: syzbot+399ba4bca24efd150158@syzkaller.appspotmail.com
First crash: 1593d, last: 1450d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in bpf_prog_select_runtime (2) 1 1303d 1303d 0/1 auto-closed as invalid on 2021/08/28 08:39
upstream WARNING in bpf_prog_select_runtime bpf syz 45 2352d 2354d 8/28 fixed on 2018/07/09 18:05
linux-4.14 WARNING in bpf_prog_select_runtime (3) C 28 630d 1020d 0/1 upstream: reported C repro on 2022/02/06 16:31

Sample crash report:
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000004
RBP: 00007fc9bd794ca0 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020ab9ff0 R11: 0000000000000246 R12: 0000000000000013
R13: 00007ffddc85a98f R14: 00007fc9bd7959c0 R15: 000000000119bf2c
------------[ cut here ]------------
WARNING: CPU: 1 PID: 11846 at include/linux/filter.h:612 bpf_prog_lock_ro include/linux/filter.h:612 [inline]
WARNING: CPU: 1 PID: 11846 at include/linux/filter.h:612 bpf_prog_select_runtime+0x3f1/0x4e0 kernel/bpf/core.c:1462
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 11846 Comm: syz-executor.4 Not tainted 4.14.210-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x283 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x4b kernel/panic.c:547
 report_bug+0x208/0x249 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:bpf_prog_lock_ro include/linux/filter.h:612 [inline]
RIP: 0010:bpf_prog_select_runtime+0x3f1/0x4e0 kernel/bpf/core.c:1462
RSP: 0018:ffff888051f3fbf8 EFLAGS: 00010216
RAX: 0000000000040000 RBX: ffffffff8160ba50 RCX: ffffc9000a717000
RDX: 0000000000010f43 RSI: ffffffff81605481 RDI: 0000000000000001
RBP: ffffc90012793000 R08: ffffffff8b9c1078 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809beecf40
R13: ffffc90012793000 R14: ffff888051f3fca8 R15: ffffc90012793000
 bpf_migrate_filter+0x242/0x2d0 net/core/filter.c:1060
 bpf_prepare_filter+0x14c/0x320 net/core/filter.c:1108
 __get_filter+0x196/0x240 net/core/filter.c:1301
 sk_attach_filter+0x1b/0x140 net/core/filter.c:1316
 sock_setsockopt+0x119a/0x1a50 net/core/sock.c:927
 SYSC_setsockopt net/socket.c:1861 [inline]
 SyS_setsockopt+0x1a4/0x1e0 net/socket.c:1844
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x45deb9
RSP: 002b:00007fc9bd794c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000002fd00 RCX: 000000000045deb9
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000004
RBP: 00007fc9bd794ca0 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020ab9ff0 R11: 0000000000000246 R12: 0000000000000013
R13: 00007ffddc85a98f R14: 00007fc9bd7959c0 R15: 000000000119bf2c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/12/03 15:24 linux-4.14.y c196b3a9c83a 59ad4022 .config console log report info ci2-linux-4-14
2020/10/29 19:01 linux-4.14.y 2b7915014161 a0c7169a .config console log report info ci2-linux-4-14
2020/07/14 04:14 linux-4.14.y b850307b279c ce4c95b3 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.