Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp518768pxb; Wed, 29 Sep 2021 04:22:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxiJHacJHBl//T7Q1RL/UHehYiQ3mgJgM1+bPYospBPXOUzR91x3EDeBh6mmjS0jdSPlbL X-Received: by 2002:a17:90a:f196:: with SMTP id bv22mr5752910pjb.212.1632914556433; Wed, 29 Sep 2021 04:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632914556; cv=none; d=google.com; s=arc-20160816; b=gQcuyX67HVblvkDZbbYJM6EPN6lGDxXnz/8Xv//HEaeaEtg1M5tV0eEbCqZj9mGEMx JIdWgkaI5X9miSyWpv1tJS02BwWXP1V/n1WZflZiJkYE+6qzprRLvw7K1niLXnHom9Qm 5BCXzuZszTHolNy8T8ZhWMxBqaBbfVVpZTITNxPKUslrf0rlj5qm0s+hvD+C5CCIudN4 zti3lJvVoHCxN4ZIHm7y7Cn49nblY14HUY4IzR14vO3Zbb4To2nwB8HvYvpetBBe1uMc FNj0bn2i65Goy+A2q+sYGkfD80BgUpoxIEYcMh6CAngUy5/SlYQvkKG+xXSgwZ44EUJ/ idhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8BO5ghRPKGQrzUOHg19vgXeTUZ+hxxAQCSSTjgIIvug=; b=yPkjB8Qv1+9MKbK7AwF1xsfhlLPbAwcouwD2oCVCUJbI2AHWGJUWjggbDJ2I84q8X6 vGzlpn5S/AL34UAsuotzCWttRpCCUD3BoFA6zwfBv6ZtS0BQ7apCnAKTmOLdsQxeH7Cq 5BPp/aTN3/ov5EBIEFmpuDfIpE6GwLX3vDz9yKu934qQtg4sDxwDEGPlBK45ubCHrUiV 9+df8tpM1w8ZC1sT9x4FpkCj2oYx4oHC25PLegybS2AonzbzYFVWBeh2Zow+uLSUCCMJ Ww2j4XxTCCo38/L8XMLS242IPt6z1BGz1XsaxLYf/kl/A4lzDfPw3p1dlhSyG0Yv/gj1 BPUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x13si2493581pfj.107.2021.09.29.04.22.24; Wed, 29 Sep 2021 04:22:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245633AbhI2LHR (ORCPT + 99 others); Wed, 29 Sep 2021 07:07:17 -0400 Received: from smtp181.sjtu.edu.cn ([202.120.2.181]:44074 "EHLO smtp181.sjtu.edu.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244363AbhI2LHQ (ORCPT ); Wed, 29 Sep 2021 07:07:16 -0400 Received: from proxy02.sjtu.edu.cn (smtp188.sjtu.edu.cn [202.120.2.188]) by smtp181.sjtu.edu.cn (Postfix) with ESMTPS id 789C21008CBC0; Wed, 29 Sep 2021 19:05:34 +0800 (CST) Received: from localhost (localhost.localdomain [127.0.0.1]) by proxy02.sjtu.edu.cn (Postfix) with ESMTP id 8CD3F200B5753; Wed, 29 Sep 2021 19:05:31 +0800 (CST) X-Virus-Scanned: amavisd-new at Received: from proxy02.sjtu.edu.cn ([127.0.0.1]) by localhost (proxy02.sjtu.edu.cn [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Rn75ASWTZkzI; Wed, 29 Sep 2021 19:05:31 +0800 (CST) Received: from guozhi-ipads.ipads-lab.se.sjtu.edu.cn (unknown [202.120.40.82]) (Authenticated sender: qtxuning1999@sjtu.edu.cn) by proxy02.sjtu.edu.cn (Postfix) with ESMTPSA id 84914200C02CB; Wed, 29 Sep 2021 19:05:14 +0800 (CST) From: Guo Zhi To: Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Daniel Lezcano , Thomas Gleixner Cc: Guo Zhi , openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] clockresource/npcm: Fix kernel pointer leak Date: Wed, 29 Sep 2021 19:04:29 +0800 Message-Id: <20210929110431.1113708-1-qtxuning1999@sjtu.edu.cn> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pointers should be printed with %p rather than %px which printed kernel pointer directly. Change %px to %p to print the secured pointer. Signed-off-by: Guo Zhi --- drivers/clocksource/timer-npcm7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-npcm7xx.c b/drivers/clocksource/timer-npcm7xx.c index a00520cbb660..bf477685d545 100644 --- a/drivers/clocksource/timer-npcm7xx.c +++ b/drivers/clocksource/timer-npcm7xx.c @@ -202,7 +202,7 @@ static int __init npcm7xx_timer_init(struct device_node *np) npcm7xx_clocksource_init(); npcm7xx_clockevents_init(); - pr_info("Enabling NPCM7xx clocksource timer base: %px, IRQ: %d ", + pr_info("Enabling NPCM7xx clocksource timer base: %p, IRQ: %d ", timer_of_base(&npcm7xx_to), timer_of_irq(&npcm7xx_to)); return 0; -- 2.33.0