diff options
author | Eric Biggers <[email protected]> | 2017-06-08 14:49:42 +0100 |
---|---|---|
committer | James Morris <[email protected]> | 2017-06-09 13:29:49 +1000 |
commit | 281590b4221779dbc4a5e2c33c0c5b0239cfe794 (patch) | |
tree | 3abf0a758a569c41c972f5c79f31337ad7a04fae /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | bbe240454d86be95151e0ecfd6ac55fe5ef5a6f5 (diff) |
KEYS: DH: don't feed uninitialized "otherinfo" into KDF
If userspace called KEYCTL_DH_COMPUTE with kdf_params containing NULL
otherinfo but nonzero otherinfolen, the kernel would allocate a buffer
for the otherinfo, then feed it into the KDF without initializing it.
Fix this by always doing the copy from userspace (which will fail with
EFAULT in this scenario).
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: David Howells <[email protected]>
Acked-by: Stephan Mueller <[email protected]>
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions