diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2021-10-21 15:55:14 -0700 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-10-26 10:18:09 +0200 |
commit | 9e798e9aa14c45fb94e47b30bf6347b369ce9df7 (patch) | |
tree | 7fb104bf6f129909ec1d659032ed5038680b1951 /fs/ksmbd/ksmbd_netlink.h | |
parent | 53599b4d54b9b8dda1d537a558946869d2acbddc (diff) | |
download | linux-stable-9e798e9aa14c45fb94e47b30bf6347b369ce9df7.tar.gz linux-stable-9e798e9aa14c45fb94e47b30bf6347b369ce9df7.tar.bz2 linux-stable-9e798e9aa14c45fb94e47b30bf6347b369ce9df7.zip |
x86/fpu: Prepare fpu_clone() for dynamically enabled features
The default portion of the parent's FPU state is saved in a child task.
With dynamic features enabled, the non-default portion is not saved in a
child's fpstate because these register states are defined to be
caller-saved. The new task's fpstate is therefore the default buffer.
Fork inherits the permission of the parent.
Also, do not use memcpy() when TIF_NEED_FPU_LOAD is set because it is
invalid when the parent has dynamic features.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211021225527.10184-11-chang.seok.bae@intel.com
Diffstat (limited to 'fs/ksmbd/ksmbd_netlink.h')
0 files changed, 0 insertions, 0 deletions