Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753760AbcJFNb7 (ORCPT ); Thu, 6 Oct 2016 09:31:59 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:60273 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137AbcJFNbt (ORCPT ); Thu, 6 Oct 2016 09:31:49 -0400 Date: Thu, 6 Oct 2016 06:31:47 -0700 From: Christoph Hellwig To: william.c.roberts@intel.com Cc: kernel-hardening@lists.openwall.com, corbet@lwn.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] printk: introduce kptr_restrict level 3 Message-ID: <20161006133147.GA20206@infradead.org> References: <1475690686-16138-1-git-send-email-william.c.roberts@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475690686-16138-1-git-send-email-william.c.roberts@intel.com> User-Agent: Mutt/1.6.1 (2016-04-27) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 524 Lines: 12 On Wed, Oct 05, 2016 at 02:04:46PM -0400, william.c.roberts@intel.com wrote: > From: William Roberts > > Some out-of-tree modules do not use %pK and just use %p, as it's > the common C paradigm for printing pointers. Because of this, > kptr_restrict has no affect on the output and thus, no way to > contain the kernel address leak. So what? We a) don't care about out of tree modules and b) you could just triviall fix them up if you care. No need to bloat the kernel with crap like this.