BUG: unable to handle kernel paging request in cpuacct_charge

38 views
Skip to first unread message

syzbot

unread,
Jul 17, 2018, 1:29:02 AM7/17/18
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 301f935be9e0 sch_cake: Fix tin order when set through skb-..
git tree: bpf-next
console output: https://syzkaller.appspot.com/x/log.txt?x=1359ad2c400000
kernel config: https://syzkaller.appspot.com/x/.config?x=89129667b46496c3
dashboard link: https://syzkaller.appspot.com/bug?extid=938e0fd94881608d9015
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
CC: [linux-...@vger.kernel.org tg...@linutronix.de]

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+938e0f...@syzkaller.appspotmail.com

BUG: unable to handle kernel paging request at ffff8801d1d79b10
PGD b4e2067 P4D b4e2067 PUD 1d943c063 PMD 197485063 PTE ffffffff88bf2c08
Oops: 0000 [#1] SMP KASAN
CPU: 1 PID: 4473 Comm: syz-executor7 Not tainted 4.18.0-rc3+ #56
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:task_css include/linux/cgroup.h:477 [inline]
RIP: 0010:task_ca kernel/sched/cpuacct.c:43 [inline]
RIP: 0010:cpuacct_charge+0x1c2/0x5d0 kernel/sched/cpuacct.c:349
Code: 45 30 3c 08 00 0f 84 04 02 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d
7d 10 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 65 03 00 00 <4d> 8b 65 10 4d
85 e4 0f 84 0a 01 00 00 49 8d bc 24 30 01 00 00 48
RSP: 0018:ffff8801a036f220 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8801c8b82000 RCX: 0000000000000000
RDX: 1ffff1003a3af362 RSI: 0000000000000000 RDI: ffff8801d1d79b10
RBP: ffff8801a036f2b8 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000003abb R11: 0000000000000000 R12: 1ffff1003406de4a
R13: ffff8801d1d79b00 R14: dffffc0000000000 R15: 1ffff1003406de46
FS: 0000000001633940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8801d1d79b10 CR3: 00000001a0122000 CR4: 00000000001406e0
DR0: 0000000020000080 DR1: 0000000020000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
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:4288
dequeue_task_fair+0xf2/0x9e0 kernel/sched/fair.c:5455
dequeue_task kernel/sched/core.c:762 [inline]
deactivate_task+0xf3/0x330 kernel/sched/core.c:778
__schedule+0x9c9/0x1ed0 kernel/sched/core.c:3454
schedule+0xfb/0x450 kernel/sched/core.c:3548
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:00007fffecad1ab8 EFLAGS: 00000246 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 000000000004eb25 RCX: 00000000004811c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fffecad1ac0
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000001633940
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000c77 R14: 00007fffecad2180 R15: 000000000004eb15
Modules linked in:
Dumping ftrace buffer:
---------------------------------
syz-exec-27091 1...3 228452087us : 0: }D
---------------------------------
CR2: ffff8801d1d79b10
---[ end trace 418c402bbf9b5b6b ]---
RIP: 0010:task_css include/linux/cgroup.h:477 [inline]
RIP: 0010:task_ca kernel/sched/cpuacct.c:43 [inline]
RIP: 0010:cpuacct_charge+0x1c2/0x5d0 kernel/sched/cpuacct.c:349
Code: 45 30 3c 08 00 0f 84 04 02 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d
7d 10 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 65 03 00 00 <4d> 8b 65 10 4d
85 e4 0f 84 0a 01 00 00 49 8d bc 24 30 01 00 00 48
RSP: 0018:ffff8801a036f220 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8801c8b82000 RCX: 0000000000000000
RDX: 1ffff1003a3af362 RSI: 0000000000000000 RDI: ffff8801d1d79b10
RBP: ffff8801a036f2b8 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000003abb R11: 0000000000000000 R12: 1ffff1003406de4a
R13: ffff8801d1d79b00 R14: dffffc0000000000 R15: 1ffff1003406de46
FS: 0000000001633940(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff8801d1d79b10 CR3: 00000001a0122000 CR4: 00000000001406e0
DR0: 0000000020000080 DR1: 0000000020000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with
syzbot.

syzbot

unread,
Jul 17, 2018, 1:58:03 AM7/17/18
to syzkaller-upst...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 30b06abfb92b Merge tag 'pinctrl-v4.18-3' of git://git.kern..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=11e50978400000
kernel config: https://syzkaller.appspot.com/x/.config?x=6d0ccc9273f0e539
dashboard link: https://syzkaller.appspot.com/bug?extid=938e0fd94881608d9015
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=155541c2400000
CC: [linux-...@vger.kernel.org tg...@linutronix.de]

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+938e0f...@syzkaller.appspotmail.com

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

Dmitry Vyukov

unread,
Jul 17, 2018, 1:59:37 AM7/17/18
to syzbot, 'Dmitry Vyukov' via syzkaller-upstream-moderation
#syz fix: bpf: sockhash, disallow bpf_tcp_close and update in parallel
> --
> You received this message because you are subscribed to the Google Groups
> "syzkaller-upstream-moderation" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to syzkaller-upstream-m...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/syzkaller-upstream-moderation/0000000000000c7d5905712ba17c%40google.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages