[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <878vchdcfa.fsf@silenus.orebokech.com>
Date: Mon, 10 Sep 2012 19:18:17 +0200
From: Romain Francoise <romain@...bokech.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: Mathias Krause <minipli@...glemail.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Crypto Mailing List <linux-crypto@...r.kernel.org>
Subject: Re: Linux 3.6-rc5
Herbert Xu <herbert@...dor.apana.org.au> writes:
> Thanks! I think this patch should fix the problem. Can someone
> please confirm this?
Works for me as well, thanks!
> crypto: authenc - Fix crash with zero-length assoc data
>
> The authenc code doesn't deal with zero-length associated data
> correctly and ends up constructing a zero-length sg entry which
> causes a crash when it's fed into the crypto system.
>
> This patch fixes this by avoiding the code-path that triggers
> the SG construction if we have no associated data.
>
> This isn't the most optimal fix as it means that we'll end up
> using the fallback code-path even when we could still execute
> the digest function. However, this isn't a big deal as nobody
> but the test path would supply zero-length associated data.
>
> Reported-by: Romain Francoise <romain@...bokech.com>
> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Feel free to change this to:
Reported-and-tested-by: Romain Francoise <romain@...bokech.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists