syzbot


WARNING in bpf_prog_select_runtime (3)

Status: upstream: reported C repro on 2022/02/06 16:31
Reported-by: syzbot+e89baa85da888f6e217b@syzkaller.appspotmail.com
First crash: 869d, last: 478d
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 1299d 1441d 0/1 auto-closed as invalid on 2021/04/02 15:25
linux-4.14 WARNING in bpf_prog_select_runtime (2) 1 1151d 1151d 0/1 auto-closed as invalid on 2021/08/28 08:39
upstream WARNING in bpf_prog_select_runtime bpf syz 45 2201d 2202d 8/27 fixed on 2018/07/09 18:05
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2023/03/03 23:54 23m bisect fix linux-4.14.y job log (0) log
2023/02/01 18:59 27m bisect fix linux-4.14.y job log (0) log
2022/11/11 06:40 26m bisect fix linux-4.14.y job log (0) log
2022/08/21 05:33 23m bisect fix linux-4.14.y job log (0) log
2022/04/07 09:16 21m bisect fix linux-4.14.y job log (0) log

Sample crash report:
RDX: 0000000020000480 RSI: 00000000401054d5 RDI: 0000000000000003
RBP: 0000000000000004 R08: 0000000000000002 R09: 0000000000000140
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffecb8a1220
R13: 00007ffecb8a1220 R14: 00007feedae250a1 R15: 00007ffecb8a1200
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7974 at include/linux/filter.h:612 bpf_prog_lock_ro include/linux/filter.h:612 [inline]
WARNING: CPU: 1 PID: 7974 at include/linux/filter.h:612 bpf_prog_select_runtime+0x3f1/0x4e0 kernel/bpf/core.c:1509
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7974 Comm: syz-executor160 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
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:183
 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:967
RIP: 0010:bpf_prog_lock_ro include/linux/filter.h:612 [inline]
RIP: 0010:bpf_prog_select_runtime+0x3f1/0x4e0 kernel/bpf/core.c:1509
RSP: 0018:ffff8880b3427b00 EFLAGS: 00010297
RAX: ffff888096624540 RBX: ffffffff815eca50 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff888096624df0 RDI: 0000000000000001
RBP: ffffc90001ac8000 R08: ffffffff8b9aa3e0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a8c98480
R13: ffffc90001ac8000 R14: ffff8880b3427bb0 R15: ffffc90001ac8000
 bpf_migrate_filter+0x242/0x2d0 net/core/filter.c:1067
 bpf_prepare_filter+0x14c/0x320 net/core/filter.c:1115
 __get_filter+0x196/0x240 net/core/filter.c:1308
 sk_attach_filter+0x1b/0x140 net/core/filter.c:1323
 tun_attach_filter drivers/net/tun.c:2253 [inline]
 __tun_chr_ioctl.isra.0+0xbd7/0x3440 drivers/net/tun.c:2602
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7feedade8a49
RSP: 002b:00007ffecb8a11e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007feedade8a49
RDX: 0000000020000480 RSI: 00000000401054d5 RDI: 0000000000000003
RBP: 0000000000000004 R08: 0000000000000002 R09: 0000000000000140
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffecb8a1220
R13: 00007ffecb8a1220 R14: 00007feedae250a1 R15: 00007ffecb8a1200
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/21 07:22 linux-4.14.y c4215ee4771b d3e76707 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/12/12 03:39 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/08/28 20:02 linux-4.14.y e548869f356f 07177916 .config console log report syz C ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/05/18 06:41 linux-4.14.y 690285a9380d 744a39e2 .config console log report syz C ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/02/06 16:42 linux-4.14.y b86ee2b7ae42 a7dab638 .config console log report syz C ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2023/03/04 05:58 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/12/26 05:23 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/12/12 03:23 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/10/12 06:35 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/09/17 12:59 linux-4.14.y 5df8b4735177 dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/09/12 12:00 linux-4.14.y 65640c873dcf 356d8217 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/08/28 19:53 linux-4.14.y e548869f356f 07177916 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/07/22 05:33 linux-4.14.y 9c3bf9cf362f 5e6028b9 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/06/30 17:40 linux-4.14.y f051383ef03b 1434eec0 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/06/11 20:11 linux-4.14.y b8f3be299d51 0d5abf15 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/06/08 14:39 linux-4.14.y b8f3be299d51 b2706118 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/05/26 08:28 linux-4.14.y 501eec4f9e13 3037caa9 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/05/22 03:00 linux-4.14.y dffb5c6ff09c 7268fa62 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/05/18 06:30 linux-4.14.y 690285a9380d 744a39e2 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/05/17 11:19 linux-4.14.y 690285a9380d 744a39e2 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/04/30 21:51 linux-4.14.y e3a56aaade89 2df221f6 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/04/14 01:58 linux-4.14.y 74766a973637 b17b2923 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/04/07 18:03 linux-4.14.y 74766a973637 53c67432 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/03/08 09:16 linux-4.14.y e853993d29aa 7bdd8b2c .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/03/02 08:49 linux-4.14.y fa33f9094f36 45a13a73 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/02/26 14:48 linux-4.14.y fa33f9094f36 45a13a73 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/02/26 00:51 linux-4.14.y fa33f9094f36 45a13a73 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
2022/02/06 16:30 linux-4.14.y b86ee2b7ae42 a7dab638 .config console log report info ci2-linux-4-14 WARNING in bpf_prog_select_runtime
* Struck through repros no longer work on HEAD.