aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDave Martin <[email protected]>2018-05-24 15:54:30 +0100
committerMarc Zyngier <[email protected]>2018-05-25 12:27:55 +0100
commit66e48a0d29bdedc574c8fc0af7a5d112b594ced6 (patch)
treeb4eb5ea01baf0423f8a1baffff1a1f5419511193 /tools/perf/scripts/python/stackcollapse.py
parentd179761519d9fe57ece975eaf8eec131547b9da3 (diff)
arm64: fpsimd: Avoid FPSIMD context leakage for the init task
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 could be exposed. This patch fixes this anomaly by ensuring that the init task's initial TIF_FOREIGN_FPSTATE is set. Signed-off-by: Dave Martin <[email protected]> Fixes: 005f78cd8849 ("arm64: defer reloading a task's FPSIMD state to userland resume") Reviewed-by: Catalin Marinas <[email protected]> Reviewed-by: Alex BennĂ©e <[email protected]> Cc: Will Deacon <[email protected]> Cc: Ard Biesheuvel <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions