Thread (24 messages) 24 messages, 2 authors, 2018-03-16

[PATCH v2 3/8] tpm: factor out tpm1_get_random into tpm1-cmd.c

From: Jarkko Sakkinen <hidden>
Date: 2018-03-15 16:32:51
Also in: linux-integrity, lkml

On Sat, 2018-03-10 at 10:24 +0200, Tomas Winkler wrote:
+		rlength = be32_to_cpu(tpm_cmd.header.out.length);
+		if (rlength < offsetof(struct tpm_getrandom_out, rng_data) +
+			      recd) {
+			total = -EFAULT;
+			break;
+		}
+		memcpy(dest, tpm_cmd.params.getrandom_out.rng_data, recd);
This rlength stuff can be handled with tpm_buf_length() as I do
in my pendig-for-review patch set:

https://patchwork.kernel.org/patch/10259331/

/Jarkko
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help