syzbot


WARNING in bpf_prog_select_runtime (2)

Status: auto-closed as invalid on 2021/08/28 08:39
Reported-by: syzbot+961fedee16d296b1eb5b@syzkaller.appspotmail.com
First crash: 1103d, last: 1103d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in bpf_prog_select_runtime 3 1251d 1393d 0/1 auto-closed as invalid on 2021/04/02 15:25
upstream WARNING in bpf_prog_select_runtime bpf syz 45 2153d 2154d 8/26 fixed on 2018/07/09 18:05
linux-4.14 WARNING in bpf_prog_select_runtime (3) C 28 430d 821d 0/1 upstream: reported C repro on 2022/02/06 16:31

Sample crash report:
(UME) 
 0
583*8kB 
------------[ cut here ]------------
(UME) 
WARNING: CPU: 1 PID: 27818 at include/linux/filter.h:612 bpf_prog_lock_ro include/linux/filter.h:612 [inline]
WARNING: CPU: 1 PID: 27818 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: 27818 Comm: systemd-rfkill Not tainted 4.14.232-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/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 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:ffff8880979afbf8 EFLAGS: 00010297
118*16kB 
RAX: ffff888077b2c500 RBX: ffffffff815e92e0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff888077b2cd88 RDI: 0000000000000001
RBP: ffffc9000890c000 R08: ffffffff8b9b4e30 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880688a4300
R13: ffffc9000890c000 R14: ffff8880979afca8 R15: ffffc9000890c000
 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
(UME) 
 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:0x7f09b33dceba
RSP: 002b:00007ffd765a4998 EFLAGS: 00000202 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007f09b33dceba
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000005
RBP: 00007ffd765a49c0 R08: 0000000000000010 R09: 0000000000000015
R10: 00007ffd765a49b0 R11: 0000000000000202 R12: 0000000000000006
R13: 00007ffd765a49f8 R14: 0000000000000000 R15: 0000561ffa634780
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/30 08:38 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
* Struck through repros no longer work on HEAD.