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.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 80A5BC32792 for ; Thu, 3 Oct 2019 09:13:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4C795217D7 for ; Thu, 3 Oct 2019 09:13:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C795217D7 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 1D10B6B0007; Thu, 3 Oct 2019 05:13:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 182AC8E0005; Thu, 3 Oct 2019 05:13:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0BF508E0003; Thu, 3 Oct 2019 05:13:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0205.hostedemail.com [216.40.44.205]) by kanga.kvack.org (Postfix) with ESMTP id E31A86B0007 for ; Thu, 3 Oct 2019 05:13:32 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id 77A9F6D91 for ; Thu, 3 Oct 2019 09:13:32 +0000 (UTC) X-FDA: 76001910264.24.taste02_1c568bd7cb1a X-HE-Tag: taste02_1c568bd7cb1a X-Filterd-Recvd-Size: 2159 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Thu, 3 Oct 2019 09:13:32 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1753028; Thu, 3 Oct 2019 02:13:31 -0700 (PDT) Received: from arrakis.emea.arm.com (unknown [10.1.196.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 501613F739; Thu, 3 Oct 2019 02:13:30 -0700 (PDT) Date: Thu, 3 Oct 2019 10:13:28 +0100 From: Catalin Marinas To: Marc Dionne Cc: Linux Kernel Mailing List , linux-mm@kvack.org Subject: Re: Boot hang with 5.4-rc1, bisected to c5665868183f Message-ID: <20191003091327.GC21629@arrakis.emea.arm.com> References: 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 Wed, Oct 02, 2019 at 07:26:51PM -0300, Marc Dionne wrote: > 5.4-rc1 hangs early on boot for me; the stack trace that I could > manage to see on screen suggested something kmemleak related, and it > was fairly quick to bisect it down to commit c5665868183f ("mm: > kmemleak: use the memory pool for early allocations"). > > Several call stacks periodically go by on screen, an interesting one > is (manually transcribed): > > RIP: 0010:_raw_write_unlock_irqrestore+0x15/0x20 > find_and_remove_object+0x84/0x90 > delete_object_full+0x10/0x20 > __kmemleak_do_cleanup+0x2d/0x50 > kmemleak_do_cleanup+0x59/0x60 > process_one_work+0x1a4/0x3c0 > worker_thread+0x50/0x3c0 > ... > > Config is attached. Thanks for the report. This was also mentioned here: http://lkml.kernel.org/r/2ac37341-097e-17a2-fb6b-7912da9fa38e@ozlabs.ru I'll have a look. It seems to only happen on the kmemleak disabling path (I managed to reproduce it as well). -- Catalin