From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120] helo=us-smtp-1.mimecast.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWnLp-00011E-Ah for kexec@lists.infradead.org; Thu, 07 May 2020 20:42:38 +0000 Date: Thu, 7 May 2020 16:42:19 -0400 From: Rafael Aquini Subject: Re: [PATCH] kernel: add panic_on_taint Message-ID: <20200507204219.GJ205881@optiplex-lnx> References: <20200506222815.274570-1-aquini@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Qian Cai Cc: Kees Cook , Baoquan He , linux-doc@vger.kernel.org, Jonathan Corbet , kexec@lists.infradead.org, LKML , Luis Chamberlain , linux-fsdevel@vger.kernel.org, Andrew Morton , dyoung@redhat.com On Wed, May 06, 2020 at 10:50:19PM -0400, Qian Cai wrote: > > > > On May 6, 2020, at 6:28 PM, Rafael Aquini wrote: > > > > Analogously to the introduction of panic_on_warn, this patch > > introduces a kernel option named panic_on_taint in order to > > provide a simple and generic way to stop execution and catch > > a coredump when the kernel gets tainted by any given taint flag. > > > > This is useful for debugging sessions as it avoids rebuilding > > the kernel to explicitly add calls to panic() or BUG() into > > code sites that introduce the taint flags of interest. > > Another, perhaps less frequent, use for this option would be > > as a mean for assuring a security policy (in paranoid mode) > > case where no single taint is allowed for the running system. > > Andrew, you can drop the patch below from -mm now because that one is now obsolete, > > mm-slub-add-panic_on_error-to-the-debug-facilities.patch > Please, don't drop it yet. I'll send a patch to get rid of the bits, once this one gets accepted, if it gets accepted. -- Rafael _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec