From patchwork Fri Feb 12 12:37:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thermal-bot for Julien Panis X-Patchwork-Id: 12085227 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=-18.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 EE1D6C433DB for ; Fri, 12 Feb 2021 12:37:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 694AB64E23 for ; Fri, 12 Feb 2021 12:37:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 694AB64E23 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E3FC58D0050; Fri, 12 Feb 2021 07:37:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D9E628D0051; Fri, 12 Feb 2021 07:37:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BD5AB8D0050; Fri, 12 Feb 2021 07:37:06 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0218.hostedemail.com [216.40.44.218]) by kanga.kvack.org (Postfix) with ESMTP id A45D38D0015 for ; Fri, 12 Feb 2021 07:37:06 -0500 (EST) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 690CC281F for ; Fri, 12 Feb 2021 12:37:06 +0000 (UTC) X-FDA: 77809565652.13.curve55_330487c27621 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 49C8418140B69 for ; Fri, 12 Feb 2021 12:37:06 +0000 (UTC) X-HE-Tag: curve55_330487c27621 X-Filterd-Recvd-Size: 3833 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Fri, 12 Feb 2021 12:37:05 +0000 (UTC) Date: Fri, 12 Feb 2021 12:37:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1613133424; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kXQwtKkD08F/lBydHMjkr/aNup2oOyRwUYr+QcQBRSM=; b=u5NzL8fePR16bAzzt9zQnm6baisNjbItKLzfemsMqGyJcLlWKut43yIuLchCYcON/8qzoe jif6noqNMhN0wXp7OsqyuszgdY7SWwGFXhgOkWHw/1p5JebshhKMpidGiRWQawIwlgSbz3 yQuNR7AjdSLtIYripita9lvx0NdhzYl9ZikvvY8XRrHHiQ4FV4KuU6qLNzfRHkFI6kWFGg ioIiDnXluIlq16vVdy3SM0pA2TlbMXPSKD9zK6XHHMfQATIUxTuEawPkhvYRAPqvZUOcr7 IZkSSQJOX4bYlgrBxoHBlWXKyD2ECASskVRNY4eraAMtJXq0w42hq6RGj3BG8A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1613133424; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kXQwtKkD08F/lBydHMjkr/aNup2oOyRwUYr+QcQBRSM=; b=sstL6EXJmuSBjDFVVwyWAwVdKn3kljn7rJJSAno2IuOe+YlM6mZxajljb1i42JD28tBrW1 goDOXIsYBJVynXCg== From: "tip-bot2 for Paul E. McKenney" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/rcu] mm: Make mem_obj_dump() vmalloc() dumps include start and length Cc: Andrew Morton , Joonsoo Kim , , Andrii Nakryiko , Vlastimil Babka , Naresh Kamboju , "Paul E. McKenney" , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <161313342351.23325.639107146733675689.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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: The following commit has been merged into the core/rcu branch of tip: Commit-ID: bd34dcd4120d7e358baac9c22ef1321bd0c22079 Gitweb: https://git.kernel.org/tip/bd34dcd4120d7e358baac9c22ef1321bd0c22079 Author: Paul E. McKenney AuthorDate: Wed, 09 Dec 2020 15:15:27 -08:00 Committer: Paul E. McKenney CommitterDate: Fri, 22 Jan 2021 15:24:10 -08:00 mm: Make mem_obj_dump() vmalloc() dumps include start and length 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 Acked-by: Vlastimil Babka Tested-by: Naresh Kamboju Signed-off-by: Paul E. McKenney --- 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; }