Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp146094imm; Tue, 5 Jun 2018 16:52:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJmQLNuHoQstnmIsBwwCQshRe9qJ5QbZ5pYk7vDqTm7E4FU+KlyR0u2JO3u6yJwuRLH6Cmr X-Received: by 2002:a62:c8a:: with SMTP id 10-v6mr33735pfm.27.1528242724005; Tue, 05 Jun 2018 16:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528242723; cv=none; d=google.com; s=arc-20160816; b=ylrqWKcqu9YdXyXZCZdv7yNE5O+vvUf62zQThc6PiD0nFNkw7CGADi35X7y09jUzMt lRRan5s79ptWpsdOPWdVl0tVKYco78psft8DD6cZBdIDDUoYmwO1i7M5fN++kAIJoYD9 uLSbZhTbxK6cJAgGyVn/Z9CSgGOJr23J/qE6vKYOSDmUKdoeuJAw5AJDwWg/9grziMai IBwol3n6gj9PiGsW36h/jtYuzKf7uyUpCoYJrGfjZi1+Vs/2yVjC1J6A11R9ToMQWovg t55BM6mbG/8d11PFv9odzZgoeGuqwxU3hhsXLNaN9Oraij03CHVmAai/pwgL7cVO2WcO uJNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:arc-authentication-results; bh=LNCzYQ5N4+WPoLstFWA3l/5D5rggYof5s4mSaMAdrO4=; b=HTs3VkUPsPFhigUC5YeS1BDXscAvuZTQuy2+nqPZ3B1sAl5YWHkhm3xSJu6KofJ9YL WSBWz9sQ8s4YATQQDTEOe4B9UEtHDSMcnSGOi422K35chR64S8ttq2w6wy4FH3FX21BI NWzYUjpRTXjgge6l7q0O34JwqG2+eTJLLWxOsLTliFunzvVtCU43vKizAAepiq4r7Z+d 9/99kzbpMwKcIqO8a6iyx/FP1Eyl2vGEnVg1bcDSwFikbZhzVkp+3k3j4FC8a63kbFmj sflSdsj0yYigW/RcqRiZt/G2m8C9Xz0SDfru9+rUrfjPcwUP62gNfKZcUtWX4buGo7GC oQ+g== 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 d31-v6si51007581pld.23.2018.06.05.16.51.49; Tue, 05 Jun 2018 16:52:03 -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 S932138AbeFEXvX convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Jun 2018 19:51:23 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:62901 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752444AbeFEXvW (ORCPT ); Tue, 5 Jun 2018 19:51:22 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 11955553-1500050 for multiple; Wed, 06 Jun 2018 00:51:12 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Daniel Rosenberg , "Sumit Semwal" , linux-kernel@vger.kernel.org From: Chris Wilson In-Reply-To: <20180605234041.246060-1-drosen@google.com> Cc: "Daniel Rosenberg" , "Divya Ponnusamy" , "Gustavo Padovan" , dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, "stable" , kernel-team@android.com, linux-media@vger.kernel.org References: <20180605234041.246060-1-drosen@google.com> Message-ID: <152824267238.9058.16502636333550686918@mail.alporthouse.com> User-Agent: alot/0.3.6 Subject: Re: [Linaro-mm-sig] [PATCH resend] drivers: dma-buf: Change %p to %pK in debug messages Date: Wed, 06 Jun 2018 00:51:12 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Daniel Rosenberg (2018-06-06 00:40:41) > The format specifier %p can leak kernel addresses > while not valuing the kptr_restrict system settings. > Use %pK instead of %p, which also evaluates whether > kptr_restrict is set. This is backwards though. You never care about the actual value here and the hashed pointer (%p) is always enough to provide an identifying token. -Chris