]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: DH: validate __spare field
authorEric Biggers <ebiggers@google.com>
Thu, 13 Jul 2017 12:16:56 +0000 (13:16 +0100)
committerJames Morris <james.l.morris@oracle.com>
Fri, 14 Jul 2017 01:01:38 +0000 (11:01 +1000)
commit1e842fa09b32dac1fe1664c0d86ad090e90cd7f6
treed7825b3a87a89699417b255c71018998482ae4cd
parentd787aa1707f34e488ce33673b562e13c50184043
KEYS: DH: validate __spare field

Syscalls must validate that their reserved arguments are zero and return
EINVAL otherwise.  Otherwise, it will be impossible to actually use them
for anything in the future because existing programs may be passing
garbage in.  This is standard practice when adding new APIs.

Cc: stable@vger.kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/keys/compat_dh.c
security/keys/dh.c