diff options
author | Eric Biggers <[email protected]> | 2017-12-08 15:13:29 +0000 |
---|---|---|
committer | David Howells <[email protected]> | 2017-12-08 15:13:29 +0000 |
commit | 18026d866801d0c52e5550210563222bd6c7191d (patch) | |
tree | 744c23841e67ff704fa4374b14a05ec542b4f4eb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3d1f0255426af7eeb88bf7221ff683b7ca9e4493 (diff) |
KEYS: reject NULL restriction string when type is specified
keyctl_restrict_keyring() allows through a NULL restriction when the
"type" is non-NULL, which causes a NULL pointer dereference in
asymmetric_lookup_restriction() when it calls strcmp() on the
restriction string.
But no key types actually use a "NULL restriction" to mean anything, so
update keyctl_restrict_keyring() to reject it with EINVAL.
Reported-by: syzbot <[email protected]>
Fixes: 97d3aa0f3134 ("KEYS: Add a lookup_restriction function for the asymmetric key type")
Cc: <[email protected]> # v4.12+
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: David Howells <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions