Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp603181imm; Sat, 7 Jul 2018 04:30:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd6YHuOyBFT4tVkGWWEmypafcZLkTUiHU0kNRVlHt2HKBhSlUZqsVbmcO8VpSUFLtkRIWTr X-Received: by 2002:a62:4704:: with SMTP id u4-v6mr14028842pfa.76.1530963042914; Sat, 07 Jul 2018 04:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530963042; cv=none; d=google.com; s=arc-20160816; b=MeqTqf5fESP9BZglTwALYhQWq69SSDHlpQx993pz4I5jIzGPdrODdLylYPaCtG0mnQ x+S1QhAcNHz2NsnCKArFo47gud3yXuFe5ud5D4q56niWYKrlbtANh6H+JMtPAMmsrLX7 WTRuu5Sdu9t35L7ljQC38uUrNP6Pb2y1ohmJgOx3d8hJb2amo3Jzx8/mCdYNcksHABvH vUPW9BwfS28PaJEVu7F1c/0M64vcvtV4fxHmntTNJDU4iyAGr4iFN8FfNnIwtX3nY3VM mmU3LCT3Ri1zHHFjB1W7EzcGErjACyRAtedG340YgBm8pid8RrR4CXaHMrsalMRxpQvE QbHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=ifu+eouiNPr+93Gd9P5KpIguxwMiifwmBu+oB9Y8ABI=; b=CCz+YAlpo34MyppgRSSL2dPEjyDcKAIszxPLUa75JDKe8UhEJYztlLVb8arcKj0omv efy8sjyP104raOf//tr49rQujYxGYyhrfvWha9gl0VV8XXSmcPDsz3bOEIxAHKgc9GB6 6fjm38X9nVwwoUzgss+WINxjkZUEqh1E6M9B+Y6mEJ0JlI1QcVDmyeZtn5sJ5ePzuHmG U8gDO7FEXehiQANWanLouZofI3X58NFSuMBSGadXvgqUvoHhcZ5fGvT2YqBN4ygL7EHH vsr0mfgRUf3NMUOHDZl43oEWMn4QWmu+5uw6ONH3uYN4EkqNCT7N2Oo/EYBFiIc6dooK TG7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZusevqsC; 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 r17-v6si9517613pgd.52.2018.07.07.04.30.28; Sat, 07 Jul 2018 04:30:42 -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=ZusevqsC; 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 S1754164AbeGGL2E (ORCPT + 99 others); Sat, 7 Jul 2018 07:28:04 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:35347 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753687AbeGGL2C (ORCPT ); Sat, 7 Jul 2018 07:28:02 -0400 Received: by mail-oi0-f65.google.com with SMTP id i12-v6so28130598oik.2 for ; Sat, 07 Jul 2018 04:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ifu+eouiNPr+93Gd9P5KpIguxwMiifwmBu+oB9Y8ABI=; b=ZusevqsC9EtN1sR0RXgfUHn8Y30/WICE1EwXSRnmESQUEQIfAnGFmmTQJYHgotwZG+ eDFXS/cFj53ItOLK6/j1bCPjXpPHYglm030VcxJUYppIQ/BAVRS0eTgFqyk7r159miBi GRt/r3Pqm5ezt7aBpGL8H1X0Pp3aOylFOHjHo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ifu+eouiNPr+93Gd9P5KpIguxwMiifwmBu+oB9Y8ABI=; b=dzpqbPewwFeaT2HFlCyNHxIgyCfNv8nYLbJMthVefedriVVEN9j5iD21SDSOz72DrH i3cCdljodeoMqZCDpECa23Jt3jF7GY3j+aA/T4Kf9rpX36lFB2NdugpND9Pdp1gFCRR3 +yy8GZr0Q8qx+7FYK7OaRyPl7EBtfafS+kQjkueFFOfH2CcgTXFuXGDwrFIRVS2/kgDS bWbUmnQ3+FQ8459Cmbkwb9TtJvYetUFi/lL/l3xX36c7RIw5EgIpm5GSt8rOptNjgpC0 2B1WPnXlXb/b5NlPeRT08nB44qaplOmgWRyJnln2u9aedbODvGiZrOvQl7oK9Wsgs0kW 5KyA== X-Gm-Message-State: APt69E2h/nSSOM+2Gz3JiYj8a7PG+Y5RLk7aNSpPXUNphnEqrd6BkvlA mlOs/JRSO3Dlx+lcolEwNQ8SNuaLIuqOZWb/cUUKKQ== X-Received: by 2002:aca:a8c7:: with SMTP id r190-v6mr14131954oie.357.1530962881772; Sat, 07 Jul 2018 04:28:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:192d:0:0:0:0:0 with HTTP; Sat, 7 Jul 2018 04:28:01 -0700 (PDT) In-Reply-To: References: <20180706130220.21957-1-benjamin.gaignard@st.com> From: Benjamin Gaignard Date: Sat, 7 Jul 2018 13:28:01 +0200 Message-ID: Subject: Re: [PATCH] dma: stm32: replace "%p" with "%pK" To: Geert Uytterhoeven Cc: vkoul@kernel.org, Dan Williams , Maxime Coquelin , Alexandre Torgue , dmaengine@vger.kernel.org, Linux Kernel Mailing List , Linux ARM , Benjamin Gaignard Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-07-06 21:38 GMT+02:00 Geert Uytterhoeven : > Hi Benjamin, > > On Fri, Jul 6, 2018 at 3:03 PM Benjamin Gaignard > wrote: >> The format specifier "%p" can leak kernel addresses. >> Use "%pK" instead. > > Still? Isn't the value randomized these days? %p give an hashed value, with %pK you can use a sysctl to get the real value if you are root > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org > > In personal conversations with technical people, I call myself a hacker. = But > when I'm talking to journalists I just say "programmer" or something like= that. > -- Linus Torvalds --=20 Benjamin Gaignard Graphic Study Group Linaro.org =E2=94=82 Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog