tcp: fix MD5 (RFC2385) support
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 16 May 2010 07:34:04 +0000 (00:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 May 2010 07:34:04 +0000 (00:34 -0700)
commit35790c0421121364883a167bab8a2e37e1f67f78
treea3e032a9ba6bb77337176bef407d7408d6a10a4d
parentd77f873fdd21912803836da78f627d2efd267082
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp.c