From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF0BBC433EF for ; Sun, 3 Oct 2021 03:47:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CBE10619F8 for ; Sun, 3 Oct 2021 03:47:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbhJCDt2 (ORCPT ); Sat, 2 Oct 2021 23:49:28 -0400 Received: from zeniv-ca.linux.org.uk ([142.44.231.140]:42012 "EHLO zeniv-ca.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbhJCDt0 (ORCPT ); Sat, 2 Oct 2021 23:49:26 -0400 Received: from viro by zeniv-ca.linux.org.uk with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mWsTQ-009XeT-HF; Sun, 03 Oct 2021 03:47:36 +0000 Date: Sun, 3 Oct 2021 03:47:36 +0000 From: Al Viro To: Guo Zhi Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs/elf: Fix kernel pointer leak Message-ID: References: <20210929131703.1163417-1-qtxuning1999@sjtu.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210929131703.1163417-1-qtxuning1999@sjtu.edu.cn> Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 09:17:02PM +0800, Guo Zhi wrote: > Pointers should be printed with %p rather than %px > which printed kernel pointer directly. > Change %px to %p to print the secured pointer. Huh? What makes it a kernel pointer? It's a userland address...