kernel_samsung_a53x/arch/um/os-Linux
Benjamin Berg fb44042de3 um: Don't use vfprintf() for os_info()
[ Upstream commit 236f9fe39b02c15fa5530b53e9cca48354394389 ]

The threads allocated inside the kernel have only a single page of
stack. Unfortunately, the vfprintf function in standard glibc may use
too much stack-space, overflowing it.

To make os_info safe to be used by helper threads, use the kernel
vscnprintf function into a smallish buffer and write out the information
to stderr.

Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:19 +01:00
..
drivers Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skas Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
elf_aux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
execvp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
helper.c um: Fix naming clash between UML and scheduler 2024-11-18 12:13:19 +01:00
irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
process.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
registers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sigio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
signal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
start_up.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
time.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tty.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
umid.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
user_syms.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
util.c um: Don't use vfprintf() for os_info() 2024-11-18 12:13:19 +01:00