tcp: fix crashes in do_tcp_sendpages()
authorEric Dumazet <edumazet@google.com>
Sat, 1 Dec 2012 13:07:02 +0000 (13:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Dec 2012 01:39:16 +0000 (20:39 -0500)
commit64022d0b4e93ea432e95db55a72b8a1c5775f3c0
treeea2ac7d7a7ed903d645c21d99f02ff6fdbb6aa96
parent9f8933e960f98d27742727445061b0ece934e5cf
tcp: fix crashes in do_tcp_sendpages()

Recent network changes allowed high order pages being used
for skb fragments.

This uncovered a bug in do_tcp_sendpages() which was assuming its caller
provided an array of order-0 page pointers.

We only have to deal with a single page in this function, and its order
is irrelevant.

Reported-by: Willy Tarreau <w@1wt.eu>
Tested-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c