]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: drbg - always try to free Jitter RNG instance
authorStephan Müller <smueller@chronox.de>
Sun, 7 Jun 2020 13:20:26 +0000 (15:20 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 15 Jun 2020 07:38:54 +0000 (17:38 +1000)
commit7e2d5dfa3d5d02d021827edb6497e8eac7236230
tree90ddd360f92ed37ae23f52f4bb9fb6d0f16764d9
parent4e4368a1eab315786038d9b902c8782d8ede63f7
crypto: drbg - always try to free Jitter RNG instance

The Jitter RNG is unconditionally allocated as a seed source follwoing
the patch 2a2d8ed67373. Thus, the instance must always be deallocated.

Reported-by: syzbot+2e635807decef724a1fa@syzkaller.appspotmail.com
Fixes: 2a2d8ed67373 ("crypto: drbg - always seeded with SP800-90B ...")
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c