Skip to content
Snippets Groups Projects
  1. Oct 02, 2014
  2. Sep 30, 2014
  3. Sep 28, 2014
  4. Sep 27, 2014
  5. Sep 25, 2014
  6. Aug 31, 2014
  7. Aug 30, 2014
    • Michael Prokop's avatar
      Do not spawn shell when panic=... is used · 2290173f
      Michael Prokop authored
      Quoting Lukas Anzinger in #751488:
      
      | I've set panic=0 as a kernel cmdline argument which should trigger a
      | reboot instead of spawning a shell. However, the reboot seems to be
      | uneffective and a shell is spawned nevertheless. This is unpleasing
      | since spawn=0 is "marketed" as a security feature in
      | initramfs-tools(8):
      |
      |     panic sets an timeout on panic.  panic=<sec> is a documented
      |     security feature: it disables the debug shell.
      |
      | [...]
      |
      | The commands halt, reboot, etc. don't work either.
      |
      | To fix the security impact of an open shell I propose to at least add a
      | return after the reboot command so that if the reboot is effectively a
      | NOP still no shell is spawned.
      
      Thanks: Lukas Anzinger <l.anzinger@gmail.com> for the analysis and patch
      Closes: #751488
      2290173f
Loading