aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmzone.c
diff options
context:
space:
mode:
authorYongxin Liu <yongxin.liu@windriver.com>2025-12-10 08:02:20 +0800
committerIngo Molnar <mingo@kernel.org>2025-12-10 08:44:34 +0100
commitc8161e5304abb26e6c0bec6efc947992500fa6c5 (patch)
treed27958ca77eb3391054d8ad3203cd2662e39e896 /mm/mmzone.c
parent5288176a541215ba48d38fb74bb619e64d4d9bab (diff)
downloadtip-c8161e5304abb26e6c0bec6efc947992500fa6c5.tar.gz
x86/fpu: Fix FPU state core dump truncation on CPUs with no extended xfeatures
Zero can be a valid value of num_records. For example, on Intel Atom x6425RE, only x87 and SSE are supported (features 0, 1), and fpu_user_cfg.max_features is 3. The for_each_extended_xfeature() loop only iterates feature 2, which is not enabled, so num_records = 0. This is valid and should not cause core dump failure. The issue is that dump_xsave_layout_desc() returns 0 for both genuine errors (dump_emit() failure) and valid cases (no extended features). Use negative return values for errors and only abort on genuine failures. Fixes: ba386777a30b ("x86/elf: Add a new FPU buffer layout info to x86 core files") Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://patch.msgid.link/20251210000219.4094353-2-yongxin.liu@windriver.com
Diffstat (limited to 'mm/mmzone.c')
0 files changed, 0 insertions, 0 deletions