syzbot


KASAN: stack-out-of-bounds Read in fib_table_lookup

Status: fixed on 2018/09/11 15:03
Subsystems: net
[Documentation on labels]
Fix commit: 99ba2b5aba24 bpf: sockhash, disallow bpf_tcp_close and update in parallel
First crash: 2105d, last: 2105d

Sample crash report:
PANIC: double fault, error_code: 0x0
==================================================================
CPU: 0 PID: 22929 Comm: syz-executor3 Not tainted 4.18.0-rc3+ #55
BUG: KASAN: stack-out-of-bounds in fib_table_lookup+0x20fc/0x24a0 net/ipv4/fib_trie.c:1455
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Read of size 1 at addr ffff8801cae9c474 by task swapper/1/0
RIP: 0010:__lock_acquire+0x2e/0x5020 kernel/locking/lockdep.c:3294

Code: 
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.18.0-rc3+ #55
41 57 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
41 
Call Trace:
89 cf 
 <IRQ>
41 56 
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
41 55 
49 
89 
fd 41 
54 45 
 print_address_description+0x6c/0x20b mm/kasan/report.c:256
89 
cc 
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412
53 
 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:430
65 
 fib_table_lookup+0x20fc/0x24a0 net/ipv4/fib_trie.c:1455
4c 
8b 
34 
25 
40 
ee 
01 
00 48 
83 e4 
f0 
48 
81 ec 
60 
03 
00 
00 
48 
 fib_lookup include/net/ip_fib.h:330 [inline]
 ip_route_input_slow+0xbe9/0x3d50 net/ipv4/route.c:1992
8b 45 
10 
<89> 
94 
24 
80 
00 
00 00 
48 
ba 
00 
00 
00 00 
00 
fc ff 
df 48 
89 
84 
24 98 
RSP: 0018:ffff8801caa86f20 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 1ffff10039550e61 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88f92620
RBP: ffff8801caa872b0 R08: 0000000000000000 R09: 0000000000000000
R10: ffff8801caf6fbe0 R11: ffff8801c13b0afb R12: 0000000000000000
R13: ffffffff88f92620 R14: ffff8801c13b0380 R15: 0000000000000002
FS:  00000000020c7940(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8801caa86f18 CR3: 00000001af628000 CR4: 00000000001406f0
DR0: 00000000200001c0 DR1: 00000000200001c0 DR2: 00000000200001c0
DR3: 00000000200001c0 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/15 20:06 bpf-next 13f7432bdd8e 92a49505 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.