[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20161227100601.GF10629@gondor.apana.org.au>
Date: Tue, 27 Dec 2016 18:06:01 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Jiri Slaby <jslaby@...e.cz>
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH -resend with CC] crypto: algif_hash, avoid zero-sized
array
On Thu, Dec 15, 2016 at 02:31:01PM +0100, Jiri Slaby wrote:
> With this reproducer:
> struct sockaddr_alg alg = {
> .salg_family = 0x26,
> .salg_type = "hash",
> .salg_feat = 0xf,
> .salg_mask = 0x5,
> .salg_name = "digest_null",
> };
> int sock, sock2;
>
> sock = socket(AF_ALG, SOCK_SEQPACKET, 0);
> bind(sock, (struct sockaddr *)&alg, sizeof(alg));
> sock2 = accept(sock, NULL, NULL);
> setsockopt(sock, SOL_ALG, ALG_SET_KEY, "\x9b\xca", 2);
> accept(sock2, NULL, NULL);
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists