Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2367144pxu; Mon, 7 Dec 2020 04:59:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5FWePhn/rX8vHO3BwJr5A2VVqkV2LIIsbDC7HJmsg0qL2nXJDUs+lL7jyKA2K6rV6H62K X-Received: by 2002:a17:906:e247:: with SMTP id gq7mr5003527ejb.27.1607345942037; Mon, 07 Dec 2020 04:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607345942; cv=none; d=google.com; s=arc-20160816; b=h5Nq9+I1bdaM+0gpz8N8HfmIh9fkKzbU0cfsZ0dC02WBRMgd2coIotacpgIG+yBt0y KSlpZWddyKUKweFJI+Wc0tzEb9I9wxDWjSZyLsj3S545IVfi2cvaCqUuC47BVSVZWZ6m 3NHbQ3C6IqQvtZcGprethuITdlWiLB1hfDFhVvSyXi+s1QzogpDy7gwtAmkiHGl8XYEd tsPCaV8ocSJNQr21bXhc8FdV5BFeoneJThgE5NxcmfDajSA1n5h/yaP8SOm4xW5Laipf S6yGB7SkXqg5tSX21/doPXb5j20nYvHucqhKPf/neP7hB5BkOKfdDBTSkQY/n/wYAqmN 9mdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=4ie5MJGF9lKoT2SSL3hgwpihnRumhIwqNhuznpvjklY=; b=wjnp9fjpCWKiUkFtbOS7W+zJPHd2l0evs4KT0gewH8c/n1yG0s4Z9YYcG/TsHQ4sfh CFG1VAUgVFMWMDIv4lzrJt6D2sVwSGGIBoQHV4yBU59Ax9EsOl1YI0n0sH9s2QmB5nxa NHEEprmTvoGtW8SMjiDhqyMz5Wsg8Gk6tueHHXU0y0NfUpCsAZett4/BXxrrAfz0Zkqz t6KiHVuhq6Y4aENRV7w9k/gB6jJNMwL3BQKX98bb6Izkd2X45yHnEr3nHyxgujUfz3aV rZgRg6TvhBqXhI7TVEnDr/otbldwCDyeBoUTL0tKPQqi0vXN1f59oL4ecpdJLgOzROoB GeaQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si8518958edy.92.2020.12.07.04.58.38; Mon, 07 Dec 2020 04:59: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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbgLGM5M (ORCPT + 99 others); Mon, 7 Dec 2020 07:57:12 -0500 Received: from mga11.intel.com ([192.55.52.93]:13931 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbgLGM5M (ORCPT ); Mon, 7 Dec 2020 07:57:12 -0500 IronPort-SDR: 6uIFZvBr8T7kMRWXQ0WNfDZBkXFq4XguGpKlTHCW9Ikozt1XV+D7oDaZvyC2xmDQ31vNKOzlme o5q2fmXKZZ6A== X-IronPort-AV: E=McAfee;i="6000,8403,9827"; a="170183969" X-IronPort-AV: E=Sophos;i="5.78,399,1599548400"; d="scan'208";a="170183969" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2020 04:55:26 -0800 IronPort-SDR: s70YmdCNIipXNxGDGwpZ8QETuIuy78AlYTbT3UUmyK/Scnw+b594bY7I/f8Ox7XS6WPVvgE8hp qolkEVVMK63w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,399,1599548400"; d="scan'208";a="407133557" Received: from cvg-ubt08.iil.intel.com (HELO [10.185.176.12]) ([10.185.176.12]) by orsmga001.jf.intel.com with ESMTP; 07 Dec 2020 04:55:19 -0800 Subject: Re: [RFC PATCH] do_exit(): panic() recursion detected To: Peter Zijlstra 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 References: <20201207124050.4016994-1-vladimir.kondratiev@linux.intel.com> <20201207125145.GM3040@hirez.programming.kicks-ass.net> From: Vladimir Kondratiev Message-ID: <8056f890-0297-6fa9-c9a6-c9909e0f24af@linux.intel.com> Date: Mon, 7 Dec 2020 14:55:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201207125145.GM3040@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We do panic on oops as well. We panic on anything that may point to system stability issues. I can't proof this code can't be reached without oops, so I want to panic here as well. On 12/7/20 2:51 PM, Peter Zijlstra wrote: > 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. >