Benjamin Berg a4378abcbb 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-02-05 20:14:31 +00:00
..
2023-06-20 13:35:37 -07:00
2023-04-08 13:45:37 -07:00
2022-03-21 08:13:03 -07:00
2022-03-11 10:46:34 +01:00
2023-02-01 22:11:24 +01:00
2022-07-17 23:35:22 +02:00
2023-07-27 08:51:06 -07:00
2024-02-05 20:14:31 +00:00