diff options
author | Eric Biggers | 2019-01-09 07:12:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-01-22 21:40:31 +0100 |
commit | 68afc7c36461a5989b91ca88f82bbcd90dece24d (patch) | |
tree | 79ac1a751857d72080588a2896fb91aaac0945c9 /fs/gfs2/super.h | |
parent | r8169: load Realtek PHY driver module before r8169 (diff) | |
download | kernel-qcow2-linux-68afc7c36461a5989b91ca88f82bbcd90dece24d.tar.gz kernel-qcow2-linux-68afc7c36461a5989b91ca88f82bbcd90dece24d.tar.xz kernel-qcow2-linux-68afc7c36461a5989b91ca88f82bbcd90dece24d.zip |
crypto: sm3 - fix undefined shift by >= width of value
commit d45a90cb5d061fa7d411b974b950fe0b8bc5f265 upstream.
sm3_compress() calls rol32() with shift >= 32, which causes undefined
behavior. This is easily detected by enabling CONFIG_UBSAN.
Explicitly AND with 31 to make the behavior well defined.
Fixes: 4f0fc1600edb ("crypto: sm3 - add OSCCA SM3 secure hash")
Cc: <stable@vger.kernel.org> # v4.15+
Cc: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/gfs2/super.h')
0 files changed, 0 insertions, 0 deletions