Re: [PATCH 8/9] x86/fpu: correctly check for kthreads

2019-08-14 Thread Sebastian Andrzej Siewior
On 2019-08-14 14:39:10 [+0100], Mark Rutland wrote: > I think this was missed in commit. > > 8d3289f2fa1e0 ("x86/fpu: Don't use current->mm to check for a kthread") > > Yup, though if it's a bug it's been a bug since commit: > > 0cecca9d03c964ab ("x86/fpu: Eager switch PKRU state") > > ..

Re: [PATCH 8/9] x86/fpu: correctly check for kthreads

2019-08-14 Thread Mark Rutland
On Wed, Aug 14, 2019 at 03:07:08PM +0200, Sebastian Andrzej Siewior wrote: > On 2019-08-14 11:41:30 [+0100], Mark Rutland wrote: > > Per commit: > > > > 0cecca9d03c964ab ("x86/fpu: Eager switch PKRU state") > > > > ... switch_fpu_state() is trying to distinguish user threads from > > kthreads,

Re: [PATCH 8/9] x86/fpu: correctly check for kthreads

2019-08-14 Thread Sebastian Andrzej Siewior
On 2019-08-14 11:41:30 [+0100], Mark Rutland wrote: > Per commit: > > 0cecca9d03c964ab ("x86/fpu: Eager switch PKRU state") > > ... switch_fpu_state() is trying to distinguish user threads from > kthreads, such that kthreads consistently use init_pkru_value. It does > do by looking at current->