syzbot


kernel BUG at mm/slab.c:LINE! (2)

Status: fixed on 2018/08/07 13:43
Subsystems: hardening mm
[Documentation on labels]
Reported-by: syzbot+885bda95271928dc24eb@syzkaller.appspotmail.com
Fix commit: 6e6fddc78323 bpf: fix panic due to oob in bpf_prog_test_run_skb
First crash: 2210d, last: 2094d
Discussions (1)
Title Replies (including bot) Last reply
kernel BUG at mm/slab.c:LINE! (2) 3 (4) 2018/07/09 16:30
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at mm/slab.c:LINE! (4) fs 12 1780d 1848d 12/26 fixed on 2019/06/14 18:22
upstream kernel BUG at mm/slab.c:LINE! (3) mm C done 14 1854d 1981d 11/26 fixed on 2019/03/21 17:09
upstream kernel BUG at mm/slab.c:LINE! C 860 2414d 2418d 3/26 fixed on 2017/10/24 06:54
linux-4.14 kernel BUG at mm/slab.c:LINE! C inconclusive 23 1091d 1717d 0/1 upstream: reported C repro on 2019/08/04 15:26

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
------------[ cut here ]------------
kernel BUG at mm/slab.c:4421!
invalid opcode: 0000 [#1] SMP KASAN
CPU: 0 PID: 4467 Comm: syz-executor607 Not tainted 4.18.0-rc3+ #48
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__check_heap_object+0xa7/0xb5 mm/slab.c:4446
Code: 48 c7 c7 90 73 c0 88 e8 87 7a 08 00 5d c3 41 8b 91 04 01 00 00 48 29 c7 48 39 d7 77 be 48 01 d0 48 29 c8 48 39 f0 72 b3 5d c3 <0f> 0b 48 c7 c7 90 73 c0 88 e8 6d 81 08 00 44 89 e1 4c 8d 45 c4 48 
RSP: 0018:ffff8801ab117a10 EFLAGS: 00010246
RAX: 0000000000000006 RBX: 1ffff10035622f49 RCX: 0000000000000009
RDX: ffff8801c27ff000 RSI: 00000000000003d2 RDI: ffff8801c27ffff2
RBP: ffff8801ab117a10 R08: ffff8801ab37a680 R09: ffff8801da800940
R10: 0000000000000991 R11: 0000000000000001 R12: ffff8801c27ffff2
R13: 00000000000003d2 R14: 0000000000000001 R15: ffffea000709ffc0
FS:  0000000000763880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 00000001b0a8b000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 check_heap_object mm/usercopy.c:236 [inline]
 __check_object_size+0x4db/0x5f2 mm/usercopy.c:259
 check_object_size include/linux/thread_info.h:119 [inline]
 check_copy_size include/linux/thread_info.h:150 [inline]
 copy_to_user include/linux/uaccess.h:154 [inline]
 bpf_test_finish.isra.7+0xd9/0x1f0 net/bpf/test_run.c:59
 bpf_prog_test_run_skb+0x7d7/0xa30 net/bpf/test_run.c:144
 bpf_prog_test_run+0x130/0x1a0 kernel/bpf/syscall.c:1686
 __do_sys_bpf kernel/bpf/syscall.c:2323 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:2267 [inline]
 __x64_sys_bpf+0x3d8/0x510 kernel/bpf/syscall.c:2267
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4402d9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fff168c6558 EFLAGS: 00000213 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004402d9
RDX: 0000000000000028 RSI: 0000000020000080 RDI: 000000000000000a
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401b60
R13: 0000000000401bf0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace 045402f983996608 ]---
RIP: 0010:__check_heap_object+0xa7/0xb5 mm/slab.c:4446
Code: 48 c7 c7 90 73 c0 88 e8 87 7a 08 00 5d c3 41 8b 91 04 01 00 00 48 29 c7 48 39 d7 77 be 48 01 d0 48 29 c8 48 39 f0 72 b3 5d c3 <0f> 0b 48 c7 c7 90 73 c0 88 e8 6d 81 08 00 44 89 e1 4c 8d 45 c4 48 
RSP: 0018:ffff8801ab117a10 EFLAGS: 00010246
RAX: 0000000000000006 RBX: 1ffff10035622f49 RCX: 0000000000000009
RDX: ffff8801c27ff000 RSI: 00000000000003d2 RDI: ffff8801c27ffff2
RBP: ffff8801ab117a10 R08: ffff8801ab37a680 R09: ffff8801da800940
R10: 0000000000000991 R11: 0000000000000001 R12: ffff8801c27ffff2
R13: 00000000000003d2 R14: 0000000000000001 R15: ffffea000709ffc0
FS:  0000000000763880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 00000001b0a8b000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (701):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/09 06:00 bpf-next d90c936fb318 f25e5770 .config console log report syz C ci-upstream-bpf-next-kasan-gce
2018/07/18 03:41 upstream 3c53776e29f8 6d5bd5b5 .config console log report ci-upstream-kasan-gce-root
2018/04/26 01:14 upstream 26ed24e429d8 73417389 .config console log report ci-upstream-kasan-gce
2018/04/08 14:51 upstream f2d285669aae 77bd5117 .config console log report ci-upstream-kasan-gce-386
2018/03/29 19:41 upstream 0b412605ef5f d47f0ed6 .config console log report ci-upstream-kasan-gce-386
2018/07/12 09:55 bpf 61d769807f27 2e0e3130 .config console log report ci-upstream-bpf-kasan-gce
2018/07/23 17:51 bpf-next 8ae71e76cf1f f69c5fcd .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 17:08 bpf-next 8ae71e76cf1f f69c5fcd .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 15:36 bpf-next 8ae71e76cf1f f69c5fcd .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 14:04 bpf-next 8ae71e76cf1f f69c5fcd .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 12:31 bpf-next 8ae71e76cf1f f69c5fcd .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 11:30 bpf-next 8ae71e76cf1f f69c5fcd .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 07:25 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 05:08 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 03:04 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 01:50 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/23 01:22 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 23:27 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 21:54 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 20:03 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 16:38 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 14:20 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 12:19 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 10:51 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 08:40 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 06:12 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 04:52 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 03:09 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/22 00:39 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 22:48 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 21:47 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 20:30 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 19:10 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 18:05 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 16:48 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 14:50 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 13:23 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 11:50 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 09:13 bpf-next 8ae71e76cf1f 8cc079c3 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 04:54 bpf-next 8ae71e76cf1f af255b09 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/21 01:36 bpf-next 8ae71e76cf1f af255b09 .config console log report ci-upstream-bpf-next-kasan-gce
2018/07/20 17:41 net-next-old a3eed83a1895 49f35839 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.