syzbot


general protection fault in list_lru_count_one

Status: fixed on 2019/01/25 21:48
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+50d322b3e0b15a4a8d55@syzkaller.appspotmail.com
Fix commit: 8e04944f0ea8 mm,vmscan: Allow preallocating memory for register_shrinker().
First crash: 2145d, last: 2141d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in list_lru_count_one 2 (3) 2018/07/17 14:16

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
kasan: CONFIG_KASAN_INLINE enabled
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
CPU: 0 PID: 4428 Comm: syz-executor277 Not tainted 4.18.0-rc4-next-20180713+ #7
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:list_lru_from_memcg_idx mm/list_lru.c:56 [inline]
RIP: 0010:list_lru_count_one+0x156/0x460 mm/list_lru.c:201
Code: 08 3c 03 0f 8e b5 02 00 00 4d 63 bd d8 0a 00 00 e8 7f 35 d2 ff 48 8d 7b 50 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d8 02 00 00 49 8d 46 c0 4c 8b 6b 50 48 ba 00 00 
RSP: 0018:ffff8801b39e71e0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff81aa3a64
RDX: 000000000000000a RSI: ffffffff81aa3ad1 RDI: 0000000000000050
RBP: ffff8801b39e7270 R08: ffff8801b69a8040 R09: 0000000000000000
R10: ffffed003ae0e1b0 R11: ffff8801d7070d87 R12: 1ffff1003673ce3d
R13: ffff8801b7f78ec0 R14: ffff8801b39e7248 R15: 0000000000000000
FS:  0000000001308880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001308b50 CR3: 00000001b796e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 list_lru_shrink_count include/linux/list_lru.h:122 [inline]
 super_cache_count+0x153/0x2e0 fs/super.c:146
 do_shrink_slab+0x148/0xc50 mm/vmscan.c:458
 shrink_slab_memcg mm/vmscan.c:598 [inline]
 shrink_slab+0x861/0xa60 mm/vmscan.c:671
 shrink_node+0x429/0x16a0 mm/vmscan.c:2735
 shrink_zones mm/vmscan.c:2964 [inline]
 do_try_to_free_pages+0x3e7/0x1290 mm/vmscan.c:3026
 try_to_free_mem_cgroup_pages+0x49d/0xc90 mm/vmscan.c:3324
 reclaim_high.constprop.73+0x137/0x1e0 mm/memcontrol.c:2060
 mem_cgroup_handle_over_high+0x8d/0x130 mm/memcontrol.c:2085
 tracehook_notify_resume include/linux/tracehook.h:195 [inline]
 exit_to_usermode_loop+0x287/0x380 arch/x86/entry/common.c:166
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath+0x533/0x5e0 arch/x86/entry/common.c:268
 ret_from_fork+0x15/0x50 arch/x86/entry/entry_64.S:407
RIP: 0033:0x44021a
Code: Bad RIP value.
RSP: 002b:00007ffce2f1b5c0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000000044021a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffce2f1b5e0 R08: 0000000000000001 R09: 0000000001308880
R10: 0000000001308b50 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000006679 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
general protection fault: 0000 [#2] SMP KASAN
---[ end trace 86181d87f41a078e ]---
CPU: 1 PID: 4426 Comm: syz-executor277 Tainted: G      D           4.18.0-rc4-next-20180713+ #7
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:list_lru_from_memcg_idx mm/list_lru.c:56 [inline]
RIP: 0010:list_lru_count_one+0x156/0x460 mm/list_lru.c:201
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:list_lru_from_memcg_idx mm/list_lru.c:56 [inline]
RIP: 0010:list_lru_count_one+0x156/0x460 mm/list_lru.c:201
Code: 
Code: 
08 3c 03 0f 
08 
8e b5 02 00 
3c 
00 4d 63 bd d8 
03 
0a 00 00 
0f 
e8 7f 35 d2 ff 
8e 
48 8d 7b 
b5 
50 48 b8 00 
02 
00 00 00 00 
00 
fc ff df 48 
00 
89 fa 48 c1 
4d 
ea 03 <80> 3c 
63 
02 00 0f 85 
bd 
d8 02 00 
d8 
00 49 8d 
0a 
46 c0 4c 8b 6b 50 
00 
48 ba 00 00 
00 
RSP: 0018:ffff8801adaaf198 EFLAGS: 00010206
e8 
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff81aa3a64
RDX: 000000000000000a RSI: ffffffff81aa3ad1 RDI: 0000000000000050
7f 
RBP: ffff8801adaaf228 R08: ffff8801b39aa700 R09: 0000000000000000
R10: ffffed003ae0e1b0 R11: ffff8801d7070d87 R12: 1ffff10035b55e34
R13: ffff8801b7f78ec0 R14: ffff8801adaaf200 R15: 0000000000000000
35 
FS:  0000000001308880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006ce080 CR3: 00000001c0957000 CR4: 00000000001406e0
d2 
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
ff 
Call Trace:
48 
 list_lru_shrink_count include/linux/list_lru.h:122 [inline]
 super_cache_count+0x153/0x2e0 fs/super.c:146
8d 
 do_shrink_slab+0x148/0xc50 mm/vmscan.c:458
7b 
50 
48 
b8 
 shrink_slab_memcg mm/vmscan.c:598 [inline]
 shrink_slab+0x861/0xa60 mm/vmscan.c:671
00 
00 
00 
 shrink_node+0x429/0x16a0 mm/vmscan.c:2735
00 
00 
fc 
 shrink_zones mm/vmscan.c:2964 [inline]
 do_try_to_free_pages+0x3e7/0x1290 mm/vmscan.c:3026
ff 
df 
 try_to_free_mem_cgroup_pages+0x49d/0xc90 mm/vmscan.c:3324
48 
89 
fa 
48 
c1 
 reclaim_high.constprop.73+0x137/0x1e0 mm/memcontrol.c:2060
ea 
 mem_cgroup_handle_over_high+0x8d/0x130 mm/memcontrol.c:2085
 tracehook_notify_resume include/linux/tracehook.h:195 [inline]
 exit_to_usermode_loop+0x287/0x380 arch/x86/entry/common.c:166
03 
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
 do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293
<80> 
3c 
02 
00 
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44021a
0f 
Code: f7 
85 
d8 64 89 
d8 
04 25 d4 02 
02 
00 00 64 4c 
00 
8b 0c 25 10 
00 
00 00 00 31 d2 
49 
4d 8d 91 d0 
8d 
02 00 00 31 f6 
46 
bf 11 00 20 01 
c0 
b8 38 00 
4c 
00 00 0f 05 
8b 
<48> 3d 00 
6b 
f0 ff ff 
50 
0f 87 f5 00 00 00 85 c0 41 89 c5 
48 
0f 85 fc 00 00 
ba 
RSP: 002b:00007ffce2f1b5c0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
00 
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 000000000044021a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffce2f1b5e0 R08: 0000000000000001 R09: 0000000001308880
00 
R10: 0000000001308b50 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000006679 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
RSP: 0018:ffff8801b39e71e0 EFLAGS: 00010206
Dumping ftrace buffer:
   (ftrace buffer empty)
---[ end trace 86181d87f41a078f ]---
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff81aa3a64
RDX: 000000000000000a RSI: ffffffff81aa3ad1 RDI: 0000000000000050
RBP: ffff8801b39e7270 R08: ffff8801b69a8040 R09: 0000000000000000
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:list_lru_from_memcg_idx mm/list_lru.c:56 [inline]
RIP: 0010:list_lru_count_one+0x156/0x460 mm/list_lru.c:201
R10: ffffed003ae0e1b0 R11: ffff8801d7070d87 R12: 1ffff1003673ce3d
R13: ffff8801b7f78ec0 R14: ffff8801b39e7248 R15: 0000000000000000
Code: 
FS:  0000000001308880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
08 
CR2: 00000000004401f0 CR3: 00000001b796e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
3c 
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/16 06:07 linux-next 483d835c8189 92a49505 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/15 05:03 linux-next 483d835c8189 92a49505 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/15 00:49 linux-next 483d835c8189 92a49505 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/14 21:56 linux-next 483d835c8189 92a49505 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/14 17:45 linux-next 483d835c8189 92a49505 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/14 09:21 linux-next 483d835c8189 92a49505 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/14 05:46 linux-next 483d835c8189 92a49505 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/07/16 00:48 linux-next 483d835c8189 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/15 10:41 linux-next 483d835c8189 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/14 07:59 linux-next 483d835c8189 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/14 04:40 linux-next 483d835c8189 92a49505 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/07/12 22:57 linux-next 3ee15ba60e6b 06c33b3a .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.