diff options
author | Jan Kiszka <[email protected]> | 2008-05-12 21:21:04 +0200 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2008-05-24 23:15:07 +0200 |
commit | cd3a1b8562d28490b334a61d5eb05df3d722d91e (patch) | |
tree | a0143f57cdc9e22fe8c0498e48a029c3fd7177ef /net/unix/sysctl_net_unix.c | |
parent | 3b8945e8d40645eecdb7d2357ca531f9b4dd9f71 (diff) |
printk: don't prefer unsuited consoles on registration
console election: If some console happens to be registered first which does
not provide a tty binding (!console->device), it prevents that more suited
consoles which are registered later on can enter the candidate pool for
console_device(). This is observable with KGDB's console which may already
be registered (and exploited!) during early debugger connections, that is
before any regular console registration.
This patch fixes the issue by postponing the final, automated
preferred_console selection until someone with a non-NULL device handler
comes around.
Signed-off-by: Jan Kiszka <[email protected]>
Cc: Jason Wessel <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Michael Ellerman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions