aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2021-06-08 14:36:20 +0000
committerBorislav Petkov <[email protected]>2021-06-09 08:39:04 +0000
commit12f7764ac61200e32c916f038bdc08f884b0b604 (patch)
treebc45114cf3445c7a9e7c5f795097c8c89bbdeea4 /tools/bpf/bpftool/prog.c
parentx86/fpu: Invalidate FPU state after a failed XRSTOR from a user buffer (diff)
downloadkernel-12f7764ac61200e32c916f038bdc08f884b0b604.tar.gz
kernel-12f7764ac61200e32c916f038bdc08f884b0b604.zip
x86/process: Check PF_KTHREAD and not current->mm for kernel threads
switch_fpu_finish() checks current->mm as indicator for kernel threads. That's wrong because kernel threads can temporarily use a mm of a user process via kthread_use_mm(). Check the task flags for PF_KTHREAD instead. Fixes: 0cecca9d03c9 ("x86/fpu: Eager switch PKRU state") Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Acked-by: Dave Hansen <[email protected]> Acked-by: Rik van Riel <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions