powerpc/32: Fix again csum_partial_copy_generic()
Commit 7aef4136 ("powerpc32: rewrite csum_partial_copy_generic() based on copy_tofrom_user()") introduced a bug when destination address is odd and len is lower than cacheline size. In that case the resulting csum value doesn't have to be rotated one byte because the cache-aligned copy part is skipped so no alignment is performed. Fixes: 7aef4136 ("powerpc32: rewrite csum_partial_copy_generic() based on copy_tofrom_user()") Cc: stable@vger.kernel.org # v4.6+ Reported-by: NAlessio Igor Bogani <alessio.bogani@elettra.eu> Signed-off-by: NChristophe Leroy <christophe.leroy@c-s.fr> Tested-by: NAlessio Igor Bogani <alessio.bogani@elettra.eu> Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Showing
想要评论请 注册 或 登录