Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757710AbZC0FEj (ORCPT ); Fri, 27 Mar 2009 01:04:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751977AbZC0FE3 (ORCPT ); Fri, 27 Mar 2009 01:04:29 -0400 Received: from rhun.apana.org.au ([64.62.148.172]:48213 "EHLO arnor.apana.org.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751702AbZC0FE2 (ORCPT ); Fri, 27 Mar 2009 01:04:28 -0400 Date: Fri, 27 Mar 2009 13:04:25 +0800 From: Herbert Xu To: Yehuda Sadeh Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] shash: fix unaligned calculation with short length Message-ID: <20090327050424.GB26198@gondor.apana.org.au> References: <1238101941-12859-1-git-send-email-yehuda@hq.newdream.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1238101941-12859-1-git-send-email-yehuda@hq.newdream.net> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 841 Lines: 16 On Thu, Mar 26, 2009 at 02:12:21PM -0700, Yehuda Sadeh wrote: > When the total length is shorter than the calculated number of unaligned bytes, the call to shash->update breaks. For example, calling crc32c on unaligned buffer with length of 1 can result in a system crash. > > Signed-off-by: Yehuda Sadeh Ouch! Thanks for fixing this! Applied to crpyto-2.6. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 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/