WARNING in bpf_int_jit_compile

6 views
Skip to first unread message

syzbot

unread,
Jan 26, 2020, 11:29:09 PM1/26/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 8bac5040 Linux 4.14.167
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1246b611e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6ffa08bc186ce2d1
dashboard link: https://syzkaller.appspot.com/bug?extid=bd8e8f1508f8ee689fa9
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+bd8e8f...@syzkaller.appspotmail.com

RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000006
RBP: 000000000075bf20 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000007
R13: 0000000000000a17 R14: 00000000004cb794 R15: 0000000000000013
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9654 at include/linux/filter.h:628 bpf_jit_binary_lock_ro include/linux/filter.h:628 [inline]
WARNING: CPU: 0 PID: 9654 at include/linux/filter.h:628 bpf_int_jit_compile+0x58e/0x6c7 arch/x86/net/bpf_jit_comp.c:1192
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 9654 Comm: syz-executor.3 Not tainted 4.14.167-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+0x142/0x197 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x2f/0x2f kernel/panic.c:547
report_bug+0x216/0x254 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+0x1bb/0x310 arch/x86/kernel/traps.c:295
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:bpf_jit_binary_lock_ro include/linux/filter.h:628 [inline]
RIP: 0010:bpf_int_jit_compile+0x58e/0x6c7 arch/x86/net/bpf_jit_comp.c:1192
RSP: 0018:ffff8880549bfaf8 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff8880549bfb90 RCX: ffffc90008427000
RDX: 000000000000f5b4 RSI: ffffffff8136ab5e RDI: 0000000000000001
RBP: ffff8880549bfbb8 R08: ffff888060600600 R09: ffff888060600ea0
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000065
R13: ffff888060600600 R14: ffffc90001937000 R15: ffff88808e192f40
bpf_prog_select_runtime+0xe5/0x4d0 kernel/bpf/core.c:1455
bpf_migrate_filter net/core/filter.c:1060 [inline]
bpf_prepare_filter net/core/filter.c:1108 [inline]
bpf_prepare_filter+0x744/0xb20 net/core/filter.c:1074
__get_filter+0x19e/0x240 net/core/filter.c:1301
sk_attach_filter+0x1e/0x90 net/core/filter.c:1316
sock_setsockopt+0x1157/0x1950 net/core/sock.c:927
SYSC_setsockopt net/socket.c:1861 [inline]
SyS_setsockopt+0x1d7/0x210 net/socket.c:1844
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x45b349
RSP: 002b:00007fafe3b29c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fafe3b2a6d4 RCX: 000000000045b349
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000006
RBP: 000000000075bf20 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000140 R11: 0000000000000246 R12: 0000000000000007
R13: 0000000000000a17 R14: 00000000004cb794 R15: 0000000000000013
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jan 26, 2020, 11:45:10 PM1/26/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 8bac5040 Linux 4.14.167
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13bb8b35e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6ffa08bc186ce2d1
dashboard link: https://syzkaller.appspot.com/bug?extid=bd8e8f1508f8ee689fa9
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16e1779ee00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=142fe335e00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+bd8e8f...@syzkaller.appspotmail.com

RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007ffe460f0760 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000140 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7292 at include/linux/filter.h:628 bpf_jit_binary_lock_ro include/linux/filter.h:628 [inline]
WARNING: CPU: 0 PID: 7292 at include/linux/filter.h:628 bpf_int_jit_compile+0x58e/0x6c7 arch/x86/net/bpf_jit_comp.c:1192
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7292 Comm: syz-executor593 Not tainted 4.14.167-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+0x142/0x197 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x2f/0x2f kernel/panic.c:547
report_bug+0x216/0x254 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+0x1bb/0x310 arch/x86/kernel/traps.c:295
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:963
RIP: 0010:bpf_jit_binary_lock_ro include/linux/filter.h:628 [inline]
RIP: 0010:bpf_int_jit_compile+0x58e/0x6c7 arch/x86/net/bpf_jit_comp.c:1192
RSP: 0018:ffff888099337af8 EFLAGS: 00010297
RAX: ffff8880885285c0 RBX: ffff888099337b90 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff888088528e40 RDI: 0000000000000001
RBP: ffff888099337bb8 R08: ffff8880885285c0 R09: ffff888088528e60
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000065
R13: ffff8880885285c0 R14: ffffc900018fe000 R15: ffff8880a9e72140
bpf_prog_select_runtime+0xe5/0x4d0 kernel/bpf/core.c:1455
bpf_migrate_filter net/core/filter.c:1060 [inline]
bpf_prepare_filter net/core/filter.c:1108 [inline]
bpf_prepare_filter+0x744/0xb20 net/core/filter.c:1074
__get_filter+0x19e/0x240 net/core/filter.c:1301
sk_attach_filter+0x1e/0x90 net/core/filter.c:1316
sock_setsockopt+0x1157/0x1950 net/core/sock.c:927
SYSC_setsockopt net/socket.c:1861 [inline]
SyS_setsockopt+0x1d7/0x210 net/socket.c:1844
do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4411c9
RSP: 002b:00007ffe460f0748 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004411c9
RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007ffe460f0760 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000020000140 R11: 0000000000000246 R12: ffffffffffffffff
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
Reply all
Reply to author
Forward
0 new messages