From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751978AbdJDIzg (ORCPT ); Wed, 4 Oct 2017 04:55:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:58128 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736AbdJDIze (ORCPT ); Wed, 4 Oct 2017 04:55:34 -0400 Date: Wed, 4 Oct 2017 10:55:42 +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 1/6] lib: vsprintf: additional kernel pointer filtering options Message-ID: <20171004085542.GA28247@kroah.com> References: <1506816410-10230-1-git-send-email-me@tobin.cc> <1506816410-10230-2-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-2-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:45AM +1100, Tobin C. Harding wrote: > Add the kptr_restrict setting of 3 which results in both > %p and %pK values being replaced by zeros. > > Add an additional %pP value inspired by the Grsecurity > option which explicitly whitelists pointers for output. > > Amend scripts/checkpatch.pl to handle %pP. > > This patch is based on work by William Roberts > > > Signed-off-by: Tobin C. Harding Signed-off-by: Greg Kroah-Hartman