syzbot


general protection fault in __mem_cgroup_free

Status: fixed on 2018/05/08 18:30
Subsystems: mm cgroups
[Documentation on labels]
Reported-by: syzbot+8a5de3cce7cdc70e9ebe@syzkaller.appspotmail.com
Fix commit: 4eaf431f6f71 memcg: fix per_node_info cleanup
First crash: 2206d, last: 2193d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 4.14 00/62] 4.14.41-stable review 71 (71) 2018/05/16 07:57
[PATCH 4.16 00/72] 4.16.9-stable review 86 (86) 2018/05/15 06:47
[PATCH] memcg: fix per_node_info cleanup 1 (1) 2018/04/06 10:09
general protection fault in __mem_cgroup_free 4 (5) 2018/04/03 11:18
general protection fault in __mem_cgroup_free 0 (1) 2018/03/31 20:47

Sample crash report:
RBP: 00000000006dcc20 R08: 0000000000000002 R09: 0000000000003335
R10: 0000000000000000 R11: 0000000000000246 R12: 0030656c69662f2e
R13: 00007f1747954d80 R14: ffffffffffffffff R15: 0000000000000006
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 4422 Comm: syzkaller101598 Not tainted 4.16.0-rc7+ #372
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:free_mem_cgroup_per_node_info mm/memcontrol.c:4111 [inline]
RIP: 0010:__mem_cgroup_free+0x71/0x110 mm/memcontrol.c:4120
RSP: 0018:ffff8801accf75a8 EFLAGS: 00010206
RAX: 0000000000000011 RBX: 0000000000000000 RCX: ffffffff8310cdfd
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000000000088
RBP: ffff8801accf75c8 R08: 0000000000000000 R09: ffff8801accf73a0
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8801ad210d40 R14: dffffc0000000000 R15: ffff8801ad210d40
FS:  00007f1747955700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000460000 CR3: 00000001cb367004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 mem_cgroup_free mm/memcontrol.c:4128 [inline]
 mem_cgroup_css_alloc+0x403/0x19c0 mm/memcontrol.c:4239
 css_create kernel/cgroup/cgroup.c:4729 [inline]
 cgroup_apply_control_enable+0x44d/0xbc0 kernel/cgroup/cgroup.c:2916
 cgroup_mkdir+0x56f/0xfc0 kernel/cgroup/cgroup.c:4938
 kernfs_iop_mkdir+0x153/0x1e0 fs/kernfs/dir.c:1099
 vfs_mkdir+0x390/0x600 fs/namei.c:3800
 SYSC_mkdirat fs/namei.c:3823 [inline]
 SyS_mkdirat+0x22b/0x2b0 fs/namei.c:3807
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x44a0c9
RSP: 002b:00007f1747954d78 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00000000006dcc24 RCX: 000000000044a0c9
RDX: 0000000000000020 RSI: 0000000020000280 RDI: 0000000000000005
RBP: 00000000006dcc20 R08: 0000000000000002 R09: 0000000000003335
R10: 0000000000000000 R11: 0000000000000246 R12: 0030656c69662f2e
R13: 00007f1747954d80 R14: ffffffffffffffff R15: 0000000000000006
Code: 00 00 48 89 f8 48 c1 e8 03 42 80 3c 30 00 0f 85 99 00 00 00 4f 8b a4 e5 f0 09 00 00 49 8d bc 24 88 00 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 88 00 00 00 49 8b bc 24 88 00 00 00 e8 77 
RIP: free_mem_cgroup_per_node_info mm/memcontrol.c:4111 [inline] RSP: ffff8801accf75a8
RIP: __mem_cgroup_free+0x71/0x110 mm/memcontrol.c:4120 RSP: ffff8801accf75a8
---[ end trace 57ac07c30502ef78 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/30 23:29 upstream 9dd2326890d8 8fbce0e4 .config console log report syz C ci-upstream-kasan-gce
2018/03/30 10:48 upstream c2a9838452a4 d47f0ed6 .config console log report syz ci-upstream-kasan-gce
2018/04/12 05:34 upstream b284d4d5a678 9cd56d71 .config console log report ci-upstream-kasan-gce-root
2018/04/09 21:21 upstream fd40ffc72e2f b9f65507 .config console log report ci-upstream-kasan-gce
2018/04/09 10:18 upstream 3fd14cdcc05a f13fb445 .config console log report ci-upstream-kasan-gce
2018/04/06 07:06 upstream e02d37bf55a9 a932eae6 .config console log report ci-upstream-kasan-gce
2018/04/03 20:56 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/03 20:43 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce-root
2018/04/03 09:30 upstream 642e7fd23353 676bd07e .config console log report ci-upstream-kasan-gce
2018/03/31 16:14 upstream b5dbc28762fd 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/31 15:13 upstream b5dbc28762fd 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/31 14:45 upstream b5dbc28762fd 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/31 07:42 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/31 07:27 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/31 06:53 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce-root
2018/03/31 06:04 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/31 01:45 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/31 00:57 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/30 23:42 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/30 23:06 upstream 9dd2326890d8 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/30 10:22 upstream c2a9838452a4 d47f0ed6 .config console log report ci-upstream-kasan-gce
2018/03/31 21:06 upstream 10b84daddbec 0174c6c8 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.