arm64: signal: nofpsimd: Do not allocate fp/simd context when not available
Commit 6d502b6b ("arm64: signal: nofpsimd: Handle fp/simd context for signal frames") introduced saving the fp/simd context for signal handling only when support is available. But setup_sigframe_layout() always reserves memory for fp/simd context. The additional memory is not touched because preserve_fpsimd_context() is not called and thus the magic is invalid. This may lead to an error when parse_user_sigframe() checks the fp/simd area and does not find a valid magic number. Signed-off-by: NDavid Engraf <david.engraf@sysgo.com> Reviwed-by: NMark Brown <broonie@kernel.org> Fixes: 6d502b6b ("arm64: signal: nofpsimd: Handle fp/simd context for signal frames") Cc: <stable@vger.kernel.org> # 5.6.x Reviewed-by: NCatalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20220225104008.820289-1-david.engraf@sysgo.comSigned-off-by: NWill Deacon <will@kernel.org>
Showing
想要评论请 注册 或 登录