arm64/ptrace: Avoid uninitialised struct padding in fpr_set()
commitf9081dd0c8be396428e04cd1e9ca5e4c86e375d4
authorDave Martin <Dave.Martin@arm.com>
Wed, 18 Jan 2017 16:25:23 +0000 (18 16:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:41 +0000 (26 08:24 +0100)
tree4724521ba458e76e742462fba1dbfb5f727b9eb9
parent5c5839be08423b8a76d40beb59165e7993b4d455
arm64/ptrace: Avoid uninitialised struct padding in fpr_set()

commit aeb1f39d814b2e21e5e5706a48834bfd553d0059 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/uapi/asm/ptrace.h