Skip to contentSkip to conversation

2.5.26 broken on headless boxes

DISCUSSION Andi Kleen 2 participants 3 messages Jul 18, 2002 – Jul 19, 2002 1 message not in the archive

lore
Share & tools
lore

Andi Kleen

author
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · Matthew Wilcox

On a headless box with both CONFIG_VT_CONSOLE and CONFIG_SERIAL_CONSOLE defined, I get:

[...]

I also see similar problems on x86-64 in 2.5.25. The kernel quickly crashes when trying to return from opost_write() because something below has zeroed out the stack (with serial console and vga console and early console enabled) I have not tried it with 2.5.26 yet.

-Andi

#2 lore raw
Quoted 5 lines

I also see similar problems on x86-64 in 2.5.25. The kernel quickly crashes when trying to return from opost_write() because something below has zeroed out the stack (with serial console and vga console and early console enabled) I have not tried it with 2.5.26 yet.

It is the result of registering the console device first for printk and then later registering the tty device. Eventually I like to be able to have VT_CONSOLE independent of CONFIG_VT so we could have a light weight printk. The goal is register tty device once we find a keyboard of some kind.

author
#3 lore raw
Quoted 11 lines · James Simmons
Quoted 5 lines

I also see similar problems on x86-64 in 2.5.25. The kernel quickly crashes when trying to return from opost_write() because something below has zeroed out the stack (with serial console and vga console and early console enabled) I have not tried it with 2.5.26 yet.

It is the result of registering the console device first for printk and then later registering the tty device. Eventually I like to be able to have VT_CONSOLE independent of CONFIG_VT so we could have a light weight printk. The goal is register tty device once we find a keyboard of some kind.

Could you explain to me how this causes a stack overwrite with the current kernel ? I would like to fix this ASAP because it is a showstopper for me in 2.5 right now.

-Andi