diff options
| author | Thomas Gleixner <[email protected]> | 2018-02-16 15:47:26 +0100 | 
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2018-02-16 15:47:26 +0100 | 
| commit | 6dee6ae9d62642e81def4d461d71f13a6496ab59 (patch) | |
| tree | 6c75d416c427a59f190e197ad83fe59b7bebf656 /arch/x86/include/asm/processor.h | |
| parent | 1beaeacdc88b537703d04d5536235d0bbb36db93 (diff) | |
| parent | 0b24a0bbe2147815d982d9335c41bb10c04f40bc (diff) | |
Merge tag 'irqchip-4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/urgent
Pull irqchip updates for 4.16-rc2 from Marc Zyngier
 - A MIPS GIC fix for spurious, masked interrupts
 - A fix for a subtle IPI bug in GICv3
 - Do not probe GICv3 ITSs that are marked as disabled
 - Multi-MSI support for GICv2m
 - Various cleanups
Diffstat (limited to 'arch/x86/include/asm/processor.h')
| -rw-r--r-- | arch/x86/include/asm/processor.h | 13 | 
1 files changed, 11 insertions, 2 deletions
| diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index d3a67fba200a..793bae7e7ce3 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -460,8 +460,6 @@ struct thread_struct {  	unsigned short		gsindex;  #endif -	u32			status;		/* thread synchronous flags */ -  #ifdef CONFIG_X86_64  	unsigned long		fsbase;  	unsigned long		gsbase; @@ -507,6 +505,14 @@ struct thread_struct {  	 */  }; +/* Whitelist the FPU state from the task_struct for hardened usercopy. */ +static inline void arch_thread_struct_whitelist(unsigned long *offset, +						unsigned long *size) +{ +	*offset = offsetof(struct thread_struct, fpu.state); +	*size = fpu_kernel_xstate_size; +} +  /*   * Thread-synchronous status.   * @@ -971,4 +977,7 @@ bool xen_set_default_idle(void);  void stop_this_cpu(void *dummy);  void df_debug(struct pt_regs *regs, long error_code); + +void __ibp_barrier(void); +  #endif /* _ASM_X86_PROCESSOR_H */ |