Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1251551

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

From David Howells <dhowells@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] crypto/x509: Fix unaligned access in x509_get_sig_params()
Date 2015-10-20 12:00 +0200
Message-ID <qlBS3-8v7-35@gated-at.bofh.it> (permalink)
References <qlqad-8it-5@gated-at.bofh.it> <qlqad-8it-7@gated-at.bofh.it> <qlqad-8it-7@gated-at.bofh.it> <qlqad-8it-5@gated-at.bofh.it>
Organization Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903

Show all headers | View raw


Sowmini Varadhan <sowmini.varadhan@oracle.com> 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@oracle.com>

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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] crypto/x509: Fix unaligned access in x509_get_sig_params() Sowmini Varadhan <sowmini.varadhan@oracle.com> - 2015-10-19 23:30 +0200
  Re: [PATCH 1/2] crypto/x509: Fix unaligned access in x509_get_sig_params() David Howells <dhowells@redhat.com> - 2015-10-20 12:00 +0200
  Re: [PATCH 1/2] crypto/x509: Fix unaligned access in  x509_get_sig_params() Herbert Xu <herbert@gondor.apana.org.au> - 2015-10-20 16:30 +0200

csiph-web