]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/fpu: Fix fpu__activate_fpstate_read() and update comments
authorIngo Molnar <mingo@kernel.org>
Sat, 23 Sep 2017 13:00:10 +0000 (15:00 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 26 Sep 2017 07:41:09 +0000 (09:41 +0200)
commit4618e90965f272fe522f2af2523a60d0d4bc78f3
tree22ca3f235053f90f117ff401f9622c4896ce08b6
parentd5c8028b4788f62b31fb79a331b3ad3e041fa366
x86/fpu: Fix fpu__activate_fpstate_read() and update comments

fpu__activate_fpstate_read() can be called for the current task
when coredumping - or for stopped tasks when ptrace-ing.

Implement this properly in the code and update the comments.

This also fixes an incorrect (but harmless) warning introduced by
one of the earlier patches.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Eric Biggers <ebiggers3@gmail.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yu-cheng Yu <yu-cheng.yu@intel.com>
Link: http://lkml.kernel.org/r/20170923130016.21448-28-mingo@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/fpu/core.c