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
skas
elf_aux.c
execvp.c
file.c
helper.c
irq.c
main.c
Makefile
mem.c
process.c
registers.c
sigio.c
signal.c
start_up.c
time.c
tty.c
umid.c
user_syms.c
util.c um: Don't use vfprintf() for os_info() 2024-11-18 12:13:19 +01:00