From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752079AbdJDI6A (ORCPT ); Wed, 4 Oct 2017 04:58:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58238 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736AbdJDI55 (ORCPT ); Wed, 4 Oct 2017 04:57:57 -0400 Date: Wed, 4 Oct 2017 10:58:05 +0200 From: Greg KH To: "Tobin C. Harding" Cc: Petr Mladek , Joe Perches , Ian Campbell , Sergey Senozhatsky , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, Catalin Marinas , Will Deacon , Steven Rostedt , William Roberts , Chris Fries , Dave Weinstein Subject: Re: [kernel-hardening] [RFC V2 3/6] lib: vsprintf: physical address kernel pointer filtering options Message-ID: <20171004085805.GE28247@kroah.com> References: <1506816410-10230-1-git-send-email-me@tobin.cc> <1506816410-10230-4-git-send-email-me@tobin.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1506816410-10230-4-git-send-email-me@tobin.cc> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 01, 2017 at 11:06:47AM +1100, Tobin C. Harding wrote: > Add the kptr_restrict setting of 4 which results in %pa and > %p[rR] values being cleansed. > > Address types printed with %pa are replaced by zeros. Resources printed > with %p[rR] have the starting address replaced by zeros, resource size > is still shown. > > Signed-off-by: Tobin C. Harding Signed-off-by: Greg Kroah-Hartman