lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Fri, 3 Nov 2017 21:42:03 +0800
From:   Herbert Xu <>
To:     Andrey Ryabinin <>
Cc:     "David S. Miller" <>,
        Thomas Gleixner <>,
        Ingo Molnar <>,
        "H. Peter Anvin" <>,,
        Linus Torvalds <>,
        Jeffrey Walton <>,
        Megha Dey <>,
        Tim Chen <>,
        Andy Lutomirski <>,
        Josh Poimboeuf <>,,,
Subject: Re: [PATCH 1/2] x86/crypto/sha256-mb: fix panic due to unaligned

On Mon, Oct 16, 2017 at 06:51:30PM +0300, Andrey Ryabinin wrote:
> struct sha256_ctx_mgr allocated in sha256_mb_mod_init() via kzalloc()
> and later passed in sha256_mb_flusher_mgr_flush_avx2() function where
> instructions vmovdqa used to access the struct. vmovdqa requires
> 16-bytes aligned argument, but nothing guarantees that struct
> sha256_ctx_mgr will have that alignment. Unaligned vmovdqa will
> generate GP fault.
> Fix this by replacing vmovdqa with vmovdqu which doesn't have alignment
> requirements.
> Fixes: a377c6b1876e ("crypto: sha256-mb - submit/flush routines for AVX2")
> Reported-by: Josh Poimboeuf <>
> Signed-off-by: Andrey Ryabinin <>
> Cc: <>

Both patches applied.  Thanks.
Email: Herbert Xu <>
Home Page:
PGP Key:

Powered by blists - more mailing lists