Skip to contentSkip to conversation

2.6.15-rc1 freeing a reserved page from uart_shutdown

DISCUSSION Matthew Wilcox 1 participant 2 messages Nov 12, 2005 – Nov 13, 2005 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

I'm having some trouble with 2.6.15-rc1:

VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 640k freed
Bad page state at free_hot_cold_page (in process 'init', page 108a24a0) flags:0x00000400 mapping:00000000 mapcount:0 count:0

Backtrace:
Backtrace:
 [<101481cc>] bad_page+0x70/0xc4
 [<10148920>] free_hot_cold_page+0x74/0x124
 [<10275e68>] uart_shutdown+0xf0/0xf8
 [<102775f8>] uart_close+0xc8/0x214
 [<1025c710>] release_dev+0x72c/0x734
 [<1025cddc>] tty_release+0x10/0x20
 [<101680f0>] __fput+0x15c/0x170
 [<10166520>] filp_close+0x58/0x94
 [<1010d114>] syscall_exit+0x0/0x14

This is on a parisc system, though a very similar tree boots fine on a different machine. The machine which produces this message is a K460 which uses the Mux serial driver. As far as I can tell, the only call to free_hot_cold_page() in uart_shutdown() is to free info->xmit.buf which seems to be always filled by a call to get_zeroed_page().

This problem doesn't show with 2.6.14. I can give access to this machine to anyone who wants to do some debugging. It has remote power capabilities ;-)

#1 lore raw
Quoted 6 lines · Matthew Wilcox

I'm having some trouble with 2.6.15-rc1:

VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 640k freed
Bad page state at free_hot_cold_page (in process 'init', page 108a24a0) flags:0x00000400 mapping:00000000 mapcount:0 count:0

False alarm. I did a make clean and then rebuilt and the resulting kernel booted fine. Not sure what went wrong, but now it's unreproducible.