Szilveszter Ordog <slipszi@xxxxxxxxx> wrote: >> When we get an unaligned buffer, we first process the bit from the >> start to the first aligned address. Once we get to the aligned >> address everything happens as usual. >> >> So where this code is, we're trying to move to the next aligned >> address, and as ALIGN rounds down, we need to add alignmask. >> So the bug is the fact that we're adding alignmask - 1. > > No, ALIGN rounds *up* (as it should). See: Ah, of course it does. I've applied your patch. Thanks a lot! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> 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-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html