Re: [PATCH 1/2] crypto/x509: Fix unaligned access in x509_get_sig_params()

From: David Howells
Date: Tue Oct 20 2015 - 05:50:50 EST


Sowmini Varadhan <sowmini.varadhan@xxxxxxxxxx> wrote:

> x509_get_sig_params() has the same code pattern as the one in
> pkcs7_verify() that is fixed by commit 62f57d05e287 ("crypto: pkcs7 - Fix
> unaligned access in pkcs7_verify()") so apply a similar fix here: make
> sure that desc is pointing at an algined value past the digest_size,
> and take alignment values into consideration when doing kzalloc()
>
> Signed-off-by: Sowmini Varadhan <sowmini.varadhan@xxxxxxxxxx>

Acked-by: David Howells <dhowells@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/