Eric Dumazet
3e67f106f6
inet: frags: break the 2GB limit for frags storage
...
Some users are willing to provision huge amounts of memory to be able
to perform reassembly reasonnably well under pressure.
Current memory tracking is using one atomic_t and integers.
Switch to atomic_long_t so that 64bit arches can use more than 2GB,
without any cost for 32bit arches.
Note that this patch avoids an overflow error, if high_thresh was set
to ~2GB, since this test in inet_frag_alloc() was never true :
if (... || frag_mem_limit(nf) > nf->high_thresh)
Tested:
$ echo 16000000000 >/proc/sys/net/ipv4/ipfrag_high_thresh
<frag DDOS>
$ grep FRAG /proc/net/sockstat
FRAG: inuse 14705885 memory 16000002880
$ nstat -n ; sleep 1 ; nstat | grep Reas
IpReasmReqds 3317150 0.0
IpReasmFails 3317112 0.0
Signed-off-by: Eric Dumazet <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2018-03-31 23:25:39 -04:00
..
6lowpan
9p
802
8021q
vlan: vlan_hw_filter_capable() can be static
2018-03-31 23:20:48 -04:00
appletalk
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
atm
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
ax25
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
batman-adv
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-03-23 11:31:58 -04:00
bluetooth
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
bpf
bridge
net: bridge: disable bridge MTU auto tuning if it was set manually
2018-03-31 22:19:00 -04:00
caif
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
can
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
ceph
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
core
net: Do not take net_rwsem in __rtnl_link_unregister()
2018-03-31 22:24:58 -04:00
dcb
dccp
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
decnet
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
dns_resolver
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
dsa
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-03-23 11:31:58 -04:00
ethernet
hsr
ieee802154
inet: frags: break the 2GB limit for frags storage
2018-03-31 23:25:39 -04:00
ife
ipv4
inet: frags: break the 2GB limit for frags storage
2018-03-31 23:25:39 -04:00
ipv6
inet: frags: break the 2GB limit for frags storage
2018-03-31 23:25:39 -04:00
iucv
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-03-23 11:31:58 -04:00
kcm
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
key
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
l2tp
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
l3mdev
lapb
llc
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
mac80211
We have a fair number of patches, but many of them are from the
2018-03-29 16:23:26 -04:00
mac802154
mpls
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
ncsi
net/ncsi: check for null return from call to nla_nest_start
2018-03-27 10:38:26 -04:00
netfilter
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
2018-03-30 11:41:18 -04:00
netlabel
netlink
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
netrom
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
nfc
nsh
openvswitch
ovs: Remove rtnl_lock() from ovs_exit_net()
2018-03-29 13:47:54 -04:00
packet
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
phonet
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
psample
qrtr
rds
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
rfkill
rose
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
rxrpc
rxrpc: Fix leak of rxrpc_peer objects
2018-03-30 21:05:44 +01:00
sched
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
sctp
sctp: fix unused lable warning
2018-03-29 14:38:27 -04:00
smc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-03-23 11:31:58 -04:00
strparser
sunrpc
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
switchdev
tipc
tipc: avoid possible string overflow
2018-03-31 22:19:52 -04:00
tls
tls: RX path for ktls
2018-03-23 12:25:54 -04:00
unix
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00
vmw_vsock
wimax
wireless
We have a fair number of patches, but many of them are from the
2018-03-29 16:23:26 -04:00
x25
net: Use octal not symbolic permissions
2018-03-26 12:07:48 -04:00
xfrm
xfrm: Register xfrm_dev_notifier in appropriate place
2018-03-30 10:59:23 -04:00
compat.c
Kconfig
Makefile
socket.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
2018-03-23 11:31:58 -04:00
sysctl_net.c
net: Drop pernet_operations::async
2018-03-27 13:18:09 -04:00