Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2365064pxu; Mon, 7 Dec 2020 04:55:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUv1V5kOK79HWfWdBf42kgbQpKL3ENJzrgHM/HlY+aw2cMh3I8G4b58WzgO1xYpqbKuqt1 X-Received: by 2002:a17:906:52c4:: with SMTP id w4mr18908087ejn.165.1607345702687; Mon, 07 Dec 2020 04:55:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607345702; cv=none; d=google.com; s=arc-20160816; b=RohLLNJMq8RlA0i1Gab82AkGvJZlCtiK3OIGsTg8LC4GQGMQ9RyZktG0D9zLZ8/AuK kzyq4nf1cGcC3vK7V+Z8CTAIvRc9ymgFeBslOUIbxByi5JPTCzKnklLOxPkJiEvyHOGB y7xTHHhUftcLP+69CI/j2c2C2E+W9d5sZkYjPRDaAgWjk1pk9kzIk51KaJ+6SHtMW/Q0 PJJLu37wtvzbfFShHSKgcfHdr6rwwEuT0kTgar6+46ulBTTCOnvTHLcRVgdj9F4pejjg G+rWmcM6ujmDiSoXbd/HMZw21aRnarz7nwlHrx3cosPVolCg+Douw4/WaSrZ8T2ltYxY lgQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mVvoWV/eGHM+7kZ0vIXpK/8KdpiU0TSbdMoKFhbFRfw=; b=gH+g2HOAOcNLuzgdreDXNu1gJu1bj2otGqXDycHDc0rcj0Mf4UIFOgtuIeqsD+VcLW DIAabxdUm8aa3W5rtY7aa8+AVspwIrzqw8RTUX227/0/ys7/u9ljOWqQVE8cJcLfAlfn zHwuEp3C89NHsc3X/VRHjXUcXr156OR8a1BGnbNQWvs/X8lcs+I0ELDWdlfTPx1BiDJt egt86rtPJl0fMg73b+V9wBGYO+0dVn9d6vjtRQa1xRHPv9hvAsZNtvqI1Fee8IjcUWki 9qEDMkJ1R3xN9xkiKLU9ecorscc3yTEEmZ0Aw+gwuBX+ZcFzLxCXoJi/WbMbTDmNmsdR fGQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WwZu2K5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si439222eja.560.2020.12.07.04.54.39; Mon, 07 Dec 2020 04:55:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WwZu2K5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726239AbgLGMxE (ORCPT + 99 others); Mon, 7 Dec 2020 07:53:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgLGMxD (ORCPT ); Mon, 7 Dec 2020 07:53:03 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B519C0613D2; Mon, 7 Dec 2020 04:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mVvoWV/eGHM+7kZ0vIXpK/8KdpiU0TSbdMoKFhbFRfw=; b=WwZu2K5cKSFDGRkLU+JwLayF4V OrrUcySs8/FY0y/dk1l96lzaG4OLyvC/6/ALtcfbhS8/IcLgRy+wvyyBHRLtKHImb/KP0IZCXXyjf Jdp0a4aO+L5m5Q4y5p48z5jk4OCZi0emboNl20hVjXTUL1R54a8OwxGNgReYj7Cmw2CfxdgR+U8lK /fGUJxodRV1YluflWKA12yfCggwloFYbws+ULHYCz7sNeo9OgYFA1I0C78lunEtlmXWkKzxjg6Zb2 6Qy3Q6qNiM93n6YNuxwTYSgEThsYfPPX4Sgccri3icuWDgmYnXEDKBr/7YQsnm5WihBj+vBMC35DS ASP+uxRw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmFzX-0004VA-Uf; Mon, 07 Dec 2020 12:51:48 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 91681304B92; Mon, 7 Dec 2020 13:51:45 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 65A36200BB76A; Mon, 7 Dec 2020 13:51:45 +0100 (CET) Date: Mon, 7 Dec 2020 13:51:45 +0100 From: Peter Zijlstra To: Vladimir Kondratiev Cc: Jonathan Corbet , Luis Chamberlain , Kees Cook , Iurii Zaikin , "Paul E. McKenney" , Andrew Morton , Randy Dunlap , Thomas Gleixner , Mauro Carvalho Chehab , Mike Kravetz , "Guilherme G. Piccoli" , Andy Shevchenko , Kars Mulder , Lorenzo Pieralisi , Kishon Vijay Abraham I , Arvind Sankar , Joe Perches , Rafael Aquini , "Eric W. Biederman" , Christian Brauner , Alexei Starovoitov , Davidlohr Bueso , Michel Lespinasse , Jann Horn , chenqiwu , Minchan Kim , Christophe Leroy , Vladimir Kondratiev , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFC PATCH] do_exit(): panic() recursion detected Message-ID: <20201207125145.GM3040@hirez.programming.kicks-ass.net> References: <20201207124050.4016994-1-vladimir.kondratiev@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201207124050.4016994-1-vladimir.kondratiev@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 07, 2020 at 02:40:49PM +0200, Vladimir Kondratiev wrote: > From: Vladimir Kondratiev > > Recursive do_exit() is symptom of compromised kernel integrity. > For safety critical systems, it may be better to > panic() in this case to minimize risk. You've not answered the previously posed question on why panic_on_oops isn't more suitable for your type of systems. > Signed-off-by: Vladimir Kondratiev > Change-Id: I42f45900a08c4282c511b05e9e6061360d07db60 This Change-ID crap doesn't belong in kernel patches.