WARNING in __vm_enough_memory

10 views
Skip to first unread message

syzbot

unread,
Apr 11, 2019, 8:00:53 PM4/11/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: f26c1b2b UPSTREAM: zram: idle writeback fixes and cleanup
git tree: android-4.9
console output: https://syzkaller.appspot.com/x/log.txt?x=14000cdf400000
kernel config: https://syzkaller.appspot.com/x/.config?x=dd9a2d3eeea35758
dashboard link: https://syzkaller.appspot.com/bug?extid=54062f6cebec9a9628ac
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=146417ef400000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13cefa97400000

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

------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at mm/util.c:544 __vm_enough_memory+0x401/0x540
mm/util.c:544
memory commitment underflow[ 33.217186] Kernel panic - not syncing:
panic_on_warn set ...

CPU: 1 PID: 1 Comm: init Not tainted 4.9.154+ #20
ffff8801da607968 ffffffff81b47411 ffff8801da607a00 ffffffff82a39be0
00000000ffffffff 0000000000000001 0000000000000009 ffff8801da607a48
ffffffff813f725a 0000000041b58ab3 ffffffff82e35b02 ffffffff813f7081
Call Trace:
[<ffffffff81b47411>] __dump_stack lib/dump_stack.c:15 [inline]
[<ffffffff81b47411>] dump_stack+0xc1/0x120 lib/dump_stack.c:51
[<ffffffff813f725a>] panic+0x1d9/0x3bd kernel/panic.c:180
[<ffffffff813f749b>] __warn.cold+0x2f/0x2f kernel/panic.c:546
[<ffffffff810dad12>] warn_slowpath_fmt+0xc2/0x100 kernel/panic.c:569
[<ffffffff8146b201>] __vm_enough_memory+0x401/0x540 mm/util.c:544
[<ffffffff819e7f69>] security_vm_enough_memory_mm+0x99/0xc0
security/security.c:238
[<ffffffff810d5d61>] dup_mmap kernel/fork.c:615 [inline]
[<ffffffff810d5d61>] dup_mm kernel/fork.c:1156 [inline]
[<ffffffff810d5d61>] copy_mm kernel/fork.c:1210 [inline]
[<ffffffff810d5d61>] copy_process.part.0+0x3da1/0x6720 kernel/fork.c:1690
[<ffffffff810d8b78>] copy_process kernel/fork.c:1505 [inline]
[<ffffffff810d8b78>] _do_fork+0x1b8/0xd40 kernel/fork.c:1981
[<ffffffff810d97d7>] SYSC_clone kernel/fork.c:2093 [inline]
[<ffffffff810d97d7>] SyS_clone+0x37/0x50 kernel/fork.c:2087
[<ffffffff810056bd>] do_syscall_64+0x1ad/0x570 arch/x86/entry/common.c:285
[<ffffffff82816493>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Apr 11, 2019, 8:01:01 PM4/11/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 23bc5181 ANDROID: cuttlefish_defconfig: Enable CONFIG_CRYP..
git tree: android-4.14
console output: https://syzkaller.appspot.com/x/log.txt?x=114d8a5d400000
kernel config: https://syzkaller.appspot.com/x/.config?x=5a6074c89b6ea274
dashboard link: https://syzkaller.appspot.com/bug?extid=8f95dd40095bc8952072
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1510cc15400000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13475e25400000

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

memory commitment underflow
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7946 at mm/util.c:606
__vm_enough_memory.cold.2+0x18/0x59 mm/util.c:604
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7946 Comm: getty Not tainted 4.14.86+ #17
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xb9/0x11b lib/dump_stack.c:53
panic+0x1bf/0x3a4 kernel/panic.c:181
__warn.cold.7+0x2f/0x35 kernel/panic.c:542
report_bug+0x1f7/0x26c lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
do_error_trap+0x1ba/0x2c0 arch/x86/kernel/traps.c:295
invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:944
RIP: 0010:__vm_enough_memory.cold.2+0x18/0x59 mm/util.c:604
RSP: 0018:ffff8881d6867c90 EFLAGS: 00010282
RAX: 000000000000001b RBX: ffffffff8e13a040 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8881d7326630 RDI: ffffffff8f5d84e0
RBP: 0000000000000002 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8881da076300
R13: 0000000000000001 R14: 0000000000000c96 R15: fff8000000004bf6
mmap_region+0x4cf/0xfb0 mm/mmap.c:1681
do_mmap+0x551/0xb80 mm/mmap.c:1509
do_mmap_pgoff include/linux/mm.h:2167 [inline]
vm_mmap_pgoff+0x180/0x1d0 mm/util.c:333
SYSC_mmap_pgoff mm/mmap.c:1559 [inline]
SyS_mmap_pgoff+0xf8/0x1a0 mm/mmap.c:1517
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7fd0c0d283ea
RSP: 002b:00007ffd0666bb28 EFLAGS: 00000206 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007fd0c0f304c8 RCX: 00007fd0c0d283ea
RDX: 0000000000000003 RSI: 0000000000002000 RDI: 00007fd0c0d10000
RBP: 00007ffd0666be50 R08: 0000000000000003 R09: 0000000000001000
R10: 0000000000000812 R11: 0000000000000206 R12: 00007ffd0666bf38
R13: 0000000000000002 R14: 00007ffd0666bba0 R15: 00007ffd0666bb70
Kernel Offset: 0xac00000 from 0xffffffff81000000 (relocation range:
0xffffffff80000000-0xffffffffbfffffff)
Reply all
Reply to author
Forward
0 new messages