From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FFC5C5DF61 for ; Tue, 5 Nov 2019 18:22:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 62E1D214D8 for ; Tue, 5 Nov 2019 18:22:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 62E1D214D8 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 0527E6B0010; Tue, 5 Nov 2019 13:22:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 002856B0266; Tue, 5 Nov 2019 13:22:19 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E5E656B0269; Tue, 5 Nov 2019 13:22:19 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0144.hostedemail.com [216.40.44.144]) by kanga.kvack.org (Postfix) with ESMTP id D05AF6B0010 for ; Tue, 5 Nov 2019 13:22:19 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id 979883D15 for ; Tue, 5 Nov 2019 18:22:19 +0000 (UTC) X-FDA: 76123043598.20.frogs70_14422ba9cc62e X-HE-Tag: frogs70_14422ba9cc62e X-Filterd-Recvd-Size: 3850 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf49.hostedemail.com (Postfix) with ESMTP for ; Tue, 5 Nov 2019 18:22:19 +0000 (UTC) Received: from arrakis.emea.arm.com (unknown [46.69.195.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE68721A4A; Tue, 5 Nov 2019 18:22:15 +0000 (UTC) Date: Tue, 5 Nov 2019 18:22:13 +0000 From: Catalin Marinas To: Amir Goldstein Cc: Theodore Tso , fstests , Matthew Wilcox , Michal Hocko , Qian Cai , Andrew Morton , Linus Torvalds , Linux MM , linux-kernel , Thomas Gleixner Subject: Re: 5.4-rc1 boot regression with kmemleak enabled Message-ID: <20191105182212.GF22987@arrakis.emea.arm.com> References: <20191105115431.GD26580@mbp> <20191105153055.GC22987@arrakis.emea.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Nov 05, 2019 at 08:17:11PM +0200, Amir Goldstein wrote: > On Tue, Nov 5, 2019 at 5:31 PM Catalin Marinas wrote: > > > > On Tue, Nov 05, 2019 at 02:33:48PM +0200, Amir Goldstein wrote: > > > On Tue, Nov 5, 2019 at 1:54 PM Catalin Marinas wrote: > > > > (sorry if you got this message twice; our SMTP server went bust) > > > > > > > > On Tue, Nov 05, 2019 at 09:14:06AM +0200, Amir Goldstein wrote: > > > > > My kvm-xfstests [1] VM doesn't boot with kmemleak enabled since commit > > > > > c5665868183f ("mm: kmemleak: use the memory pool for early allocations"). > > > > > > > > > > There is no console output when running: > > > > > > > > > > $ kvm -boot order=c -net none -machine type=pc,accel=kvm:tcg -cpu host \ > > > > > -drive file=$ROOTFS,if=virtio,snapshot=on -vga none -nographic \ > > > > > -smp 2 -m 2048 -serial mon:stdio --kernel $KERNEL \ > > > > > --append 'root=/dev/vda console=ttyS0,115200' > > > > > > > > This was fixed in 5.4-rc4, see commit 2abd839aa7e6 ("kmemleak: Do not > > > > corrupt the object_list during clean-up"). > > > > > > Did not fix my issue. > > > Still not booting with 5.4-rc6. > > > Any other suggestions? > > > > Can you pass an earlyprintk=ttyS0,115200 (if that's the correct x86 > > syntax) on the kernel command line? It may print some early messages > > that would help with debugging. [...] > [ 0.022796] BUG: unable to handle page fault for address: 0000000000001ff0 > [ 0.023682] #PF: supervisor read access in kernel mode > [ 0.024341] #PF: error_code(0x0000) - not-present page > [ 0.025000] PGD 0 P4D 0 > [ 0.025326] Oops: 0000 [#1] SMP PTI > [ 0.025775] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.0-rc6-xfstests #4302 > [ 0.026683] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu1 04/01/2014 > [ 0.027836] RIP: 0010:get_stack_info+0xa7/0x146 Ah, it looks very similar to this report: http://lkml.kernel.org/r/20191019114421.GK9698@uranus.lan Thomas had a patch here: https://lore.kernel.org/linux-mm/alpine.DEB.2.21.1910231950590.1852@nanos.tec.linutronix.de/ but not sure whether it has hit mainline yet. -- Catalin