Patch "MIPS: Fix special case in 64 bit IP checksumming." has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
MIPS: Fix special case in 64 bit IP checksumming.
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mips-fix-special-case-in-64-bit-ip-checksumming.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
66fd848cadaa6be974a8c780fbeb328f0af4d3bdMon Sep 17 00:00:00 2001
From: Ralf Baechle <[email protected]>
Date: Thu, 26 Jan 2017 02:16:47 +0100
Subject: MIPS: Fix special case in 64 bit IP checksumming.
From: Ralf Baechle <[email protected]>
commit 66fd848cadaa6be974a8c780fbeb328f0af4d3bd upstream.
For certain arguments such as saddr = 0xc0a8fd60, daddr = 0xc0a8fda1, len = 80, proto = 17, sum = 0x7eae049d there will be a carry when folding the intermediate 64 bit checksum to 32 bit but the code doesn't add the carry back to the one's complement sum, thus an incorrect result will be generated.
--- arch/mips/include/asm/checksum.h | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/include/asm/checksum.h +2 -0
@@ -186,7 +186,9 @@ static inline __wsum csum_tcpudp_nofold(" daddu %0, %4 \n" " dsll32 $1, %0, 0 \n" " daddu %0, $1 \n" +" sltu $1, %0, $1 \n" " dsra32 %0, %0, 0 \n" + " addu %0, $1 \n"#endif " .set pop" : "=r" (sum)
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/mips-calculate-micromips-ra-properly-when-unwinding-the-stack.patch queue-4.4/mips-fix-get_frame_info-handling-of-micromips-function-size.patch queue-4.4/mips-handle-micromips-jumps-in-the-same-way-as-mips32-mips64-jumps.patch queue-4.4/mips-fix-is_jump_ins-handling-of-16b-micromips-instructions.patch queue-4.4/mips-clear-isa-bit-correctly-in-get_frame_info.patch queue-4.4/mips-fix-special-case-in-64-bit-ip-checksumming.patch queue-4.4/mips-octeon-fix-copy_from_user-fault-handling-for-large-buffers.patch queue-4.4/mips-prevent-unaligned-accesses-during-stack-unwinding.patch