Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

um: Fix the return value of elf_core_copy_task_fpregs

This function is expected to return a boolean value, which should be
true on success and false on failure.

Fixes: d1254b12c93e ("uml: fix x86_64 core dump crash")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20240913023302.130300-1-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Tiwei Bie and committed by
Johannes Berg
865e3845 242fef36

+1 -1
+1 -1
arch/um/kernel/process.c
··· 292 292 { 293 293 int cpu = current_thread_info()->cpu; 294 294 295 - return save_i387_registers(userspace_pid[cpu], (unsigned long *) fpu); 295 + return save_i387_registers(userspace_pid[cpu], (unsigned long *) fpu) == 0; 296 296 } 297 297