diff options
author | Eric Dumazet <edumazet@google.com> | 2018-04-07 22:42:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-08 04:32:31 +0200 |
commit | a466856e0b7ab269cdf9461886d007e88ff575b0 (patch) | |
tree | e21908fe4aab1743d2da862b976bfec09b371d22 /net | |
parent | net_sched: fix a missing idr_remove() in u32_delete_key() (diff) | |
download | linux-a466856e0b7ab269cdf9461886d007e88ff575b0.tar.xz linux-a466856e0b7ab269cdf9461886d007e88ff575b0.zip |
crypto: af_alg - fix possible uninit-value in alg_bind()
syzbot reported :
BUG: KMSAN: uninit-value in alg_bind+0xe3/0xd90 crypto/af_alg.c:162
We need to check addr_len before dereferencing sa (or uaddr)
Fixes: bb30b8848c85 ("crypto: af_alg - whitelist mask and type")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Cc: Stephan Mueller <smueller@chronox.de>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions