summaryrefslogtreecommitdiff
path: root/crypto/pcbc.c
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2018-01-02 08:55:25 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-12 23:03:05 +1100
commit5bbed7cae7b557883d1b01cc6a7890a7d2c40ff8 (patch)
tree467d566f5af10853e4096ad3e3aa9d2f19060062 /crypto/pcbc.c
parent40b6b8ae2a3d759238651c27393035b794ea7b90 (diff)
downloadlinux-crypto-5bbed7cae7b557883d1b01cc6a7890a7d2c40ff8.tar.gz
linux-crypto-5bbed7cae7b557883d1b01cc6a7890a7d2c40ff8.zip
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/pcbc.c')
0 files changed, 0 insertions, 0 deletions