[PATCH 0/4] um: Assorted console related fixes
Richard Weinberger
richard at nod.at
Sat Jan 1 13:58:06 PST 2022
When UML terminates (gracefully or panic) it does not always
cleanup on the host side.
Especially when fd:0,fd:1 is used as console it can leave a misconfigured
stdin/out on the host side.
Also stale processes such as port-helper can left behind.
This series fixes the console exit code to make sure UML
undoes everything it changed on the host side.
Richard Weinberger (4):
um: Run console exit code also upon kernel panic
um: os_set_fd_block: Return old blocking mode
um: chan: Restore blocking mode upon exit
um: irq: Restore O_ASYNC upon exit
arch/um/drivers/chan.h | 1 +
arch/um/drivers/chan_kern.c | 11 +++++++----
arch/um/drivers/chan_user.c | 2 +-
arch/um/drivers/mconsole_kern.c | 2 +-
arch/um/drivers/stdio_console.c | 4 ++--
arch/um/drivers/ubd_user.c | 2 +-
arch/um/drivers/xterm.c | 2 +-
arch/um/include/shared/uml_console.h | 11 +++++++++++
arch/um/kernel/irq.c | 5 ++++-
arch/um/kernel/um_arch.c | 8 +++++---
arch/um/os-Linux/file.c | 5 ++++-
11 files changed, 38 insertions(+), 15 deletions(-)
create mode 100644 arch/um/include/shared/uml_console.h
--
2.26.2
More information about the linux-um
mailing list