Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1762013imm; Fri, 6 Jul 2018 06:08:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd80N5IhG3dcQFZlDIj70YW8ZGLjuM5muP8vJCzNFcW8GvY3vFG+SdVctSGTd7JnkJTUvNC X-Received: by 2002:a62:b29c:: with SMTP id z28-v6mr10725737pfl.8.1530882487157; Fri, 06 Jul 2018 06:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530882487; cv=none; d=google.com; s=arc-20160816; b=IyGA19UuPcg6PR/pZ1LCs1uncTufks2tiWKJ4emu9nPxBxIT6oqGdCaLzf6knDcUWc Oh1hw/P6uxdV/Lw7Gxjotfh2XM0yGx5GUQecv+D4EOY8FPIH9/iYYuDWg6Lwh6JChyiI FMpCYbnJ1Fd8AfTzTU74f/X8LeFLHo7/OUCmnymK5kC23l/GtvrbXZmZ3npg5SS4aKTB t9Bz7tjdL1TulSIoES2+/LiLK66MTpXqbsY25TKDyqWq3/UdGede4yQCdAQWd5vKiwwR +8ZrG/CzHGJBTQ4rfYC6Ay4vG2hl/ZxQ3+O5Ggddi7a+JrxXIlg0IlLJrLLaGeYSmHru 5Brw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=/mf4+83ViPj1iK27CkQ1OhZ1KivB8GyjbH3i6v8+LPY=; b=b+NzRZMXXPI6Fmh3m6yVHzrEyolGJYuT4o1fVxzOOdpNo8zqg0tdq1jAwLZ27Mf8+e O78cvjhlBn/JMsEzHDwE7PzhNJUXOpnszzwfuc1yC8oo3+4eo9LmBhDf198XcVn/OPUa ZBtlnFT3jLDVTgajyc+8zH30tww/29J4p30cgu9ilpJFwNoDcZzNR5LtUnjeoZ2t25fF bgV9xxKo600ii4e4n6aKBKr/oy0O5Tvv+tTEUL0/SWzc6FuMoiv2WOx8q9WK6n4vaXlT wcoFrltt6SPgYWBrqiL5uWOXLh2+yXf+IkvcmG8yMYzPjWXuTesaS9PhcMpDhS4s2qQg aFiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N1swYuuX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3-v6si8088889pld.513.2018.07.06.06.07.50; Fri, 06 Jul 2018 06:08:07 -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=@linaro.org header.s=google header.b=N1swYuuX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933534AbeGFNFo (ORCPT + 99 others); Fri, 6 Jul 2018 09:05:44 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:38235 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932679AbeGFNF3 (ORCPT ); Fri, 6 Jul 2018 09:05:29 -0400 Received: by mail-wm0-f67.google.com with SMTP id 69-v6so14346132wmf.3 for ; Fri, 06 Jul 2018 06:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/mf4+83ViPj1iK27CkQ1OhZ1KivB8GyjbH3i6v8+LPY=; b=N1swYuuX3igHAcCiLrU0mni/+u+RKjKPGWMA7CHSoNQNhrZiC3dt26sO6FXyiocKgH iirSvEndWtqSHxnX6Y3CmvUMiEn3XLb/LdjdSjzmyCY5NH0H4CHhgeB/boN3tppHa5XV /Py7lupksH5z+uu4I3vsM20RMaOrBZ8IkoYn8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/mf4+83ViPj1iK27CkQ1OhZ1KivB8GyjbH3i6v8+LPY=; b=UrjuSJkx5Scgv/p2ZPrvIIYrxZCmT41G3AYqtqL9wmE/4qHpnNyCbdeJj3hTQARtwa Q9fsuffrLWzI2Fg4xvHrohRyRewBOkVY83VZF3mMDMkP1bYEQ4n9LosTj4NEBqi4/vsd h7VCfDLRt+T5rurEO8Se3t33dbvEEKpEQyDyTKIeM0EU8I0yf5LnPMBXy+IFNc2h5hZf E6/vaQltuI2C71X34rchEznVpntFCU8eygsuJhOkCv0A73RAIgGZ7GLqYBA455mgS5fh /yGoUm02mRsivuEP2ZRR3wDAdvMdBIaSd5DMl294EBGyDweC518ZxnyoZu47rKbS5eIg U8lQ== X-Gm-Message-State: APt69E2pzyrVm5aSqDqD9lTPrRl/Lum5eg1lIPam9MU+X6HXO2M6iTM0 2rzWmW8AuzRG7pF5NGk/GfWu6A== X-Received: by 2002:a1c:6709:: with SMTP id b9-v6mr6825764wmc.68.1530882328820; Fri, 06 Jul 2018 06:05:28 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.65.221]) by smtp.gmail.com with ESMTPSA id i14-v6sm6559273wro.11.2018.07.06.06.05.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:05:28 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: marek.vasut@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@bootlin.com, richard@nod.at, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] mtd: stm32-quadspi: replace "%p" with "%pK" Date: Fri, 6 Jul 2018 15:05:25 +0200 Message-Id: <20180706130525.22223-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard --- drivers/mtd/spi-nor/stm32-quadspi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/stm32-quadspi.c b/drivers/mtd/spi-nor/stm32-quadspi.c index 72553506a00b..13e9fc961d3b 100644 --- a/drivers/mtd/spi-nor/stm32-quadspi.c +++ b/drivers/mtd/spi-nor/stm32-quadspi.c @@ -355,7 +355,7 @@ static int stm32_qspi_read_reg(struct spi_nor *nor, struct device *dev = flash->qspi->dev; struct stm32_qspi_cmd cmd; - dev_dbg(dev, "read_reg: cmd:%#.2x buf:%p len:%#x\n", opcode, buf, len); + dev_dbg(dev, "read_reg: cmd:%#.2x buf:%pK len:%#x\n", opcode, buf, len); memset(&cmd, 0, sizeof(cmd)); cmd.opcode = opcode; @@ -376,7 +376,7 @@ static int stm32_qspi_write_reg(struct spi_nor *nor, u8 opcode, struct device *dev = flash->qspi->dev; struct stm32_qspi_cmd cmd; - dev_dbg(dev, "write_reg: cmd:%#.2x buf:%p len:%#x\n", opcode, buf, len); + dev_dbg(dev, "write_reg: cmd:%#.2x buf:%pK len:%#x\n", opcode, buf, len); memset(&cmd, 0, sizeof(cmd)); cmd.opcode = opcode; @@ -398,7 +398,7 @@ static ssize_t stm32_qspi_read(struct spi_nor *nor, loff_t from, size_t len, struct stm32_qspi_cmd cmd; int err; - dev_dbg(qspi->dev, "read(%#.2x): buf:%p from:%#.8x len:%#zx\n", + dev_dbg(qspi->dev, "read(%#.2x): buf:%pK from:%#.8x len:%#zx\n", nor->read_opcode, buf, (u32)from, len); memset(&cmd, 0, sizeof(cmd)); -- 2.15.0