From patchwork Fri Jul 6 13:07:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 10511695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F9B2600CA for ; Fri, 6 Jul 2018 13:13:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E50E285E1 for ; Fri, 6 Jul 2018 13:13:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1265B285ED; Fri, 6 Jul 2018 13:13:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DDAF285E1 for ; Fri, 6 Jul 2018 13:13:05 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B2A992673D4; Fri, 6 Jul 2018 15:07:14 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 563342673D8; Fri, 6 Jul 2018 15:07:12 +0200 (CEST) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by alsa0.perex.cz (Postfix) with ESMTP id 348C42673C7 for ; Fri, 6 Jul 2018 15:07:08 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id i139-v6so14763539wmf.4 for ; Fri, 06 Jul 2018 06:07:08 -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=WJeLuqyEJc7/tPpKxg+RC7iLj+X8Fywv7Zs3uhn6DB8=; b=iRkXqLWFnhArdsBb6TmP9EISMQ872vTwH07GyVtX469rW0yvMMZGbTzu3Ex2qOXO3j H8YxX1B/9Gh2ov3Pd8QvNMTKyy0FFLUsi58j2jugeJxgz5VX7ocdfmrANJj7UFVqqDcX Y6BHmXmsj+YfBIIkVW5PWbBm4fIJfy2qXyeFE= 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=WJeLuqyEJc7/tPpKxg+RC7iLj+X8Fywv7Zs3uhn6DB8=; b=W8VjsGCk65OaHyYod+JMLW/jRdE8tXP6p++nOswQbo1g/wl4R0VSp5B3u2h6ZADsvE z+E2pghE2SXrBAHmps23efi19OXeO2CDcxNWwnV3q5tKdaDsSGfcns8f1/EVlmMzpZYP /Q19FScC42VBXk45NyRL6M6WXGfiwFAZUVax1HNRuKg15Vy5ksCMjabkr+4fqhH/rWpu xSAlK0FyBJxCenu/21OnWNi8rGub5IjPC13bprzUQPuWMKtV8YTdrkljVbZGtdhBPAoq VKktzJcbp1lsh6itD7T9RsGXxWraunRZYRIbPy6ojMlpPRwMsZz3bMZ+g73MQ53F0QUG T8iQ== X-Gm-Message-State: APt69E3CP4cRTbvXmxPvlgWw4JS0reyZn+TZ8j+/wAthuNmMk4i4i8UB 8XE+sZd+0BXGnY+DDXtrN+kCJQ== X-Google-Smtp-Source: AAOMgpc/5R8EZZwqCnDxqtnoeiu8jPhtjD5Y2rmjWaLSFJv2ITjUgKV6JEJDi9ify20bU7HL6epyPg== X-Received: by 2002:a1c:90e:: with SMTP id 14-v6mr6684069wmj.130.1530882428381; Fri, 06 Jul 2018 06:07:08 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.214.65.221]) by smtp.gmail.com with ESMTPSA id n6-v6sm719241wrr.27.2018.07.06.06.07.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jul 2018 06:07:07 -0700 (PDT) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, arnaud.pouliquen@st.com Date: Fri, 6 Jul 2018 15:07:03 +0200 Message-Id: <20180706130703.22352-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Benjamin Gaignard Subject: [alsa-devel] [PATCH] sound: stm32: replace "%p" with "%pK" X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The format specifier "%p" can leak kernel addresses. Use "%pK" instead. Signed-off-by: Benjamin Gaignard --- sound/soc/stm/stm32_adfsdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c index db73fef3e500..0e9373064032 100644 --- a/sound/soc/stm/stm32_adfsdm.c +++ b/sound/soc/stm/stm32_adfsdm.c @@ -149,7 +149,7 @@ static int stm32_afsdm_pcm_cb(const void *data, size_t size, void *private) unsigned int old_pos = priv->pos; unsigned int cur_size = size; - dev_dbg(rtd->dev, "%s: buff_add :%p, pos = %d, size = %zu\n", + dev_dbg(rtd->dev, "%s: buff_add :%pK, pos = %d, size = %zu\n", __func__, &pcm_buff[priv->pos], priv->pos, size); if ((priv->pos + size) > buff_size) {