Re: [RFC PATCH] do_exit(): panic() recursion detected

From: Vladimir Kondratiev
Date: Mon Dec 07 2020 - 07:57:58 EST


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 <vladimir.kondratiev@xxxxxxxxx>

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 <vladimir.kondratiev@xxxxxxxxx>
Change-Id: I42f45900a08c4282c511b05e9e6061360d07db60

This Change-ID crap doesn't belong in kernel patches.