syzbot


KASAN: slab-out-of-bounds Read in corrupted

Status: fixed on 2018/08/07 13:43
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+a7429c9ff268823af453@syzkaller.appspotmail.com
Fix commit: 99ba2b5aba24 bpf: sockhash, disallow bpf_tcp_close and update in parallel
First crash: 2279d, last: 2279d
Discussions (1)
Title Replies (including bot) Last reply
KASAN: slab-out-of-bounds Read in corrupted 1 (2) 2018/07/18 08:47
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in corrupted (2) hardening mm syz done 3 1906d 1956d 12/28 fixed on 2019/08/27 17:15

Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in do_error_trap+0x3b6/0x4d0 arch/x86/kernel/traps.c:296
Read of size 8 at addr ffff8801c0ce3cb0 by task syz-executor113/9480

CPU: 1 PID: 9480 Comm: syz-executor113 Not tainted 4.18.0-rc3+ #57
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:

Allocated by task 2164292896:
BUG: unable to handle kernel paging request at ffffffff8c433958
PGD 8e6d067 P4D 8e6d067 PUD 8e6e063 PMD 0 
Thread overran stack, or stack corrupted
Oops: 0000 [#1] SMP KASAN
CPU: 1 PID: 9480 Comm: syz-executor113 Not tainted 4.18.0-rc3+ #57
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:depot_fetch_stack+0x10/0x30 lib/stackdepot.c:201
Code: e8 c5 2e 47 fe e9 b3 fd ff ff e8 bb 2e 47 fe e9 55 fd ff ff 90 90 90 90 90 90 89 f8 c1 ef 11 25 ff ff 1f 00 81 e7 f0 3f 00 00 <48> 03 3c c5 60 39 43 8b 8b 47 0c 48 83 c7 18 c7 46 10 00 00 00 00 
RSP: 0018:ffff8801c0ce3a08 EFLAGS: 00010006
RAX: 00000000001fffff RBX: ffff8801c0ce3bc4 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8801c0ce3a10 RDI: 0000000000003ff0
RBP: ffff8801c0ce3a38 R08: ffff8801b2632440 R09: ffffed003b5e3ec2
R10: ffffed003b5e3ec2 R11: ffff8801daf1f617 R12: ffff8801c0ce2bc0
R13: ffff8801c0ce3cb0 R14: ffff8801da987dc0 R15: ffff8801c0ce3bc0
FS:  0000000000b43940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff8c433958 CR3: 00000001ae01a000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: ffffffff8c433958
---[ end trace 3b9527e7dfd4d0bc ]---
RIP: 0010:depot_fetch_stack+0x10/0x30 lib/stackdepot.c:201
Code: e8 c5 2e 47 fe e9 b3 fd ff ff e8 bb 2e 47 fe e9 55 fd ff ff 90 90 90 90 90 90 89 f8 c1 ef 11 25 ff ff 1f 00 81 e7 f0 3f 00 00 <48> 03 3c c5 60 39 43 8b 8b 47 0c 48 83 c7 18 c7 46 10 00 00 00 00 
RSP: 0018:ffff8801c0ce3a08 EFLAGS: 00010006
RAX: 00000000001fffff RBX: ffff8801c0ce3bc4 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8801c0ce3a10 RDI: 0000000000003ff0
RBP: ffff8801c0ce3a38 R08: ffff8801b2632440 R09: ffffed003b5e3ec2
R10: ffffed003b5e3ec2 R11: ffff8801daf1f617 R12: ffff8801c0ce2bc0
R13: ffff8801c0ce3cb0 R14: ffff8801da987dc0 R15: ffff8801c0ce3bc0
FS:  0000000000b43940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffff8c433958 CR3: 00000001ae01a000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/18 00:43 bpf-next dc989d2ce2c2 6d5bd5b5 .config console log report syz C ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.