aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2015-11-19 05:03:33 +0000
committerDavid S. Miller <[email protected]>2015-11-20 15:57:33 +0000
commit5d4c9bfbabdb1d497f21afd81501e5c54b0c85d9 (patch)
tree2d59e7176c7c351ca7113839fa6f8db42762d43e /net/unix/af_unix.c
parenttcp: fix Fast Open snmp over-counting bug (diff)
downloadkernel-5d4c9bfbabdb1d497f21afd81501e5c54b0c85d9.tar.gz
kernel-5d4c9bfbabdb1d497f21afd81501e5c54b0c85d9.zip
tcp: fix potential huge kmalloc() calls in TCP_REPAIR
tcp_send_rcvq() is used for re-injecting data into tcp receive queue. Problems : - No check against size is performed, allowed user to fool kernel in attempting very large memory allocations, eventually triggering OOM when memory is fragmented. - In case of fault during the copy we do not return correct errno. Lets use alloc_skb_with_frags() to cook optimal skbs. Fixes: 292e8d8c8538 ("tcp: Move rcvq sending to tcp_input.c") Fixes: c0e88ff0f256 ("tcp: Repair socket queues") Signed-off-by: Eric Dumazet <[email protected]> Cc: Pavel Emelyanov <[email protected]> Acked-by: Pavel Emelyanov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions