linux/arch/um
Johannes Berg dbbf6d4713 um: init cpu_tasks[] earlier
[ Upstream commit 7b5d441696 ]

This is currently done in uml_finishsetup(), but e.g. with
KCOV enabled we'll crash because some init code can call
into e.g. memparse(), which has coverage annotations, and
then the checks in check_kcov_mode() crash because current
is NULL.

Simply initialize the cpu_tasks[] array statically, which
fixes the crash. For the later SMP work, it seems to have
not really caused any problems yet, but initialize all of
the entries anyway.

Link: https://patch.msgid.link/20250924113214.c76cd74d0583.I974f691ebb1a2b47915bd2b04cc38e5263b9447f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-01-02 12:56:59 +01: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 updates for UML, notably 2025-10-06 12:10:55 -07: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