syzbot


WARNING in ___bpf_prog_run

Status: fixed on 2018/01/22 13:19
Subsystems: bpf
[Documentation on labels]
Reported-by: syzbot+93c4904c5c70348a6890@syzkaller.appspotmail.com
Fix commit: 7891a87efc71 bpf: arsh is not supported in 32 bit alu thus reject it
First crash: 2298d, last: 2291d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 4.4 00/67] 4.4.115-stable review 76 (76) 2018/03/03 09:14
[PATCH 4.9 00/66] 4.9.79-stable review 72 (72) 2018/02/28 15:46
divide error in ___bpf_prog_run 27 (30) 2018/01/22 13:31
[PATCH 4.14 000/118] 4.14.14-stable review 139 (139) 2018/01/16 20:50
[PATCH bpf] bpf: arsh is not supported in 32 bit alu thus reject it 2 (2) 2018/01/10 22:57
WARNING in ___bpf_prog_run 1 (2) 2018/01/10 18:50

Sample crash report:
audit: type=1400 audit(1515598455.948:9): avc:  denied  { prog_run } for  pid=3508 comm="syzkaller119692" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1
------------[ cut here ]------------
unknown opcode cc
WARNING: CPU: 0 PID: 3508 at kernel/bpf/core.c:1283 ___bpf_prog_run+0x492a/0x5eb0 kernel/bpf/core.c:1283
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 3508 Comm: syzkaller119692 Not tainted 4.15.0-rc7+ #256
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+0x194/0x257 lib/dump_stack.c:53
 panic+0x1e4/0x41c kernel/panic.c:183
 __warn+0x1dc/0x200 kernel/panic.c:547
 report_bug+0x211/0x2d0 lib/bug.c:184
 fixup_bug.part.11+0x37/0x80 arch/x86/kernel/traps.c:178
 fixup_bug arch/x86/kernel/traps.c:247 [inline]
 do_error_trap+0x2d7/0x3e0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:315
 invalid_op+0x22/0x40 arch/x86/entry/entry_64.S:1079
RIP: 0010:___bpf_prog_run+0x492a/0x5eb0 kernel/bpf/core.c:1283
RSP: 0018:ffff8801bfdeefe8 EFLAGS: 00010282
RAX: dffffc0000000008 RBX: 1ffff10037fbde08 RCX: ffffffff8159da9e
RDX: 0000000000000000 RSI: ffff8801c9d08de0 RDI: 0000000000000293
RBP: ffff8801bfdef0e8 R08: 1ffff10037fbdd90 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
R13: ffffc90000002048 R14: 00000000000000cc R15: 0000000000000000
 __bpf_prog_run32+0xce/0x130 kernel/bpf/core.c:1307
 bpf_prog_run_save_cb include/linux/filter.h:546 [inline]
 sk_filter_trim_cap+0x33c/0x9c0 net/core/filter.c:103
 sk_filter include/linux/filter.h:675 [inline]
 netlink_unicast+0x1b9/0x700 net/netlink/af_netlink.c:1303
 nlmsg_unicast include/net/netlink.h:608 [inline]
 rtnl_unicast net/core/rtnetlink.c:636 [inline]
 rtnl_stats_get+0x7bb/0xa10 net/core/rtnetlink.c:4245
 rtnetlink_rcv_msg+0x733/0x1020 net/core/rtnetlink.c:4411
 netlink_rcv_skb+0x224/0x470 net/netlink/af_netlink.c:2408
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4423
 netlink_unicast_kernel net/netlink/af_netlink.c:1275 [inline]
 netlink_unicast+0x4ee/0x700 net/netlink/af_netlink.c:1301
 netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1864
 sock_sendmsg_nosec net/socket.c:636 [inline]
 sock_sendmsg+0xca/0x110 net/socket.c:646
 sock_write_iter+0x31a/0x5d0 net/socket.c:915
 call_write_iter include/linux/fs.h:1772 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x684/0x970 fs/read_write.c:482
 vfs_write+0x189/0x510 fs/read_write.c:544
 SYSC_write fs/read_write.c:589 [inline]
 SyS_write+0xef/0x220 fs/read_write.c:581
 entry_SYSCALL_64_fastpath+0x23/0x9a
RIP: 0033:0x43ffc9
RSP: 002b:00007fff8693ea68 EFLAGS: 00000217 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: ffffffffffffffff RCX: 000000000043ffc9
RDX: 0000000000000026 RSI: 0000000020fd3000 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000217 R12: 0000000000401930
R13: 00000000004019c0 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
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
2018/01/10 15:35 upstream cf1fb158230e 02a19b64 .config console log report syz C ci-upstream-kasan-gce
2018/01/10 17:29 upstream cf1fb158230e 02a19b64 .config console log report syz C ci-upstream-kasan-gce-386
2018/01/10 15:22 net-next-old 61ad64080e03 02a19b64 .config console log report syz C ci-upstream-net-kasan-gce
2018/01/10 16:12 linux-next b4464bcab38d 02a19b64 .config console log report syz C ci-upstream-next-kasan-gce
2018/01/10 15:35 mmots 69eed2290e1d 02a19b64 .config console log report syz C ci-upstream-mmots-kasan-gce
2018/01/16 02:00 upstream a8750ddca918 e17f4a5d .config console log report ci-upstream-kasan-gce
2018/01/14 14:27 upstream 2c1cfa499018 c9e7aeae .config console log report ci-upstream-kasan-gce
2018/01/13 15:48 upstream c92a9a461dff c9e7aeae .config console log report ci-upstream-kasan-gce
2018/01/17 01:01 upstream 41aa5e5d712b a46e5318 .config console log report ci-upstream-kasan-gce-386
2018/01/14 23:40 upstream 9443c168505d 66d492a6 .config console log report ci-upstream-kasan-gce-386
2018/01/17 06:43 net-next-old e02f08a07098 a46e5318 .config console log report ci-upstream-net-kasan-gce
2018/01/17 05:48 net-next-old e02f08a07098 a46e5318 .config console log report ci-upstream-net-kasan-gce
2018/01/17 03:24 net-next-old e02f08a07098 a46e5318 .config console log report ci-upstream-net-kasan-gce
2018/01/17 01:40 net-next-old e02f08a07098 a46e5318 .config console log report ci-upstream-net-kasan-gce
2018/01/16 23:45 net-next-old e02f08a07098 a46e5318 .config console log report ci-upstream-net-kasan-gce
2018/01/16 19:18 net-next-old 79d891c1bbb6 4198e588 .config console log report ci-upstream-net-kasan-gce
2018/01/16 18:43 net-next-old 79d891c1bbb6 4198e588 .config console log report ci-upstream-net-kasan-gce
2018/01/16 17:04 net-next-old 79d891c1bbb6 4198e588 .config console log report ci-upstream-net-kasan-gce
2018/01/16 16:08 net-next-old 79d891c1bbb6 4198e588 .config console log report ci-upstream-net-kasan-gce
2018/01/16 10:50 net-next-old 79d891c1bbb6 4198e588 .config console log report ci-upstream-net-kasan-gce
2018/01/15 16:02 net-next-old 564737f981fb 66d492a6 .config console log report ci-upstream-net-kasan-gce
2018/01/15 13:16 net-next-old 564737f981fb 66d492a6 .config console log report ci-upstream-net-kasan-gce
2018/01/15 00:46 net-next-old 1988c7957881 66d492a6 .config console log report ci-upstream-net-kasan-gce
2018/01/14 21:51 net-next-old 1988c7957881 66d492a6 .config console log report ci-upstream-net-kasan-gce
2018/01/14 21:45 net-next-old 1988c7957881 66d492a6 .config console log report ci-upstream-net-kasan-gce
2018/01/14 09:22 net-next-old 6bd39bc3da0f c9e7aeae .config console log report ci-upstream-net-kasan-gce
2018/01/13 05:39 net-next-old 6bd39bc3da0f 9dc808a6 .config console log report ci-upstream-net-kasan-gce
2018/01/10 15:08 net-next-old 61ad64080e03 02a19b64 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.