Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1330170yba; Wed, 24 Apr 2019 20:15:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmw0uA+smNLPCIi34hiqxhvKgDOUae7PgpMYQg8Pcmb59CPZA0T8Nt47I+NDnHew7/tW5Y X-Received: by 2002:a63:6849:: with SMTP id d70mr33410498pgc.21.1556162143507; Wed, 24 Apr 2019 20:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556162143; cv=none; d=google.com; s=arc-20160816; b=ozeulFr/fPwOzp4iLf+l5obLTinodPBXo01M6536RSEKkSxfHVliwR0tkka45JLSIQ uZVLkSZUnJr2P18ni4jF1r0wSD0dAMR0Pk/OMZxuGDDq6A40s9tzwWamY75V4avc7mPg gUVMD++5Gd4KlCFPXPy0w/OWVGMv7zxxek9OehwDSb5FblkOevqLIER9gwzPW3lyK95z f+TInWknFEwbwyskgf5ovVkoKJe/E6Qs4gltpk2Z2vS021lhgNQ3c7PmQEs5Bmz2V8bj cJujnSwYy3VfJHm4efS80pw19u38GeeNFB5TTctdFXbj/9VcpKKKa2HwG0KWjnF2rFLP CNjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nkl1Anni98XaTUdqMcBh9Woky5gaspVGiqc9cueF4Qg=; b=WLb2D/x4/qe1CKZFJHs3Rd41e6CHeNuRr2PpyPKu16dqJONHzCvrGHMRyimtyJKHZX XbUKKAzZGwMa4Fano7vmm/vI3y6h0aOuUK7EtHc0M5P8skRqlsCgNz4vu/4r31Zh2kc3 LtUbcepO2SX51Zajc7MP1hKz+3Br5YC0TkOfhdOfyCEvt+IwcD0taxKSu8dKFAwHlHZN yaXJUCU9Yl4QkJgclw40Ggw3e66aOygjdZ7N1R1nl3kfX/qHbByxBa3waEdCcqfvM9JF c8/FE1CVc5Xm1NP1OIPISrQp5lNNkYWTWQmqHWJb5hahgEBq+vPPWYfVvFvncd5v5a+h amKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IhKnAs9V; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s71si19452847pgs.561.2019.04.24.20.15.26; Wed, 24 Apr 2019 20:15:43 -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; dkim=pass header.i=@kernel.org header.s=default header.b=IhKnAs9V; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392091AbfDXRjA (ORCPT + 99 others); Wed, 24 Apr 2019 13:39:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:37650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392408AbfDXRi0 (ORCPT ); Wed, 24 Apr 2019 13:38:26 -0400 Received: from localhost (62-193-50-229.as16211.net [62.193.50.229]) (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 3899D2054F; Wed, 24 Apr 2019 17:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556127505; bh=LdnWpa+EPOFPsBdZsLXq99IeeYT+DOVf79KQlFHbTQY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IhKnAs9VAaww90arEWDFZ46jtbMhKPLWSTfx+6ZaKfBN4Hhz5HJIRJcEjFC3VPxks 6u6IH0/CW6Og1IWaxeXJGLEjSq7bO0jQeAj3nlkOWkGMrKV30Q5azEA2KThNkY3kdx tD5jGuaPFdLJFM50vhAk8DqLmTgOxT0upsF0I7P0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matteo Croce , Dennis Zhou Subject: [PATCH 5.0 115/115] percpu: stop printing kernel addresses Date: Wed, 24 Apr 2019 19:10:51 +0200 Message-Id: <20190424170931.373394009@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190424170924.797924502@linuxfoundation.org> References: <20190424170924.797924502@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matteo Croce commit 00206a69ee32f03e6f40837684dcbe475ea02266 upstream. Since commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), at boot "____ptrval____" is printed instead of actual addresses: percpu: Embedded 38 pages/cpu @(____ptrval____) s124376 r0 d31272 u524288 Instead of changing the print to "%px", and leaking kernel addresses, just remove the print completely, cfr. e.g. commit 071929dbdd865f77 ("arm64: Stop printing the virtual memory layout"). Signed-off-by: Matteo Croce Signed-off-by: Dennis Zhou Signed-off-by: Greg Kroah-Hartman --- mm/percpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/mm/percpu.c +++ b/mm/percpu.c @@ -2531,8 +2531,8 @@ int __init pcpu_embed_first_chunk(size_t ai->groups[group].base_offset = areas[group] - base; } - pr_info("Embedded %zu pages/cpu @%p s%zu r%zu d%zu u%zu\n", - PFN_DOWN(size_sum), base, ai->static_size, ai->reserved_size, + pr_info("Embedded %zu pages/cpu s%zu r%zu d%zu u%zu\n", + PFN_DOWN(size_sum), ai->static_size, ai->reserved_size, ai->dyn_size, ai->unit_size); rc = pcpu_setup_first_chunk(ai, base); @@ -2653,8 +2653,8 @@ int __init pcpu_page_first_chunk(size_t } /* we're ready, commit */ - pr_info("%d %s pages/cpu @%p s%zu r%zu d%zu\n", - unit_pages, psize_str, vm.addr, ai->static_size, + pr_info("%d %s pages/cpu s%zu r%zu d%zu\n", + unit_pages, psize_str, ai->static_size, ai->reserved_size, ai->dyn_size); rc = pcpu_setup_first_chunk(ai, vm.addr);