linux/arch/um
Tiwei Bie ba5a09630e um: Preserve errno within signal handler
[ Upstream commit f68b2d5a90 ]

We rely on errno to determine whether a syscall has failed, so we
need to ensure that accessing errno is async-signal-safe. Currently,
we preserve the errno in sig_handler_common(), but it doesn't cover
every possible case. Let's do it in hard_handler() instead, which
is the signal handler we actually register.

Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20260106001228.1531146-2-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:20:28 -05:00
..
configs um: Remove legacy network transport infrastructure 2025-05-05 10:26:59 +02:00
drivers updates for UML, notably 2025-10-06 12:10:55 -07:00
include um: Disable KASAN_INLINE when STATIC_LINK is selected 2025-12-18 14:03:29 +01:00
kernel um: init cpu_tasks[] earlier 2026-01-02 12:56:59 +01:00
os-Linux um: Preserve errno within signal handler 2026-03-04 07:20:28 -05:00
scripts um: prevent user code in modules 2023-04-20 23:06:38 +02:00
.gitignore um: gitignore: Add kernel/capflags.c 2021-12-21 21:22:43 +01:00
Kbuild um: use obj-y to descend into arch/um/*/ 2023-08-26 22:41:34 +02:00
Kconfig um: Disable KASAN_INLINE when STATIC_LINK is selected 2025-12-18 14:03:29 +01:00
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-04-15 23:10:33 +02:00
Makefile um: Don't rename vmap to kernel_vmap 2025-12-18 14:03:17 +01:00
Makefile-os-Linux x86, um: get rid of arch/um/os symlink 2008-10-22 22:55:22 -07:00
Makefile-skas um: fix stub exe build with CONFIG_GCOV 2024-10-26 16:06:10 +02:00