init: don't hold /dev/console open
Bug #486005 reported by
Casey Dahlin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Fix Released
|
Medium
|
Scott James Remnant (Canonical) | ||
upstart (Fedora) |
Fix Released
|
Medium
|
|||
upstart (Ubuntu) |
Fix Released
|
Medium
|
Scott James Remnant (Canonical) |
Bug Description
The SAK key (mappable with loadkeys or Alt+Sysrq+K with magic sysrq enabled) can kill Upstart because Upstart maintains an open fd to /dev/console. As far as I know Upstart no longer needs to do this.
Basically this means people using the SAK key to verify GDM before logging in get a kernel panic instead.
Changed in upstart (Fedora): | |
status: | Unknown → Confirmed |
Changed in upstart: | |
status: | Triaged → Fix Committed |
milestone: | none → 0.6.5 |
Changed in upstart: | |
assignee: | nobody → Scott James Remnant (scott) |
Changed in upstart (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Scott James Remnant (scott) |
Changed in upstart (Fedora): | |
importance: | Unknown → Medium |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Description of problem:
SAK (Alt-SysRq-K) is no longer working in X. When this combination is pressed to restart X server, system just hangs, without even syncing to disk, display is corrupted, magic key is not working.
Workaround:
If you need to login into server or workstation from graphical console, you can switch to text console tty2..tty6, use SAK to clean console from any malicious software, which is left by previous user, then login into system, verify owner of GDM and X processes or just kill them, then switch back to tty1 and login into system using graphical console.
How reproducible:
Always.
Steps to Reproduce:
1. Boot Fedora in graphic mode.
2. Press Alt-SysRq-K
Actual results:
System is hangs without syncing to disk due to kernel panic: "Kernel panic - not syncing: Attempted to kill init!"
Expected results:
X server and GDM are restarted.