From patchwork Fri Jul 6 13:05:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 940474 X-Patchwork-Delegate: boris.brezillon@free-electrons.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gfvF/ZPd"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="N1swYuuX"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41MZjK6t70z9s4r for ; Fri, 6 Jul 2018 23:05:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=XHfofCHY6kvOmbnXbw0iN1n1eIBf6SD1vzPZxIoLsZ0=; b=gfv F/ZPdZxm3gacxVRE0BXrCNwcVL8hsr+34BUyJXWmsz0h7v6ZK9KrVXJQqx5dvVZ8pcmwang3UE0cg PeTh3HTcRMveZCzO0E1euKiMbuCIG3VhrEicJ7LSIB/GHBunnbUo1VoaQ9CfykD/Csv0rjRElhdma oZ43Rz+TpNNPrkQYfxzOTY9i1l/a9UMBfEmSVrK80HxWAEpghiT9amTqVPFZHIwYlSmrlF6s1KyqV Zm4uQLRJnGmdOTtfl260Chd33z1cxDiWS4MMjdoXakob4HRT8pm11NBo1/6UnZocb5tPeptqWYwZ9 vAgBvTqgAOgS0s2dKhf1YnLnqIHfDLA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbQQo-0007FZ-IJ; Fri, 06 Jul 2018 13:05:50 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbQQe-000747-EP for linux-mtd@lists.infradead.org; Fri, 06 Jul 2018 13:05:41 +0000 Received: by mail-wm0-x244.google.com with SMTP id s14-v6so14445662wmc.1 for ; Fri, 06 Jul 2018 06:05:30 -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=FkP/a7/PVCmJDDlf1CwEOFkuNv/tLu/8vvDdqJiKjvj5uP0xaAmHVFG0CODwet4+To ohs6qILdErl9Pw+Gi2WXRWrcGqghr1+XMcvga3YB+f8FCjpo9rzUKm8s1pdH2TfavRiF uZCjnUuiMLA2DRDqC7dqzFv51tFEQf+mT9cqj+EvprCeeedO+zalVV8YiO+/9nTCDt2z eDEM6TPT4YdANnxyFwD//EwL2rPXYsY33vEPb7A7/ky4bwrw1olZ/R8EZutPzgkD5BHW v3J7IcFRSjKrgxZ+E0Eby+/i803aCQF9C2Nh8qM1XGLCsGuGAgT+ghsouulb08v2OEjs u4gg== X-Gm-Message-State: APt69E2OhIz78CuR/g1SyX5SIZZ05ddmU4GwbG+yDjXJD6/jC9OHhBC0 et6LBIAxNiRN7PeO2lljTrKohQ== X-Google-Smtp-Source: AAOMgpfF8F4Px9j2o6vEqxcfUcf/EITxmHoCTWIUL8+1iVCiVMARz+QnKeNR3UQ+S0h47VL33/45+Q== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180706_060540_488048_B807F967 X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c09:0:0:0:244 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Benjamin Gaignard MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.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));