diff options
| author | Eric Biggers <[email protected]> | 2019-01-09 06:12:41 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2019-01-10 13:37:32 +0000 |
| commit | d45a90cb5d061fa7d411b974b950fe0b8bc5f265 (patch) | |
| tree | 49032700a8eaadb4eac60f5812202c9a22bd1991 /drivers/media/platform/vimc/vimc-sensor.c | |
| parent | crypto: talitos - fix ablkcipher for CONFIG_VMAP_STACK (diff) | |
| download | kernel-d45a90cb5d061fa7d411b974b950fe0b8bc5f265.tar.gz kernel-d45a90cb5d061fa7d411b974b950fe0b8bc5f265.zip | |
crypto: sm3 - fix undefined shift by >= width of value
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: <[email protected]> # v4.15+
Cc: Gilad Ben-Yossef <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'drivers/media/platform/vimc/vimc-sensor.c')
0 files changed, 0 insertions, 0 deletions
