]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02d223a2ba965bb145a7b010d1749a4f8ef695db
treea3e032a9ba6bb77337176bef407d7408d6a10a4d
parent34888fd734d9a60a3d8b224ff6b169835e5811a0
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