mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
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: b1e1bd2e69 ("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>
This commit is contained in:
parent
bc4e2ae081
commit
8948941276
|
|
@ -161,7 +161,7 @@ static int fpregs_legacy_set(struct task_struct *target,
|
|||
from = kbuf;
|
||||
}
|
||||
|
||||
return um_fxsr_from_i387(fxsave, &buf);
|
||||
return um_fxsr_from_i387(fxsave, from);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user