Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1019333imm; Sat, 7 Jul 2018 14:29:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe9l2b8I2wX02q8ugl6SnleREuwsESBOiKgUsJup1P3tg7ccNm2pAc352ImSheO/gvGeSmc X-Received: by 2002:a65:48cd:: with SMTP id o13-v6mr13280637pgs.99.1530998941197; Sat, 07 Jul 2018 14:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530998941; cv=none; d=google.com; s=arc-20160816; b=aJOKW8qa+eHjh4BBABl3Q0rb4CAE+XptBlLGXCCixDtpR8E8J/v/SfsSVJBG/UFWu+ gi0+ZNQE+A8+BDCgjjxG40VeSklQWd6cHGSXo2l0kZ55he24yy5ZULSTzam6F538ZZvh IgTjSXEHvVX5Yb29Y4nQqJq9WJpDfIVRQuJtPWRJPy/lz2w6V2OTvn6gK9VeIv83cMJ/ 525mF8Orta5u2BeXyiCoPh2RTlb3GbYFhei1ksCA28uLd4VWrqZ4+oICx1h8i0FAaZYy WdcQit0QK2BMhIS9VWcTwY8a7icogAQ+i/7vtPXwM7oFUTUbAdlsxJ5GpF9JeLkuF7Zn lgBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=EuxCpa6oNI4RCMeTOQFR6mbXsOnyRzeQUYM7yHG+5yA=; b=yOCZ1q8k+W5m/oMnoyJ1goGkhJexCTJDNMJjw9jdfZWxZvlfD3aBely59Cxlw05EcC D1zuc30DtaibE4fyHUAomep0kh3g7XgdO+5ZN5iEWegQgyNIZxnZ/rBOPTPN6ScwYYhB tHebwBgGMK2TpAmvPVzC3lak3AdA5lWBs9WUbLGGiAnNIQHdjY7zG3tGJDP10LpIu1RQ eY5g2u/sy+sQiazvf9xQ44kP/n0wkpginlDMC+snW2NTMG0rEQUEMvhkEz0qOWv6uNwI 1S9SEZ8ZcJoMUVe4pn9Ourp+a1LHNsfZ4vqI3nyGrp43iPXoIDoGceRGmqEiv5CVuu+j L72w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@roeck-us.net header.s=default header.b=kRULKBmb; 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 u7-v6si10655444pgn.194.2018.07.07.14.28.45; Sat, 07 Jul 2018 14:29:01 -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=fail header.i=@roeck-us.net header.s=default header.b=kRULKBmb; 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 S1754298AbeGGV02 (ORCPT + 99 others); Sat, 7 Jul 2018 17:26:28 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:50505 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753447AbeGGV01 (ORCPT ); Sat, 7 Jul 2018 17:26:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=In-Reply-To:Content-Type:MIME-Version:References :Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EuxCpa6oNI4RCMeTOQFR6mbXsOnyRzeQUYM7yHG+5yA=; b=kRULKBmbNtqZarjr6kOMSkkLSE j3gQ+DrgF73ASHfiYZd/aal9XdE2udu4sxcsIJpKp6OLPR9XVs48XNoT8gjHqooRspK83zUdGUC1q /bDsWPJ66LagyQ8/rmLzWgC/6Uo6HJqw/JD82OPUYzVgqXAR+53ZHoI3RQd0r/TCxeP5rVOViNw1A qfthTWU+wXskVxHotJlKsC4Rr2KXxcEPWEMruLng5al3FAOns1zjpbRcyMIPAEQTpSLqoWFJKjgjr OAYQjcMUuZtHMDhP6CkBFXhIWpsY324GP/WjN2wJ2DgH7E7eZXuwgKGyCl6m7JsvDieEs5YQnQ6kr JnbwH+/g==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:43786 helo=localhost) by bh-25.webhostbox.net with esmtpa (Exim 4.89) (envelope-from ) id 1fbuin-00GiR3-98; Sat, 07 Jul 2018 21:26:25 +0000 Date: Sat, 7 Jul 2018 14:26:24 -0700 From: Guenter Roeck To: Benjamin Gaignard Cc: wim@linux-watchdog.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: Re: [PATCH] watchdog: stm32: replace "%p" with "%pK" Message-ID: <20180707212624.GC1951@roeck-us.net> References: <20180706130808.22466-1-benjamin.gaignard@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180706130808.22466-1-benjamin.gaignard@st.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 06, 2018 at 03:08:08PM +0200, Benjamin Gaignard wrote: > The format specifier "%p" can leak kernel addresses. > Use "%pK" instead. > The pointer has zero value either way. If the clock has a name, it might make sense to display it. Otherwise just drop the pointer. Guenter > Signed-off-by: Benjamin Gaignard > --- > drivers/watchdog/stm32_iwdg.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/watchdog/stm32_iwdg.c b/drivers/watchdog/stm32_iwdg.c > index c97ad5619cb0..740f74a98644 100644 > --- a/drivers/watchdog/stm32_iwdg.c > +++ b/drivers/watchdog/stm32_iwdg.c > @@ -172,7 +172,7 @@ static int stm32_iwdg_probe(struct platform_device *pdev) > > ret = clk_prepare_enable(clk); > if (ret) { > - dev_err(&pdev->dev, "Unable to prepare clock %p\n", clk); > + dev_err(&pdev->dev, "Unable to prepare clock %pK\n", clk); > return ret; > } > > -- > 2.15.0 >