]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aesni - xts_crypt() return if walk.nbytes is 0
authorShreyansh Chouhan <chouhan.shreyansh630@gmail.com>
Sun, 22 Aug 2021 03:45:14 +0000 (09:15 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Aug 2021 08:30:19 +0000 (16:30 +0800)
commit50e24a9ab36502c8d6fb91788f25006771b488a6
tree1c531524d701de54ed6e289a338ba8a784be2406
parentf0152ad8875eb43d5562ab850d3b5ca334425b69
crypto: aesni - xts_crypt() return if walk.nbytes is 0

xts_crypt() code doesn't call kernel_fpu_end() after calling
kernel_fpu_begin() if walk.nbytes is 0. The correct behavior should be
not calling kernel_fpu_begin() if walk.nbytes is 0.

Reported-by: syzbot+20191dc583eff8602d2d@syzkaller.appspotmail.com
Signed-off-by: Shreyansh Chouhan <chouhan.shreyansh630@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c