syzbot


general protection fault in shmem_unused_huge_count

Status: fixed on 2018/06/07 13:52
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+d2586fde8fdcead3647f@syzkaller.appspotmail.com
Fix commit: 79f546a696bf fs: don't scan the inode cache before SB_BORN is set
First crash: 2214d, last: 2164d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] shmem: don't call =?ISO-2022-JP?B?cHV0X3N1cGVyKCkgd2hlbiBmaWxs?= =?ISO-2022-JP?B?X3N1cGVyKCkgZmFpbGVkLg==?= 9 (9) 2018/05/15 01:13
general protection fault in shmem_unused_huge_count 0 (1) 2018/05/14 05:42

Sample crash report:
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000014
R13: 00000000000004a5 R14: 00000000006fb018 R15: 0000000000000023
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: 4568 Comm: syz-executor4 Not tainted 4.17.0-rc5+ #53
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:shmem_unused_huge_count+0x8e/0x100 mm/shmem.c:561
RSP: 0018:ffff88018fd772d0 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 1ffff10031faee5b RCX: ffffffff819cc6bb
RDX: 0000000000000021 RSI: ffffffff819f1377 RDI: 0000000000000108
RBP: ffff88018fd77350 R08: ffff88018fd68380 R09: ffffed003b5c46c2
R10: 0000000000000003 R11: 0000000000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88018cbd15b0 R15: 0000000000000000
FS:  00000000010a0940(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000093002d CR3: 00000001903e3000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 super_cache_count+0x98/0x280 fs/super.c:132
 do_shrink_slab mm/vmscan.c:374 [inline]
 shrink_slab.part.39+0x330/0xf90 mm/vmscan.c:531
 shrink_slab+0xa1/0xc0 mm/vmscan.c:506
 shrink_node+0x4f2/0x1740 mm/vmscan.c:2561
 shrink_zones mm/vmscan.c:2794 [inline]
 do_try_to_free_pages+0x3c9/0x1240 mm/vmscan.c:2856
 try_to_free_mem_cgroup_pages+0x475/0xc50 mm/vmscan.c:3146
 reclaim_high.constprop.67+0x12f/0x1d0 mm/memcontrol.c:1862
 mem_cgroup_handle_over_high+0x8d/0x130 mm/memcontrol.c:1887
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x274/0x310 arch/x86/entry/common.c:166
 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:265 [inline]
 do_syscall_64+0x6ac/0x800 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4540ba
RSP: 002b:0000000000a3ea70 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: 00000000000007bd RBX: 0000000000a3ea70 RCX: 00000000004540ba
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000a3eab0 R08: 0000000000000001 R09: 00000000010a0940
R10: 00000000010a0c10 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000001380
Code: c1 e8 03 42 80 3c 28 00 75 70 4d 8b a4 24 80 06 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bc 24 08 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 5f 48 8d 7d a8 49 8b 84 24 08 01 00 00 48 ba 00 
RIP: __read_once_size include/linux/compiler.h:188 [inline] RSP: ffff88018fd772d0
RIP: shmem_unused_huge_count+0x8e/0x100 mm/shmem.c:561 RSP: ffff88018fd772d0
---[ end trace 65b19a6a271865d8 ]---

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/05/16 17:34 upstream 21b9f1c7e319 75b2448a .config console log report ci-upstream-kasan-gce
2018/05/10 16:45 upstream 008464a9360e 12c7428a .config console log report ci-upstream-kasan-gce-root
2018/04/20 02:46 upstream 87ef12027b9b eae05cb0 .config console log report ci-upstream-kasan-gce
2018/04/02 19:59 upstream 86bbbebac193 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/01 06:25 upstream 10b84daddbec 0174c6c8 .config console log report ci-upstream-kasan-gce
2018/03/31 16:12 upstream b5dbc28762fd 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/31 14:24 upstream b5dbc28762fd 8fbce0e4 .config console log report ci-upstream-kasan-gce
2018/03/28 01:35 upstream 3eb2ce825ea1 bf5e585c .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.