Szilveszter Ördög 23a75eee07 crypto: hash - Fix handling of small unaligned buffers
If a scatterwalk chain contains an entry with an unaligned offset then
hash_walk_next() will cut off the next step at the next alignment point.

However, if the entry ends before the next alignment point then we a loop,
which leads to a kernel oops.

Fix this by checking whether the next aligment point is before the end of the
current entry.

Signed-off-by: Szilveszter Ördög <slipszi@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2010-08-06 09:26:38 +08:00
..
2010-02-16 20:24:07 +08:00
2010-02-16 20:26:46 +08:00
2010-05-26 10:36:51 +10:00
2010-02-16 20:29:01 +08:00
2010-02-16 20:29:45 +08:00
2010-02-16 20:31:19 +08:00
2010-05-26 10:36:51 +10:00
2008-06-02 15:46:51 +10:00
2010-02-16 20:33:49 +08:00
2008-08-29 15:50:02 +10:00
2009-03-04 14:43:52 +08:00
2009-02-17 20:00:11 +08:00
2008-12-25 11:02:16 +11:00
2010-03-02 21:58:16 +08:00
2008-12-25 11:02:09 +11:00
2008-12-25 11:02:10 +11:00
2008-12-25 11:02:12 +11:00
2008-12-25 11:02:13 +11:00
2008-12-25 11:02:21 +11:00
2010-03-18 20:22:55 +08:00
2008-12-25 11:02:22 +11:00
2010-05-26 10:36:51 +10:00