Re: new warning on sysrq kernel crash trigger

From: Anirban Sinha
Date: Mon Dec 14 2015 - 19:15:17 EST




On Mon, 14 Dec 2015, Rik van Riel wrote:

> On 12/14/2015 11:24 AM, Ani Sinha wrote:
> > Rik, any comments?
>
> Another good option is to simply ignore this warning, or drop
> the rcu_read_lock before doing the alt-syrsq-c action.
>
> After all, alt-sysrq-c is "crash the system, take a crash dump",
> which is not an action the system ever returns from.
>

Yea I thought about this idea previously but then discarded it thinking it
would be too hacky. Here's the cooked up patch. I hope this can be
approved for mainline soon (I'm on vacation and working just on this issue
remotely) :