android_kernel_samsung_msm8976/include/uapi
Eric Dumazet b0494cd73f tcp: tcp_fragment() should apply sane memory limits
commit f070ef2ac66716357066b683fb0baf55f8191a2e upstream.

Jonathan Looney reported that a malicious peer can force a sender
to fragment its retransmit queue into tiny skbs, inflating memory
usage and/or overflow 32bit counters.

TCP allows an application to queue up to sk_sndbuf bytes,
so we need to give some allowance for non malicious splitting
of retransmit queue.

A new SNMP counter is added to monitor how many times TCP
did not allow to split an skb if the allowance was exceeded.

Note that this counter might increase in the case applications
use SO_SNDBUF socket option to lower sk_sndbuf.

CVE-2019-11478 : tcp_fragment, prevent fragmenting a packet when the
	socket is already using more than half the allowed space

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Jonathan Looney <jtl@netflix.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Yuchung Cheng <ycheng@google.com>
Reviewed-by: Tyler Hicks <tyhicks@canonical.com>
Cc: Bruce Curtis <brucec@netflix.com>
Cc: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-27 22:11:09 +02:00
..
asm-generic allow O_TMPFILE to work with O_WRONLY 2018-12-03 11:52:37 +01:00
drm
linux tcp: tcp_fragment() should apply sane memory limits 2019-07-27 22:11:09 +02:00
media Import latest Samsung release 2017-04-18 03:43:52 +02:00
mtd
rdma
scsi BACKPORT: sg: relax 16 byte cdb restriction 2017-04-22 23:03:02 +02:00
sound ASoC: wcd9335: Add support to enable vbat feature 2015-08-14 06:25:40 -07:00
video
xen
Kbuild