]> Git Repo - linux.git/commit - crypto/af_alg.c
crypto: af_alg - fix possible uninit-value in alg_bind()
authorEric Dumazet <[email protected]>
Sat, 7 Apr 2018 20:42:36 +0000 (13:42 -0700)
committerDavid S. Miller <[email protected]>
Sun, 8 Apr 2018 02:32:31 +0000 (22:32 -0400)
commita466856e0b7ab269cdf9461886d007e88ff575b0
treee21908fe4aab1743d2da862b976bfec09b371d22
parentf12c643209db0626f2f54780d86bb93bfa7a9c2d
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 <[email protected]>
Reported-by: syzbot <[email protected]>
Cc: Stephan Mueller <[email protected]>
Cc: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
crypto/af_alg.c
This page took 0.042665 seconds and 4 git commands to generate.