]> git.karo-electronics.de Git - linux-beck.git/commit
arm64/ptrace: Avoid uninitialised struct padding in fpr_set()
authorDave Martin <Dave.Martin@arm.com>
Wed, 18 Jan 2017 16:25:23 +0000 (16:25 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 18 Jan 2017 18:05:10 +0000 (18:05 +0000)
commitaeb1f39d814b2e21e5e5706a48834bfd553d0059
tree3f09fcb9c232e1df6bb440abb4a19def4bbd696c
parenta672401c00f82e4e19704aff361d9bad18003714
arm64/ptrace: Avoid uninitialised struct padding in fpr_set()

This patch adds an explicit __reserved[] field to user_fpsimd_state
to replace what was previously unnamed padding.

This ensures that data in this region are propagated across
assignment rather than being left possibly uninitialised at the
destination.

Cc: <stable@vger.kernel.org> # 3.7.x-
Fixes: 60ffc30d5652 ("arm64: Exception handling")
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Will Deacon <Will.Deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/uapi/asm/ptrace.h