Skip to content

Commit 8948941

Browse files
btw616jmberg-intel
authored andcommitted
um: Use correct data source in fpregs_legacy_set()
Read from the buffer pointed to by 'from' instead of '&buf', as 'buf' contains no valid data when 'ubuf' is NULL. Fixes: b1e1bd2 ("um: Add helper functions to get/set state for SECCOMP") Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com> Link: https://patch.msgid.link/20250606124428.148164-5-tiwei.btw@antgroup.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent bc4e2ae commit 8948941

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/um/ptrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static int fpregs_legacy_set(struct task_struct *target,
161161
from = kbuf;
162162
}
163163

164-
return um_fxsr_from_i387(fxsave, &buf);
164+
return um_fxsr_from_i387(fxsave, from);
165165
}
166166
#endif
167167

0 commit comments

Comments
 (0)