Re: [RFC][PATCH] introduce panic_gently

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bodo Eggert <[email protected]> writes:

> If the boot process failes to find init or the root fs, the cause has 
> usually scrolled off the screen, and because of the panic, it can't be 
> reached anymore.
> 
> This patch introduces panic_gently, which will allow to use the scrollback 
> buffer and to reboot, but it can't be called from unsafe context.

The implementation certainly has too much duplicated code. If anything
it needs some common functions.

The problem with keeping interrupts on is that the system might continue
to route packets. This is sometimes quite unexpected for users.

Arguably that's unlikely to be already enabled for missing root,
but in theory initrd could have done it.

I think i would prefer if the normal panic() tried to detect the situations
where this is 

It couldn't detect spinlocks, but interrupts off/interrupt context etc.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux