syzbot


WARNING in __vm_enough_memory (2)

Status: fixed on 2020/06/18 13:57
Subsystems: kernel
[Documentation on labels]
Fix commit: dadbd85f2afc mm: Fix MREMAP_DONTUNMAP accounting on VMA merge
First crash: 1496d, last: 1493d
Cause bisection: introduced by (bisect log) :
commit e346b3813067d4b17383f975f197a9aa28a3b077
Author: Brian Geffon <bgeffon@google.com>
Date: Thu Apr 2 04:09:17 2020 +0000

  mm/mremap: add MREMAP_DONTUNMAP to mremap()

Crash: WARNING in __vm_enough_memory (log)
Repro: syz .config
  
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in __vm_enough_memory tmpfs C error 35 445d 1854d 0/1 upstream: reported C repro on 2019/04/23 10:26
upstream WARNING in __vm_enough_memory lsm C 64 1854d 2317d 0/26 closed as invalid on 2019/07/30 01:01
android-414 WARNING in __vm_enough_memory C 10 1749d 1866d 0/1 public: reported C repro on 2019/04/12 00:01
linux-4.14 WARNING in __vm_enough_memory C inconclusive 14 807d 1854d 0/1 upstream: reported C repro on 2019/04/23 10:25
android-49 WARNING in __vm_enough_memory C 72 1667d 1866d 0/3 public: reported C repro on 2019/04/12 00:00

Sample crash report:
batman_adv: batadv0: Interface activated: batadv_slave_1
------------[ cut here ]------------
memory commitment underflow
WARNING: CPU: 1 PID: 7038 at mm/util.c:801 __vm_enough_memory+0x300/0x380 mm/util.c:801
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7038 Comm: syz-executor.0 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x188/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x35 kernel/panic.c:582
 report_bug+0x27b/0x2f0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:175 [inline]
 fixup_bug arch/x86/kernel/traps.c:170 [inline]
 do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:__vm_enough_memory+0x300/0x380 mm/util.c:801
Code: 08 31 ff 89 de e8 00 06 d8 ff 84 db 0f 85 d3 fd ff ff e8 c3 04 d8 ff 48 c7 c7 a0 b1 33 88 c6 05 9c 5c e9 08 01 e8 08 3a a9 ff <0f> 0b e9 b4 fd ff ff 48 c7 c7 60 1c a5 89 e8 8d cb 15 00 e9 d2 fd
RSP: 0018:ffffc900016e7a08 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815ce521 RDI: fffff520002dcf33
RBP: ffffffff89a51c60 R08: ffff888090e80280 R09: fffffbfff185cd3f
R10: ffffffff8c2e69f7 R11: fffffbfff185cd3e R12: 0000000000000009
R13: ffff888092585900 R14: 0000000000000001 R15: ffffffffffffe6a2
 dup_mmap kernel/fork.c:542 [inline]
 dup_mm+0x4f1/0x1300 kernel/fork.c:1363
 copy_mm kernel/fork.c:1419 [inline]
 copy_process+0x29cc/0x7110 kernel/fork.c:2085
 _do_fork+0x12d/0x1010 kernel/fork.c:2430
 __do_sys_clone+0xec/0x140 kernel/fork.c:2585
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45ae5a
Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d 91 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 f5 00 00 00 85 c0 41 89 c5 0f 85 fc 00 00
RSP: 002b:00007fff1c58f050 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007fff1c58f050 RCX: 000000000045ae5a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 00007fff1c58f090 R08: 0000000000000001 R09: 0000000001c77940
R10: 0000000001c77c10 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 00007fff1c58f0e0
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/18 12:26 upstream 90280eaa88ac 435c6d53 .config console log report syz ci-upstream-kasan-gce
2020/04/15 08:19 upstream 8632e9b5645b 3f3c5574 .config console log report syz ci-upstream-kasan-gce-selinux-root
2020/04/18 12:13 linux-next ac935d227366 435c6d53 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2020/04/18 11:31 upstream 90280eaa88ac 435c6d53 .config console log report ci-upstream-kasan-gce
2020/04/15 07:29 upstream 8632e9b5645b 3f3c5574 .config console log report ci-upstream-kasan-gce-selinux-root
2020/04/18 11:11 linux-next ac935d227366 435c6d53 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.