summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2019-06-24 18:32:26 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2019-07-03 22:11:55 +0800
commitc8ea9fce2baf7b643384f36f29e4194fa40d33a6 (patch)
treeac6c28eff7d957212a01d18d2dc932ef9b54b3a6 /kernel/sched
parent7829a0c1cb9c80debfb4fdb49b4d90019f2ea1ac (diff)
downloadlinux-c8ea9fce2baf7b643384f36f29e4194fa40d33a6.tar.gz
linux-c8ea9fce2baf7b643384f36f29e4194fa40d33a6.tar.bz2
linux-c8ea9fce2baf7b643384f36f29e4194fa40d33a6.zip
lib/mpi: Fix karactx leak in mpi_powm
Sometimes mpi_powm will leak karactx because a memory allocation failure causes a bail-out that skips the freeing of karactx. This patch moves the freeing of karactx to the end of the function like everything else so that it can't be skipped. Reported-by: syzbot+f7baccc38dcc1e094e77@syzkaller.appspotmail.com Fixes: cdec9cb5167a ("crypto: GnuPG based MPI lib - source files...") Cc: <stable@vger.kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Reviewed-by: Eric Biggers <ebiggers@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/sched')
0 files changed, 0 insertions, 0 deletions