lkml.org 
[lkml]   [2017]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.9 073/130] arm64/ptrace: Avoid uninitialised struct padding in fpr_set()
    Date
    4.9-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Dave Martin <Dave.Martin@arm.com>

    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 | 1 +
    1 file changed, 1 insertion(+)

    --- a/arch/arm64/include/uapi/asm/ptrace.h
    +++ b/arch/arm64/include/uapi/asm/ptrace.h
    @@ -77,6 +77,7 @@ struct user_fpsimd_state {
    __uint128_t vregs[32];
    __u32 fpsr;
    __u32 fpcr;
    + __u32 __reserved[2];
    };

    struct user_hwdebug_state {

    \
     
     \ /
      Last update: 2017-01-24 09:21    [W:6.386 / U:0.356 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site