diff options
author | Stephan Mueller <smueller@chronox.de> | 2018-01-02 08:55:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-03 17:38:51 +0100 |
commit | f41c8a003196df125b32ed8d78a66f9ea22ccce4 (patch) | |
tree | 85b2cd90ab92ed60439003cb6e2c86fce5151f4d /crypto/ablkcipher.c | |
parent | b9788e278cec29fef2e837633fa1b97030417e78 (diff) |
crypto: af_alg - whitelist mask and type
commit bb30b8848c85e18ca7e371d0a869e94b3e383bdf upstream.
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>
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/ablkcipher.c')
0 files changed, 0 insertions, 0 deletions