From patchwork Fri Jul 6 12:38:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Pallardy X-Patchwork-Id: 141300 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3066259ljj; Fri, 6 Jul 2018 05:38:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc9YrQ1abjj0RwzEHxeD3CeIFA9c1VbGea61X+gBmcnjj5KBVuesGl6BvEZWrFs473MDFm3 X-Received: by 2002:a62:d693:: with SMTP id a19-v6mr10431903pfl.248.1530880736667; Fri, 06 Jul 2018 05:38:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530880736; cv=none; d=google.com; s=arc-20160816; b=Q7E4/l4JeVQtCdil2s5gYRf+GKOTimxvu9g94pDWlJRJu/21QQ7+JlSZq8mcww5p40 cMi/AqWBBjxvzDuwUa0CHVv65CEYbxDcHRC+J7CcrhXSOfXSTqBe9VT9qrECbnxV6lYq ym15v9+l3cNQVtMuPso9IOfQvriEEo+13eel362RlU03lWYCixgMpMh/C53YBl7wIqcJ Hy9bmHvs0eyimz4XjouMu/vyEP0FJUQgky9o4bje4aRw4BwNqwofFvENJEOhkvEZZWLS xY0WOAiDtPjw0Z50hu6ceCef/zZRVZUKMPmzFhuqiunngJm/ziTbNtGgqY6c1l3iYP32 dDDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=hYmF87nZIL31n4TfDMoTdbPsKhYzqAQbNJZ2O/QVb7E=; b=oBN2LV3hLg9wPUDHQws5fL5noOEoZRRMPWkWFbJrkrWSZmsif6izqsavZ0V2KfNzLK wcYQM3qVcN3Ml68kfVFhoNfaUluN5G9zAhHp38TJR5UHMaQBKgnL79xbtw9QCxK7AdY3 kY8lc0k4L+6WWfKrkm4I7mbKnB3uXF9N0odtkTV4DLkRcqjEtzFEKCMM9/KVUwkQpFmL rtQfSh19RHryxkZBpYwjEYngIyUOBKYpDtK8q2ccjftiHHLOULofSVuwsawA7Wxxpma/ wqEhgQCflC0QQx3bFTZrjS1YpEJTPf6mSwYnsewEaX1zp2NLMYcK0AANipjKjvJy/c9S z6ew== ARC-Authentication-Results: i=1; mx.google.com; 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 s15-v6si7967071pgk.178.2018.07.06.05.38.56; Fri, 06 Jul 2018 05:38:56 -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; 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 S933335AbeGFMiz (ORCPT + 30 others); Fri, 6 Jul 2018 08:38:55 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:3295 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933286AbeGFMiv (ORCPT ); Fri, 6 Jul 2018 08:38:51 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w66CTPWH014129; Fri, 6 Jul 2018 14:38:48 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2k0dnr6eqt-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 06 Jul 2018 14:38:48 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A48423A; Fri, 6 Jul 2018 12:38:47 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag7node2.st.com [10.75.127.20]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 859B64E04; Fri, 6 Jul 2018 12:38:47 +0000 (GMT) Received: from localhost (10.75.127.49) by SFHDAG7NODE2.st.com (10.75.127.20) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 6 Jul 2018 14:38:47 +0200 From: Loic Pallardy To: , CC: , , , , Loic Pallardy Subject: [PATCH 1/1] remoteproc: st_slim: replace "%p" with "%pK" Date: Fri, 6 Jul 2018 14:38:44 +0200 Message-ID: <1530880724-29402-1-git-send-email-loic.pallardy@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG6NODE3.st.com (10.75.127.18) To SFHDAG7NODE2.st.com (10.75.127.20) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-07-06_03:, , signatures=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: Loic Pallardy --- drivers/remoteproc/st_slim_rproc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.9.1 diff --git a/drivers/remoteproc/st_slim_rproc.c b/drivers/remoteproc/st_slim_rproc.c index 1ffb1f0..d711d94 100644 --- a/drivers/remoteproc/st_slim_rproc.c +++ b/drivers/remoteproc/st_slim_rproc.c @@ -195,7 +195,8 @@ static void *slim_rproc_da_to_va(struct rproc *rproc, u64 da, int len) } } - dev_dbg(&rproc->dev, "da = 0x%llx len = 0x%x va = 0x%p\n", da, len, va); + dev_dbg(&rproc->dev, "da = 0x%llx len = 0x%x va = 0x%pK\n", + da, len, va); return va; }