From patchwork Wed Jan 6 01:17:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 12000701 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=-19.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 4C918C433DB for ; Wed, 6 Jan 2021 01:18:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DE74322CF6 for ; Wed, 6 Jan 2021 01:17:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DE74322CF6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 96E6B8D006E; Tue, 5 Jan 2021 20:17:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 456348D00D0; Tue, 5 Jan 2021 20:17:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0100E8D00D3; Tue, 5 Jan 2021 20:17:53 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0043.hostedemail.com [216.40.44.43]) by kanga.kvack.org (Postfix) with ESMTP id C0EB88D00CE for ; Tue, 5 Jan 2021 20:17:53 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 92CCA1F08 for ; Wed, 6 Jan 2021 01:17:53 +0000 (UTC) X-FDA: 77673588426.11.front97_550fcff274dd Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id 713BD180F8B80 for ; Wed, 6 Jan 2021 01:17:53 +0000 (UTC) X-HE-Tag: front97_550fcff274dd X-Filterd-Recvd-Size: 2521 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf28.hostedemail.com (Postfix) with ESMTP for ; Wed, 6 Jan 2021 01:17:53 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E007230F9; Wed, 6 Jan 2021 01:17:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609895872; bh=GMkUWi1HSMx6tCW3EpjcA1+Pgb7uUPIJLE5afoazVfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t6NMudKKD76xBb8X/tG4J62mW7lW6/cnBXETpELbjaddU2tbIooynS/8EhUVUognJ ETTH7J1c8lmqUJqnPOiFbFzcls7G4axaDBMCjOxFNr1HX03Qn4sy+XFExMWnxCEGdp veRcTc8vDr+sXuqZxo2eU/nVABRVzMINnycM94xAEkV+hK65sf/bN730Hpt7SjH1xo uH3IIHTyawZ2W64PVsSNbTY95DqYYVIS0UmR1NZrwIoCrACxslxDK3ZUkg/qtR59fF NQ26zJHgwEiffejk48QZVC5q49fYze+Txg+OhDUersc5yPtgkcckTc+L4Lz8irZ6sQ Ch5ggT7TMu7LA== From: paulmck@kernel.org To: linux-kernel@vger.kernel.org, rcu@vger.kernel.org, linux-mm@kvack.org Cc: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, ming.lei@redhat.com, axboe@kernel.dk, kernel-team@fb.com, "Paul E. McKenney" Subject: [PATCH mm,percpu_ref,rcu 4/6] mm: Make mem_obj_dump() vmalloc() dumps include start and length Date: Tue, 5 Jan 2021 17:17:48 -0800 Message-Id: <20210106011750.13709-4-paulmck@kernel.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20210106011603.GA13180@paulmck-ThinkPad-P72> References: <20210106011603.GA13180@paulmck-ThinkPad-P72> 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: From: "Paul E. McKenney" This commit adds the starting address and number of pages to the vmalloc() information dumped by way of vmalloc_dump_obj(). Cc: Andrew Morton Cc: Joonsoo Kim Cc: Reported-by: Andrii Nakryiko Suggested-by: Vlastimil Babka Signed-off-by: Paul E. McKenney Acked-by: Vlastimil Babka --- mm/vmalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index c274ea4..e3229ff 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -3456,7 +3456,8 @@ bool vmalloc_dump_obj(void *object) vm = find_vm_area(objp); if (!vm) return false; - pr_cont(" vmalloc allocated at %pS\n", vm->caller); + pr_cont(" %u-page vmalloc region starting at %#lx allocated at %pS\n", + vm->nr_pages, (unsigned long)vm->addr, vm->caller); return true; }