Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2314426imm; Sun, 5 Aug 2018 01:15:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd/fL8Ib8HQpLcWnSv+Rarv3vNomG9m7QyLOllLalZDKKYa6MPOuMcIfFiR5An1KFVG8hvz X-Received: by 2002:a17:902:2e83:: with SMTP id r3-v6mr9849276plb.80.1533456952285; Sun, 05 Aug 2018 01:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533456952; cv=none; d=google.com; s=arc-20160816; b=D7mjibEFsD7knBgCxmggOq1HjlCqNgXLcHTue0ogvAiuYZo/GjXECghhmFYUbGQ/O5 P7lC0eiCkSpayRrOU36pSK1gCmCzSt3dCbJ0z8GxqaA1bfGEGLPi/ahjzBeNnHotVv1a xTFELZrR5yJY2QF/NZZ/rsiYGLj//y/HNQvFFkCkInkUd9GV/jIRVLjo+EvrSx6j0Y1v PojwgrgBM1j7XGotpZ+andNDcuxF7OxfxGsx0pMB0VkVNL0CzuP8K7dHYU4wzve+aPpD m2tNO5kBEQRjE2b0bIsCJVxfpYmDFjWvuwtNDqydYZqUH935WydlGf+HqchVkw8ttXIl HvUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:in-reply-to :date:mime-version:arc-authentication-results; bh=6dgVYBfanEwezEZZH43zB7ajNDAgPbm4qSs8Kotgj68=; b=qa5bLp/MmYETgd1dooLX7fuWjRvu8X+CnN0M/sDIiwGu4EPFQrzL1un7onFzWsv1CZ baDZdgnTDNdrGAQYId6On0ShSQCv3ZrQtkS9BRqJVu5ruZCb/RWZ8zL9lYhh3QqcYxGK 8uzTw0ZISyt5WpPbT6XIm8ldhz2bCchwvpmnIH3R5/IbN+rTEVmg3qxnjKQ6gNnEhYUf pFCzHOmjj9Xz25qjXlPEoqikUjGsoTLCfori7Ob8KjWF0ufaLwatSEUec1QrshIo7vM8 F0xORD6HUsXlRdSYiqKi2m6Ox7dy+qrTo9378sD696Gq2ANh+YaTAGp9tFjzX/IgjzoV pq4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w126-v6si4055116pfb.232.2018.08.05.01.15.20; Sun, 05 Aug 2018 01:15:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726142AbeHEKRp (ORCPT + 99 others); Sun, 5 Aug 2018 06:17:45 -0400 Received: from mail-it0-f71.google.com ([209.85.214.71]:42081 "EHLO mail-it0-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbeHEKRp (ORCPT ); Sun, 5 Aug 2018 06:17:45 -0400 Received: by mail-it0-f71.google.com with SMTP id k10-v6so1107278itb.7 for ; Sun, 05 Aug 2018 01:14:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=6dgVYBfanEwezEZZH43zB7ajNDAgPbm4qSs8Kotgj68=; b=jTi3o05umhIjVO8mb2gSvthLG/MWPL6UgQJRfUhrvY/gczBxxZlFkqgPmGqYzF//O5 yk0emHnItKTXVd9LEyr1CqPKHeVqZQw5dVHXfsva3eqDu4wyjOUyx2iXxc/HfGJZKZzb YGu3UVyq4VheauuMRFHzrUVfJ1f9s2oNNZrTiMr1/7r9go8xOBAhvIWSSZRH0NAd0UE0 FoCkvn0y2+e81Po6A2skOlc8ww6e0y+uSLFXV4nYm7DmFuyH86yYqwztx60C/GVBIYo1 xdFWJCeXFSaTwAeSTuKdPwxzZUtYgrmQmLDGsFOstZlns56ZyP/spM2/YLpInA/otGFe 7h6Q== X-Gm-Message-State: AOUpUlFqm6vvayWZhlKx3efPpWW54n8u68Ln0Q7fodqzISgfZ3NxGZBT 141gqMw37YOONYV7OvTYi3UexVutenQ++PosNduqsnR7Tzab MIME-Version: 1.0 X-Received: by 2002:a24:970d:: with SMTP id k13-v6mr2795476ite.5.1533456842087; Sun, 05 Aug 2018 01:14:02 -0700 (PDT) Date: Sun, 05 Aug 2018 01:14:02 -0700 In-Reply-To: <0000000000005e979605729c1564@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000059e4fd0572abbe4a@google.com> Subject: Re: WARNING in try_charge From: syzbot To: cgroups@vger.kernel.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhocko@kernel.org, penguin-kernel@I-love.SAKURA.ne.jp, rientjes@google.com, syzkaller-bugs@googlegroups.com, vdavydov.dev@gmail.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following crash on: HEAD commit: 116b181bb646 Add linux-next specific files for 20180803 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=15f87bfc400000 kernel config: https://syzkaller.appspot.com/x/.config?x=b4f38be7c2c519d5 dashboard link: https://syzkaller.appspot.com/bug?extid=bab151e82a4e973fa325 compiler: gcc (GCC) 8.0.1 20180413 (experimental) syzkaller repro:https://syzkaller.appspot.com/x/repro.syz?x=10e553e0400000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+bab151e82a4e973fa325@syzkaller.appspotmail.com Killed process 6527 (syz-executor2) total-vm:37704kB, anon-rss:2140kB, file-rss:0kB, shmem-rss:0kB oom_reaper: reaped process 6527 (syz-executor2), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB ------------[ cut here ]------------ oom_reaper: reaped process 6532 (syz-executor3), now anon-rss:0kB, file-rss:4kB, shmem-rss:0kB Memory cgroup charge failed because of no reclaimable memory! This looks like a misconfiguration or a kernel bug. WARNING: CPU: 1 PID: 6536 at mm/memcontrol.c:1705 mem_cgroup_oom mm/memcontrol.c:1704 [inline] WARNING: CPU: 1 PID: 6536 at mm/memcontrol.c:1705 try_charge+0x734/0x1680 mm/memcontrol.c:2262 oom_reaper: reaped process 6518 (syz-executor0), now anon-rss:0kB, file-rss:4kB, shmem-rss:0kB Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 6536 Comm: syz-executor2 Not tainted 4.18.0-rc7-next-20180803+ #31 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+0x1c9/0x2b4 lib/dump_stack.c:113 panic+0x238/0x4e7 kernel/panic.c:184 __warn.cold.8+0x163/0x1ba kernel/panic.c:536 report_bug+0x252/0x2d0 lib/bug.c:186 fixup_bug arch/x86/kernel/traps.c:178 [inline] do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:996 RIP: 0010:mem_cgroup_oom mm/memcontrol.c:1704 [inline] RIP: 0010:try_charge+0x734/0x1680 mm/memcontrol.c:2262 Code: 85 b8 04 00 00 8b b5 c8 fd ff ff 44 89 f2 4c 89 ff e8 f0 51 ff ff 84 c0 0f 85 31 08 00 00 48 c7 c7 60 17 13 87 e8 7c fe 85 ff <0f> 0b 48 8d 95 f8 fd ff ff 48 8b b5 c0 fd ff ff 48 b8 00 00 00 00 RSP: 0018:ffff8801a8637620 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff8801cbb5c980 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff816366f1 RDI: ffff8801a8637310 RBP: ffff8801a86378b0 R08: ffff8801b23001c0 R09: fffffbfff0ff11fc R10: fffffbfff0ff11fc R11: ffffffff87f88fe3 R12: dffffc0000000000 R13: ffff8801a8637888 R14: 0000000000000000 R15: ffff8801cbb5c980 memcg_kmem_charge_memcg+0x7c/0x120 mm/memcontrol.c:2592 memcg_charge_slab mm/slab.h:283 [inline] kmem_getpages mm/slab.c:1415 [inline] cache_grow_begin+0x207/0x710 mm/slab.c:2677 fallback_alloc+0x203/0x2c0 mm/slab.c:3219 ____cache_alloc_node+0x1c7/0x1e0 mm/slab.c:3287 __do_cache_alloc mm/slab.c:3356 [inline] slab_alloc mm/slab.c:3384 [inline] kmem_cache_alloc+0x1e5/0x760 mm/slab.c:3552 shmem_alloc_inode+0x1b/0x40 mm/shmem.c:3515 alloc_inode+0x63/0x190 fs/inode.c:210 new_inode_pseudo+0x71/0x1a0 fs/inode.c:903 new_inode+0x1c/0x40 fs/inode.c:932 shmem_get_inode+0xf1/0x910 mm/shmem.c:2142 __shmem_file_setup.part.48+0x83/0x2a0 mm/shmem.c:3871 __shmem_file_setup mm/shmem.c:3865 [inline] shmem_file_setup+0x65/0x90 mm/shmem.c:3912 __do_sys_memfd_create mm/memfd.c:304 [inline] __se_sys_memfd_create mm/memfd.c:247 [inline] __x64_sys_memfd_create+0x2af/0x4f0 mm/memfd.c:247 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x456b29 Code: Bad RIP value. RSP: 002b:00007f91f0f04a88 EFLAGS: 00000246 ORIG_RAX: 000000000000013f RAX: ffffffffffffffda RBX: 0000000020000740 RCX: 0000000000456b29 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000004c1c8d RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000740 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004d5bb8 R14: 00000000004c9491 R15: 0000000000000000 Dumping ftrace buffer: (ftrace buffer empty) Kernel Offset: disabled Rebooting in 86400 seconds..