android_kernel_samsung_a7y1.../net
Eric Dumazet 19d2edabbb tcp: refine memory limit test in tcp_fragment()
commit b6653b3629e5b88202be3c9abc44713973f5c4b4 upstream.

tcp_fragment() might be called for skbs in the write queue.

Memory limits might have been exceeded because tcp_sendmsg() only
checks limits at full skb (64KB) boundaries.

Therefore, we need to make sure tcp_fragment() wont punish applications
that might have setup very low SO_SNDBUF values.

Fixes: f070ef2ac667 ("tcp: tcp_fragment() should apply sane memory limits")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Christoph Paasch <cpaasch@apple.com>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 19:09:47 +02:00
..
6lowpan
9p
802
8021q vlan: disable SIOCSHWTSTAMP in container 2020-04-06 17:01:37 +02:00
appletalk
atm
ax25 ax25: fix inconsistent lock state in ax25_destroy_timer 2020-04-06 19:03:36 +02:00
batman-adv
bluetooth Revert "Bluetooth: Align minimum encryption key size for LE and BR/EDR connections" 2020-04-06 19:02:48 +02:00
bridge bridge: Fix error path for kobject_init_and_add() 2020-04-06 17:01:30 +02:00
caif
can
ceph
core neigh: fix use-after-free read in pneigh_get_next 2020-04-06 19:03:44 +02:00
dcb
dccp
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154
ipv4 tcp: refine memory limit test in tcp_fragment() 2020-04-06 19:09:47 +02:00
ipv6 ipv6: flowlabel: fl6_sock_lookup() must use atomic_inc_not_zero 2020-04-06 19:03:40 +02:00
ipx
irda
iucv
key
l2tp
l3mdev
lapb lapb: fixed leak of control-blocks. 2020-04-06 19:03:42 +02:00
llc llc: fix skb leak in llc_build_and_send_ui_pkt() 2020-04-06 18:20:39 +02:00
mac80211 mac80211/cfg80211: update bss channel on channel switch 2020-04-06 18:18:07 +02:00
mac802154
mpls
mptcp
ncm
netfilter
netlabel
netlink
netrom
nfc
openvswitch
packet packet: Fix error path in packet_init 2020-04-06 17:01:35 +02:00
phonet
rds net: rds: fix memory leak in rds_ib_flush_mr_pool 2020-04-06 18:45:06 +02:00
rfkill
rose
rxrpc
sched net: create skb_gso_validate_mac_len() 2020-04-06 18:44:21 +02:00
sctp
sunrpc
switchdev
tipc tipc: fix modprobe tipc failed after switch order of device registration -v2 2020-04-06 18:20:58 +02:00
unix
vmw_vsock
wimax
wireless mac80211/cfg80211: update bss channel on channel switch 2020-04-06 18:18:07 +02:00
x25
xfrm xfrm: policy: Fix out-of-bound array accesses in __xfrm_policy_unlink 2020-04-06 18:14:29 +02:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c