From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754169AbcKPIvV (ORCPT ); Wed, 16 Nov 2016 03:51:21 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40702 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbcKPIvU (ORCPT ); Wed, 16 Nov 2016 03:51:20 -0500 Date: Wed, 16 Nov 2016 09:51:30 +0100 From: Greg KH To: Ingo Molnar Cc: Kees Cook , Peter Zijlstra , Will Deacon , "Reshetova, Elena" , Arnd Bergmann , Thomas Gleixner , "H. Peter Anvin" , David Windsor , Linus Torvalds , LKML Subject: Re: [RFC][PATCH 7/7] kref: Implement using refcount_t Message-ID: <20161116085130.GA26208@kroah.com> References: <20161114174446.832175072@infradead.org> <20161115084009.GB15734@gmail.com> <20161115094744.GG3142@twins.programming.kicks-ass.net> <20161115100359.GA7757@gmail.com> <20161115104608.GH3142@twins.programming.kicks-ass.net> <20161115130315.GA12957@gmail.com> <32165F01-DA9E-4287-9831-6EDE40A71E83@infradead.org> <20161116083155.GC1270@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161116083155.GC1270@gmail.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 16, 2016 at 09:31:55AM +0100, Ingo Molnar wrote: > So what I'd love to see is to have a kernel option that re-introduces some > historic root (and other) holes that can be exploited deterministically - > obviously default disabled. Ick, I don't want to have to support nasty #ifdefs for "CONFIG_TOTALLY_INSECURE" type options in code logic for the next 20+ years, do you? > I'd restrict this to reasonably 'deterministic' holes, and the exploits themselves > could be somewhere in tools/. (Obviously only where the maintainers agree to host > the code.) They wouldn't give a root shell, they'd only test whether they reached > uid0 (or some other elevated privilege). Having exploits in tools/ would be good, I would like to see that, as then we can ensure that we don't ever introduce old problems that we have fixed again in the future. That I have no objection to. thanks, greg k-h