syzbot


BUG: unable to handle kernel paging request in cpuacct_charge

Status: fixed on 2018/08/07 13:43
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+938e0fd94881608d9015@syzkaller.appspotmail.com
Fix commit: 99ba2b5aba24 bpf: sockhash, disallow bpf_tcp_close and update in parallel
First crash: 2166d, last: 2166d

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: cc1: uninitialized urandom read (8 bytes read)
IPVS: ftp: loaded support on port[0] = 21
kasan: CONFIG_KASAN_INLINE enabled
BUG: unable to handle kernel paging request at ffffde00707d120c
kasan: GPF could be caused by NULL-ptr deref or user memory access
PGD 0 P4D 0 
Oops: 0000 [#1] SMP KASAN
CPU: 1 PID: 4544 Comm: syz-executor0 Not tainted 4.18.0-rc5+ #151
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:cpuacct_charge+0x21e/0x5d0 kernel/sched/cpuacct.c:350
Code: 9c 24 30 01 00 00 65 48 03 1d 96 fa a3 7e 48 63 85 70 ff ff ff 48 ba 00 00 00 00 00 fc ff df 48 8d 3c c3 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 2f 03 00 00 49 8d bc 24 28 01 00 00 4c 8d 34 c5 
RSP: 0018:ffff8801d8fef218 EFLAGS: 00010806
RAX: 0000000000000000 RBX: ffff100383e89060 RCX: 1fffe200707d120c
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff100383e89060
RBP: ffff8801d8fef2b0 R08: ffffed003b5e46d7 R09: ffffed003b5e46d6
R10: 00000000000052f9 R11: ffff8801daf236b3 R12: ffff8801ac9c9a80
R13: ffff8801d899c900 R14: dffffc0000000000 R15: 1ffff1003b1fde45
FS:  00000000025ae940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffde00707d120c CR3: 00000001cf6fb000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 cgroup_account_cputime include/linux/cgroup.h:724 [inline]
 update_curr+0x389/0xc00 kernel/sched/fair.c:832
 dequeue_entity+0xd9/0x15e0 kernel/sched/fair.c:4280
 dequeue_task_fair+0xfd/0xa10 kernel/sched/fair.c:5454
 dequeue_task kernel/sched/core.c:761 [inline]
 deactivate_task+0xf3/0x330 kernel/sched/core.c:777
 __schedule+0x9c9/0x1ed0 kernel/sched/core.c:3451
 schedule+0xfb/0x450 kernel/sched/core.c:3545
 freezable_schedule include/linux/freezer.h:172 [inline]
 do_nanosleep+0x20e/0x750 kernel/time/hrtimer.c:1689
 hrtimer_nanosleep+0x2d4/0x620 kernel/time/hrtimer.c:1743
 __do_sys_nanosleep kernel/time/hrtimer.c:1777 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:1764 [inline]
 __x64_sys_nanosleep+0x1e7/0x280 kernel/time/hrtimer.c:1764
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4811c0
Code: 05 48 3d 01 f0 ff ff 0f 83 0d 03 f9 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 83 3d 91 52 5c 00 00 75 14 b8 23 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 e4 02 f9 ff c3 48 83 ec 08 e8 6a 74 fd ff 
RSP: 002b:00007ffca6bd44f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 00000000000276a2 RCX: 00000000004811c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffca6bd4500
RBP: 0000000000000000 R08: 0000000000000001 R09: 00000000025ae940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000009
R13: 0000000000000012 R14: 00007ffca6bd4bc0 R15: 0000000000027690
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: ffffde00707d120c
---[ end trace 0254bc3b5c080e7f ]---
general protection fault: 0000 [#2] SMP KASAN
CPU: 0 PID: 4561 Comm: syz-executor0 Tainted: G      D           4.18.0-rc5+ #151
RIP: 0010:cpuacct_charge+0x21e/0x5d0 kernel/sched/cpuacct.c:350
Code: 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
9c 
RIP: 0010:cpuacct_account_field+0x17b/0x3b0 kernel/sched/cpuacct.c:366
24 
Code: 
30 
0f 
01 
84 
00 
81 
00 
00 
65 
00 
48 
00 
03 
4c 
1d 96 
63 
fa 
ad 
a3 
74 
7e 48 
ff 
63 
ff ff 
85 
48 
70 
b8 
ff 
00 
ff 
00 
ff 
00 
48 ba 
00 
00 
00 
00 00 
fc 
00 
ff 
00 
df 
fc 
49 c1 
ff 
e5 
df 48 
03 49 
8d 
8d 
3c c3 
bc 
48 
24 
89 
38 01 
f9 48 
00 
c1 
00 
e9 
48 
03 
89 
<80> 
fa 48 
3c 11 
c1 
00 
ea 
0f 
03 
85 
<80> 
2f 
3c 
03 
02 
00 00 
00 0f 
49 
85 
8d bc 
af 01 
24 
00 00 
28 
49 
01 00 
8b 
00 
9c 
4c 8d 
24 
34 
38 
c5 
01 
00 00 
RSP: 0018:ffff8801d8fef218 EFLAGS: 00010806
65 
48 
RAX: 0000000000000000 RBX: ffff100383e89060 RCX: 1fffe200707d120c
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff100383e89060
03 1d 
RBP: ffff8801d8fef2b0 R08: ffffed003b5e46d7 R09: ffffed003b5e46d6
R10: 00000000000052f9 R11: ffff8801daf236b3 R12: ffff8801ac9c9a80
RSP: 0018:ffff8801dae078e8 EFLAGS: 00010806
R13: ffff8801d899c900 R14: dffffc0000000000 R15: 1ffff1003b1fde45
FS:  00000000025ae940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
RAX: dffffc0000000000 RBX: ffff8801dadfffff RCX: 0000000000000000
RDX: 1bd5a9d5a0000027 RSI: 0000000000000000 RDI: dead4ead00000138
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
RBP: ffff8801dae07978 R08: ffffed003b5c46d7 R09: ffffed003b5c46d6
R10: ffffed003b5c46d6 R11: ffff8801dae236b3 R12: dead4ead00000000
CR2: ffffde00707d120c CR3: 00000001cf6fb000 CR4: 00000000001406e0
R13: 0000000000000010 R14: 1ffff1003b5c0f1e R15: 00000000000f4240
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
FS:  00000000025ae940(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/17 05:57 upstream 30b06abfb92b 13761366 .config console log report syz ci-upstream-kasan-gce-root
2018/07/17 01:33 bpf-next 301f935be9e0 40cb0c9a .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.