general protection fault in shmem_unused_huge_count

0 views
Skip to first unread message

syzbot

unread,
Mar 28, 2018, 2:01:03 AM3/28/18
to syzkaller-upst...@googlegroups.com
Hello,

syzbot hit the following crash on upstream commit
3eb2ce825ea1ad89d20f7a3b5780df850e4be274 (Sun Mar 25 22:44:30 2018 +0000)
Linux 4.16-rc7
syzbot dashboard link:
https://syzkaller.appspot.com/bug?extid=006721c532767a80cad4

Unfortunately, I don't have any reproducer for this crash yet.
Raw console output:
https://syzkaller.appspot.com/x/log.txt?id=6400933969788928
Kernel config:
https://syzkaller.appspot.com/x/.config?id=-8440362230543204781
compiler: gcc (GCC) 7.1.1 20170620
CC: [hu...@google.com linux-...@vger.kernel.org linu...@kvack.org]

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+006721...@syzkaller.appspotmail.com
It will help syzbot understand when the bug is fixed. See footer for
details.
If you forward the report, please keep this part and the footer.

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: 9915 Comm: syz-executor3 Not tainted 4.16.0-rc7+ #3
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:ffff8801b0e9f460 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 1ffff100361d3e8d RCX: ffffffff8195e5e7
RDX: 0000000000000021 RSI: ffff8801b0e9f778 RDI: 0000000000000108
RBP: ffff8801b0e9f4e0 R08: 0000000000000000 R09: 1ffff100361d3e76
R10: ffff8801b0e9f378 R11: 0000000000000001 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff8801b4c5cdf0 R15: 0000000000000000
FS: 0000000000d5a940(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000d5ac10 CR3: 00000001d8120003 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
super_cache_count+0x96/0x280 fs/super.c:131
do_shrink_slab mm/vmscan.c:310 [inline]
shrink_slab.part.46+0x30c/0xe80 mm/vmscan.c:475
shrink_slab+0x9d/0xb0 mm/vmscan.c:442
shrink_node+0x51e/0xf70 mm/vmscan.c:2556
shrink_zones mm/vmscan.c:2728 [inline]
do_try_to_free_pages+0x383/0x1020 mm/vmscan.c:2790
try_to_free_mem_cgroup_pages+0x44d/0xb40 mm/vmscan.c:3079
reclaim_high.constprop.64+0x1e2/0x330 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+0x242/0x2f0 arch/x86/entry/common.c:166
prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline]
syscall_return_slowpath+0x487/0x550 arch/x86/entry/common.c:265
ret_from_fork+0x15/0x50 arch/x86/entry/entry_64.S:399
RIP: 0033:0x452f5a
RSP: 002b:00007ffdaa5ef700 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: 0000000000000000 RBX: 00007ffdaa5ef700 RCX: 0000000000452f5a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007ffdaa5ef740 R08: 0000000000000001 R09: 0000000000d5a940
R10: 0000000000d5ac10 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000001380
Code: c1 e8 03 42 80 3c 28 00 75 6f 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 5e 48 8d 7d a8 48 ba 00 00 00 00 00 fc ff df 49
RIP: __read_once_size include/linux/compiler.h:188 [inline] RSP:
ffff8801b0e9f460
RIP: shmem_unused_huge_count+0x8e/0x100 mm/shmem.c:561 RSP: ffff8801b0e9f460
---[ end trace 8116f40602cb9839 ]---


---
This bug is generated by a dumb bot. It may contain errors.
See https://goo.gl/tpsmEJ for details.
Direct all questions to syzk...@googlegroups.com.

syzbot will keep track of this bug report.
If you forgot to add the Reported-by tag, once the fix for this bug is
merged
into any tree, please reply to this email with:
#syz fix: exact-commit-title
To mark this as a duplicate of another syzbot report, please reply with:
#syz dup: exact-subject-of-another-report
If it's a one-off invalid bug report, please reply with:
#syz invalid
Note: if the crash happens again, it will cause creation of a new bug
report.
Note: all commands must start from beginning of the line in the email body.
To upstream this report, please reply with:
#syz upstream

Dmitry Vyukov

unread,
May 14, 2018, 1:41:20 AM5/14/18
to syzbot, 'Dmitry Vyukov' via syzkaller-upstream-moderation
#syz upstream
> --
> 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/001a113ed31a59224d056872bb6c%40google.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages