Thread (37 messages) 37 messages, 6 authors, 2021-02-15

Re: [PATCH v8 1/4] KEYS: trusted: Add generic trusted keys framework

From: Jarkko Sakkinen <jarkko@kernel.org>
Date: 2021-02-10 17:02:09
Also in: keyrings, linux-arm-kernel, linux-doc, linux-integrity, lkml, op-tee

On Tue, Nov 03, 2020 at 09:31:43PM +0530, Sumit Garg wrote:
+	case Opt_new:
+		key_len = payload->key_len;
+		ret = static_call(trusted_key_get_random)(payload->key,
+							  key_len);
+		if (ret != key_len) {
+			pr_info("trusted_key: key_create failed (%d)\n", ret);
+			goto out;
+		}
This repeats a regression in existing code, i.e. does not check
"ret < 0" condition. I noticed this now when I rebased the code
on top of my fixes.

I.e. it's fixed in my master branch, which caused a merge conflict,
and I found this.

/Jarkko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help