Skip to content

KEYS: fix error handling in request_key_auth_new()

Eric Biggers keyrings linux-security-module lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v11 patch 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KEYS: fix cred refcount leak in request_key_auth_new()security/keys/request_key_auth.c+30 -371 reply
2/3KEYS: don't revoke uninstantiated key in request_key_auth_new()security/keys/request_key_auth.c+0 -11 reply
3/3KEYS: use kmemdup() in request_key_auth_new()security/keys/request_key_auth.c+2 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] KEYS: fix error handling in request_key_auth_new()

From: Eric Biggers <[email protected]>

Fix a reference leak and a NULL pointer dereference in the error handling paths of request_key_auth_new().

Eric Biggers (3):
KEYS: fix cred refcount leak in request_key_auth_new()
KEYS: don't revoke uninstantiated key in request_key_auth_new()
KEYS: use kmemdup() in request_key_auth_new()

 security/keys/request_key_auth.c | 73 ++++++++++++++++++----------------------
 1 file changed, 32 insertions(+), 41 deletions(-)
Signature · 1 line
2.14.1.821.g8fa685d3b7-goog