]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix tcp_md5_hash_skb_data()
authorEric Dumazet <edumazet@google.com>
Mon, 13 May 2013 21:25:52 +0000 (21:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 May 2013 18:32:04 +0000 (11:32 -0700)
commit1ec5aa136c9e1480115eb86f417151b982751468
treeb58af078897a29f931399b78d27655aea5c016a6
parent61a59bf7a672b57c2bbb10b8f2a4d1474645c4bd
tcp: fix tcp_md5_hash_skb_data()

TCP md5 communications fail [1] for some devices, because sg/crypto code
assume page offsets are below PAGE_SIZE.

This was discovered using mlx4 driver [2], but I suspect loopback
might trigger the same bug now we use order-3 pages in tcp_sendmsg()

[1] Failure is giving following messages.

huh, entered softirq 3 NET_RX ffffffff806ad230 preempt_count 00000100,
exited with 00000101?

[2] mlx4 driver uses order-2 pages to allocate RX frags

Reported-by: Matt Schnall <mischnal@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Bernhard Beck <bbeck@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c