Re: [PATCH v11 07/19] arm64: fpsimd: Avoid FPSIMD context leakage for the init task

2018-05-25 Thread Alex Bennée
Dave Martin writes: > The init task is started with thread_flags equal to 0, which means > that TIF_FOREIGN_FPSTATE is initially clear. > > It is theoretically possible (if unlikely) that the init task could > reach userspace without ever being scheduled out. If this

[PATCH v11 07/19] arm64: fpsimd: Avoid FPSIMD context leakage for the init task

2018-05-24 Thread Dave Martin
The init task is started with thread_flags equal to 0, which means that TIF_FOREIGN_FPSTATE is initially clear. It is theoretically possible (if unlikely) that the init task could reach userspace without ever being scheduled out. If this occurs, data left in the FPSIMD registers by the kernel