linux-yocto/arch/um/os-Linux
Benjamin Berg e0fe0da961 um: Don't use vfprintf() for os_info()
[ Upstream commit 236f9fe39b ]

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-02-23 08:12:50 +01:00
..
drivers um: return negative in tuntap_open_tramp() 2017-09-13 22:36:50 +02:00
skas um: Give start_idle_thread() a return code 2018-11-27 16:12:59 +01:00
aio.c
elf_aux.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
execvp.c um: Use os_warn to print out pre-boot warning/error messages 2017-07-05 23:18:25 +02:00
file.c um: Compile with modern headers 2018-03-29 22:15:12 +02:00
helper.c um: Fix naming clash between UML and scheduler 2024-02-23 08:12:50 +01:00
irq.c um: Monitor error events in IRQ controller 2020-12-30 11:26:04 +01:00
main.c um: remove uml initcalls 2018-06-10 22:49:14 +02:00
Makefile um: Support kcov 2016-08-04 00:18:06 +02:00
mem.c um: Use os_warn to print out pre-boot warning/error messages 2017-07-05 23:18:25 +02:00
process.c um: Switch clocksource to hrtimers 2015-11-06 22:54:49 +01:00
registers.c um: registers: Rename function names to avoid conflicts and build problems 2022-01-27 09:04:26 +01:00
sigio.c
signal.c um: Compile with modern headers 2018-03-29 22:15:12 +02:00
start_up.c um: registers: Rename function names to avoid conflicts and build problems 2022-01-27 09:04:26 +01:00
time.c um: Switch clocksource to hrtimers 2015-11-06 22:54:49 +01:00
tty.c
umid.c um: Use os_warn to print out pre-boot warning/error messages 2017-07-05 23:18:25 +02:00
user_syms.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
util.c um: Don't use vfprintf() for os_info() 2024-02-23 08:12:50 +01:00