summaryrefslogtreecommitdiff
path: root/crypto/xor.c
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2018-01-02 10:55:25 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-12 15:03:05 +0300
commitbb30b8848c85e18ca7e371d0a869e94b3e383bdf (patch)
treee6acf772ef0252bf11c2b5035c02110f30b42ceb /crypto/xor.c
parentda1729ce4866be266575a114208c7d5350bf310d (diff)
downloadlinux-bb30b8848c85e18ca7e371d0a869e94b3e383bdf.tar.xz
crypto: af_alg - whitelist mask and type
The user space interface allows specifying the type and mask field used to allocate the cipher. Only a subset of the possible flags are intended for user space. Therefore, white-list the allowed flags. In case the user space caller uses at least one non-allowed flag, EINVAL is returned. Reported-by: syzbot <syzkaller@googlegroups.com> Cc: <stable@vger.kernel.org> Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/xor.c')
0 files changed, 0 insertions, 0 deletions