summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2017-12-08 13:50:37 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-29 19:53:46 +0300
commitf09fca41e29c68944e75ab5f65a2efcfcc88aceb (patch)
treeb4bc321f92af229f95df53d850f42407efff5c77 /drivers/regulator
parentc692698ebebed838627aa3879e30959c4a75f033 (diff)
downloadlinux-f09fca41e29c68944e75ab5f65a2efcfcc88aceb.tar.xz
crypto: af_alg - fix race accessing cipher request
commit d53c5135792319e095bb126bc43b2ee98586f7fe upstream. When invoking an asynchronous cipher operation, the invocation of the callback may be performed before the subsequent operations in the initial code path are invoked. The callback deletes the cipher request data structure which implies that after the invocation of the asynchronous cipher operation, this data structure must not be accessed any more. The setting of the return code size with the request data structure must therefore be moved before the invocation of the asynchronous cipher operation. Fixes: e870456d8e7c ("crypto: algif_skcipher - overhaul memory management") Fixes: d887c52d6ae4 ("crypto: algif_aead - overhaul memory management") Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Stephan Mueller <smueller@chronox.de> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/regulator')
0 files changed, 0 insertions, 0 deletions