diff options
author | Stephan Mueller <[email protected]> | 2018-01-02 08:55:25 +0100 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2018-01-12 23:03:05 +1100 |
commit | bb30b8848c85e18ca7e371d0a869e94b3e383bdf (patch) | |
tree | e6acf772ef0252bf11c2b5035c02110f30b42ceb /net/unix/sysctl_net_unix.c | |
parent | da1729ce4866be266575a114208c7d5350bf310d (diff) |
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 <[email protected]>
Cc: <[email protected]>
Signed-off-by: Stephan Mueller <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions