diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-02-22 20:48:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-02-22 20:48:50 -0500 |
commit | cb268d806972c76c34e5d74343fb6064cd722c7c (patch) | |
tree | b51d3f5c0431da9b15c65736fe67f9d27e7aca93 /security/keys/request_key.c | |
parent | ef4edb3ed830cbbb443de9906b8cf16dc0653a74 (diff) | |
parent | ede0fa98a900e657d1fcd80b50920efc896c1a4c (diff) |
Merge branch 'fixes-v5.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull keys fixes from James Morris:
"Two fixes from Eric Biggers"
* 'fixes-v5.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
KEYS: always initialize keyring_index_key::desc_len
KEYS: user: Align the payload buffer
Diffstat (limited to 'security/keys/request_key.c')
-rw-r--r-- | security/keys/request_key.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/keys/request_key.c b/security/keys/request_key.c index 3f56a312dd35..7a0c6b666ff0 100644 --- a/security/keys/request_key.c +++ b/security/keys/request_key.c | |||
@@ -531,6 +531,7 @@ struct key *request_key_and_link(struct key_type *type, | |||
531 | struct keyring_search_context ctx = { | 531 | struct keyring_search_context ctx = { |
532 | .index_key.type = type, | 532 | .index_key.type = type, |
533 | .index_key.description = description, | 533 | .index_key.description = description, |
534 | .index_key.desc_len = strlen(description), | ||
534 | .cred = current_cred(), | 535 | .cred = current_cred(), |
535 | .match_data.cmp = key_default_cmp, | 536 | .match_data.cmp = key_default_cmp, |
536 | .match_data.raw_data = description, | 537 | .match_data.raw_data = description, |