syzbot


BUG: unable to handle kernel NULL pointer dereference in corrupted (2)

Status: fixed on 2018/08/07 13:43
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+c9ebf7fd9683e40ccebc@syzkaller.appspotmail.com
Fix commit: 99ba2b5aba24 bpf: sockhash, disallow bpf_tcp_close and update in parallel
First crash: 2110d, last: 2110d
Discussions (1)
Title Replies (including bot) Last reply
BUG: unable to handle kernel NULL pointer dereference in corrupted (2) 1 (2) 2018/07/18 08:48
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 BUG: unable to handle kernel NULL pointer dereference in corrupted C 406 14h36m 1236d 0/2 upstream: reported C repro on 2020/12/07 19:36
upstream BUG: unable to handle kernel NULL pointer dereference in corrupted (5) C done error 3 1498d 1505d 0/26 auto-obsoleted due to no activity on 2022/09/14 04:18
linux-4.19 BUG: unable to handle kernel NULL pointer dereference in corrupted C done 6 1067d 1649d 1/1 fixed on 2021/06/24 20:09
upstream BUG: unable to handle kernel NULL pointer dereference in corrupted (4) syz done done 1 1768d 1767d 12/26 fixed on 2019/08/27 17:15
upstream BUG: unable to handle kernel NULL pointer dereference in corrupted (3) C 1 1936d 1936d 11/26 fixed on 2019/03/06 07:43
linux-4.14 BUG: unable to handle kernel NULL pointer dereference in corrupted C inconclusive 3 1416d 1656d 0/1 upstream: reported C repro on 2019/10/14 10:06
upstream BUG: unable to handle kernel NULL pointer dereference in corrupted net C 5 2149d 2149d 8/26 fixed on 2018/07/09 18:05

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)
IPVS: ftp: loaded support on port[0] = 21
BUG: unable to handle kernel NULL pointer dereference at 0000000000000072
==================================================================
PGD 1acfe1067 
BUG: KASAN: stack-out-of-bounds in rcu_cblist_dequeue+0xaa/0xe0 kernel/rcu/rcu_segcblist.c:54
P4D 1acfe1067 
Read of size 8 at addr ffff8801cfe1e340 by task syz-executor568/12240
PUD 1c551a067 

PMD 0 
CPU: 0 PID: 12240 Comm: syz-executor568 Not tainted 4.18.0-rc3+ #57
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Oops: 0002 [#1] SMP KASAN
Call Trace:
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.18.0-rc3+ #57
 <IRQ>
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
RIP: 0010:K512_4+0x6792/0x120eac
Code: 
20 
36 
34 
 print_address_description+0x6c/0x20b mm/kasan/report.c:256
20 
34 
 kasan_report_error mm/kasan/report.c:354 [inline]
 kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412
20 
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433
74 
 rcu_cblist_dequeue+0xaa/0xe0 kernel/rcu/rcu_segcblist.c:54
68 
69 
 rcu_do_batch kernel/rcu/tree.c:2556 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2818 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2785 [inline]
 rcu_process_callbacks+0xf7e/0x1850 kernel/rcu/tree.c:2802
73 
20 
32 
35 
36 
20 
36 
34 
20 
34 
20 
 __do_softirq+0x2e8/0xb17 kernel/softirq.c:288
74 
68 
61 
74 
20 
00 
00 
00 
00 
00 
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x1d1/0x200 kernel/softirq.c:408
00 
 exiting_irq arch/x86/include/asm/apic.h:527 [inline]
 smp_apic_timer_interrupt+0x186/0x730 arch/x86/kernel/apic/apic.c:1052
00 
20 
30 
20 
33 
32 
20 
38 
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:863
20 
 </IRQ>
31 

32 
Allocated by task 0:
<20> 
(stack is not available)
74 

61 
Freed by task 3487688240:
72 67 65 74 5f 65 6e 74 72 79 20 39 36 20 32 34 20 35 20 
RSP: 0018:ffff8801daf07980 EFLAGS: 00010202
RAX: ffffffff81674dc6 RBX: ffffffff88bf2c08 RCX: 0000000000000000
RDX: ffffffff88bf2c08 RSI: 0000000000000000 RDI: ffff8801cfea94a0
RBP: ffff8801daf07c88 R08: 0000000000000000 R09: 0000000000000000
R10: fffffbfff157bc71 R11: ffffffff8abde38b R12: ffff8801cfea94a0
R13: ffff8801cfea94a8 R14: dffffc0000000000 R15: ffff8801daf07c60
FS:  0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000072 CR3: 00000001cae8d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __do_softirq+0x2e8/0xb17 kernel/softirq.c:288
 invoke_softirq kernel/softirq.c:368 [inline]
 irq_exit+0x1d1/0x200 kernel/softirq.c:408
 exiting_irq arch/x86/include/asm/apic.h:527 [inline]
 smp_apic_timer_interrupt+0x186/0x730 arch/x86/kernel/apic/apic.c:1052
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:863
 </IRQ>
RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54
Code: c7 48 89 45 d8 e8 8a 2d 23 fa 48 8b 45 d8 e9 d2 fe ff ff 48 89 df e8 79 2d 23 fa eb 8a 90 90 90 90 90 90 90 55 48 89 e5 fb f4 <5d> c3 0f 1f 84 00 00 00 00 00 55 48 89 e5 f4 5d c3 90 90 90 90 90 
RSP: 0018:ffff8801d9af7c38 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: dffffc0000000000 RBX: 1ffff1003b35ef8a RCX: ffffffff81667982
RDX: 1ffffffff11e3610 RSI: 0000000000000004 RDI: ffffffff88f1b080
RBP: ffff8801d9af7c38 R08: ffffed003b5e46d7 R09: ffffed003b5e46d6
R10: ffffed003b5e46d6 R11: ffff8801daf236b3 R12: 0000000000000001
R13: ffff8801d9af7cf0 R14: ffffffff899ee920 R15: 0000000000000000
 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline]
 default_idle+0xc7/0x450 arch/x86/kernel/process.c:500
 arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:491
 default_idle_call+0x6d/0x90 kernel/sched/idle.c:93
 cpuidle_idle_call kernel/sched/idle.c:153 [inline]
 do_idle+0x3aa/0x570 kernel/sched/idle.c:262
 cpu_startup_entry+0x10c/0x120 kernel/sched/idle.c:368
 start_secondary+0x433/0x5d0 arch/x86/kernel/smpboot.c:265
 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:242
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: 0000000000000072
---[ end trace 9d01a82a0b66f200 ]---
BUG: unable to handle kernel paging request at ffffffff8c3f7968
PGD 8e6d067 
RIP: 0010:K512_4+0x6792/0x120eac
P4D 8e6d067 
Code: 
PUD 8e6e063 
20 
PMD 0 
36 
34 
Thread overran stack, or stack corrupted
20 34 
Oops: 0000 [#2] SMP KASAN
20 
CPU: 0 PID: 12240 Comm: syz-executor568 Tainted: G      D           4.18.0-rc3+ #57
74 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
68 
RIP: 0010:depot_fetch_stack+0x10/0x30 lib/stackdepot.c:201
69 
Code: 
73 
e8 
20 
c5 
32 
2e 
35 
47 
36 
fe 
20 
e9 
36 
b3 
34 
fd 
20 
ff 
34 
ff 
20 
e8 
74 
bb 
68 
2e 
61 
47 
74 
fe 
20 
e9 
00 
55 
00 
fd 
00 
ff 
00 
ff 
00 
90 
00 
90 
00 
90 
20 
90 
30 
90 
20 
90 
33 
89 
32 
f8 
20 
c1 
38 
ef 
20 
11 
31 
25 
32 
ff 
<20> 
ff 
74 
1f 
61 
00 
72 
81 
67 
e7 
65 
f0 
74 
3f 
5f 
00 
65 
00 
6e 
<48> 
74 
03 
72 
3c 
79 
c5 
20 
60 
39 
39 
36 
43 
20 
8b 
32 
8b 
34 
47 
20 
0c 
35 
48 
20 
83 
c7 
RSP: 0018:ffff8801daf07980 EFLAGS: 00010202
18 
c7 
RAX: ffffffff81674dc6 RBX: ffffffff88bf2c08 RCX: 0000000000000000
46 10 
RDX: ffffffff88bf2c08 RSI: 0000000000000000 RDI: ffff8801cfea94a0
00 
RBP: ffff8801daf07c88 R08: 0000000000000000 R09: 0000000000000000
00 
R10: fffffbfff157bc71 R11: ffffffff8abde38b R12: ffff8801cfea94a0
00 
R13: ffff8801cfea94a8 R14: dffffc0000000000 R15: ffff8801daf07c60
00 
FS:  0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
RSP: 0018:ffff8801dae07898 EFLAGS: 00010006
CR2: 0000000000000072 CR3: 00000001cae8d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
RAX: 00000000001f8801 RBX: ffff8801cfe1e514 RCX: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
RDX: 0000000000000000 RSI: ffff8801dae078a0 RDI: 0000000000003ff0

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