https://github.com/torvalds/linux
Revision 0c7d400fafaeab6014504a6a6249f01bac7f7db4 authored by Herbert Xu on 29 August 2009, 10:44:04 UTC, committed by Herbert Xu on 29 August 2009, 10:44:04 UTC
As struct skcipher_givcrypt_request includes struct crypto_request
at a non-zero offset, testing for NULL after converting the pointer
returned by crypto_dequeue_request does not work.  This can result
in IPsec crashes when the queue is depleted.

This patch fixes it by doing the pointer conversion only when the
return value is non-NULL.  In particular, we create a new function
__crypto_dequeue_request that does the pointer conversion.

Reported-by: Brad Bosch <bradbosch@comcast.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent b6f34d4
History
Tip revision: 0c7d400fafaeab6014504a6a6249f01bac7f7db4 authored by Herbert Xu on 29 August 2009, 10:44:04 UTC
crypto: skcipher - Fix skcipher_dequeue_givcrypt NULL test
Tip revision: 0c7d400
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 945 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.7 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 146.3 KB
Makefile -rw-r--r-- 53.8 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top