From: Dave Peterson Date: Sat, 30 Jul 2005 05:59:20 +0000 (-0700) Subject: [PATCH] x86_64: fix bug in csum_partial_copy_generic() X-Git-Tag: v2.6.13-rc5~53 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=92ed0223aefa795d1873427e25599cb70b2148ee;p=linux-2.6-omap-h63xx.git [PATCH] x86_64: fix bug in csum_partial_copy_generic() I was observing reproducible crashes on the "movw %bx,(%rsi)" instruction below while a process in a recvfrom() system call was copying packet data to user space. The patch below fixes the exception table and causes the crash to no longer reproduce. Please apply. Acked-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/lib/csum-copy.S b/arch/x86_64/lib/csum-copy.S index 01808ec3783..72fd55ee896 100644 --- a/arch/x86_64/lib/csum-copy.S +++ b/arch/x86_64/lib/csum-copy.S @@ -188,8 +188,8 @@ csum_partial_copy_generic: source movw (%rdi),%bx adcl %ebx,%eax - dest decl %ecx + dest movw %bx,(%rsi) leaq 2(%rdi),%rdi leaq 2(%rsi),%rsi