From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754546AbcKOTRI (ORCPT ); Tue, 15 Nov 2016 14:17:08 -0500 Received: from merlin.infradead.org ([205.233.59.134]:38020 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753259AbcKOTRG (ORCPT ); Tue, 15 Nov 2016 14:17:06 -0500 User-Agent: K-9 Mail for Android In-Reply-To: References: <20161114173946.501528675@infradead.org> <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> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [RFC][PATCH 7/7] kref: Implement using refcount_t From: Peter Zijlstra Date: Tue, 15 Nov 2016 20:16:47 +0100 To: Kees Cook , Ingo Molnar CC: Greg KH , Will Deacon , "Reshetova, Elena" , Arnd Bergmann , Thomas Gleixner , "H. Peter Anvin" , David Windsor , Linus Torvalds , LKML Message-ID: <32165F01-DA9E-4287-9831-6EDE40A71E83@infradead.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15 November 2016 19:06:28 CET, Kees Cook wrote: >I'll want to modify this in the future; I have a config already doing >"Bug on data structure corruption" that makes the warn/bug choice. >It'll need some massaging to fit into the new refcount_t checks, but >it should be okay -- there needs to be a way to complete the >saturation, etc, but still kill the offending process group. Ideally we'd create a new WARN like construct that continues in kernel space and terminates the process on return to user. That way there would be minimal kernel state corruption.