Re: TCP-MD5 checksum failure on x86_64 SMP

David Miller
2010-05-16T07:35:16Z

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Fri, 07 May 2010 10:00:22 +0200

> [PATCH] tcp: fix MD5 (RFC2385) support
>
> TCP MD5 support uses percpu data for temporary storage. It currently
> disables preemption so that same storage cannot be reclaimed by another
> thread on same cpu.
>
> We also have to make sure a softirq handler wont try to use also same
> context. Various bug reports demonstrated corruptions.
>
> Fix is to disable preemption and BH.
>
> Reported-by: Bhaskar Dutta <bhaskie@gmail.com>
> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>

Applied.