Thread (9 messages) flat view 9 messages, 6 authors, 2016-08-10

Re: [PATCH v2] powerpc/32: fix csum_partial_copy_generic()

From: Segher Boessenkool <hidden>
Date: 2016-08-02 13:32:23
Also in: lkml, stable

On Tue, Aug 02, 2016 at 10:07:05AM +0200, Christophe Leroy wrote:
commit 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic()
based on copy_tofrom_user()") introduced a bug when destination
address is odd and initial csum is not null

In that (rare) case the initial csum value has to be rotated one byte
as well as the resulting value is

This patch also fixes related comments

Fixes: 7aef4136566b0 ("powerpc32: rewrite csum_partial_copy_generic()
based on copy_tofrom_user()")
Cc: stable@vger.kernel.org

Signed-off-by: Christophe Leroy <redacted>
---
 v2: updated comments as suggested by Segher
Thanks.  It looks good to me now.


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help