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
..
ABI
Merge branch 'for-4.16-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
2018-03-19 14:23:30 -07:00
accelerators
ocxl: Document the OCXL_IOCTL_GET_METADATA IOCTL
2018-03-02 13:02:15 +11:00
accounting
acpi
admin-guide
More ACPI updates for v4.16-rc1
2018-02-09 09:44:25 -08:00
aoe
arm
arm64
auxdisplay
backlight
blackfin
block
blockdev
bpf
bpf, doc: add description wrt native/bpf clang target and pointer size
2018-03-20 15:47:45 -07:00
bus-devices
cdrom
cgroup-v1
cma
connector
console
core-api
cpu-freq
cpufreq: Add and use cpufreq_for_each_{valid_,}entry_idx()
2018-02-08 10:21:39 +01:00
cpuidle
cris
crypto
dev-tools
device-mapper
devicetree
dt-bindings: net: meson-dwmac: add support for the Meson8m2 SoC
2018-03-31 22:17:23 -04:00
doc-guide
driver-api
driver-model
early-userspace
EDID
extcon
fault-injection
fb
features
membarrier-sync-core: Document architecture support
2018-02-10 12:45:10 +01:00
filesystems
firmware_class
fmc
fpga
frv
gpio
gpu
Fixes for 4.16. I contains fixes for deadlock on runtime suspend on few
2018-02-22 08:39:26 +10:00
hid
hwmon
i2c
i2c: i801: Add missing documentation entries for Braswell and Kaby Lake
2018-02-21 09:17:20 +01:00
ia64
ia64: doc: tweak whitespace for 'console=' parameter
2018-03-05 14:41:38 -08:00
ide
iio
infiniband
input
ioctl
isdn
kbuild
kdump
kernel-hacking
laptops
leds
lightnvm
livepatch
locking
Documentation/locking/mutex-design: Update to reflect latest changes
2018-02-11 12:28:58 +01:00
m68k
maintainer
md
media
media: dvb: add continuity error indicators for memory mapped buffers
2018-02-23 05:28:41 -05:00
memory-devices
metag
mic
mips
misc-devices
mmc
mn10300
mtd
namespaces
netlabel
networking
inet: frags: break the 2GB limit for frags storage
2018-03-31 23:25:39 -04:00
nfc
nios2
nvdimm
nvmem
openrisc
parisc
PCI
PCI: Update location of pci.ids file
2018-02-22 15:00:43 -06:00
pcmcia
perf
phy
platform
power
powerpc
pps
process
A few late-arriving fixes, along with Konstantin's PGP document that had
2018-02-07 09:42:59 -08:00
pti
ptp
ptp: Fix documentation to match code.
2018-03-26 12:13:21 -04:00
rapidio
RCU
s390
scheduler
scsi
security
serial
sh
sound
sparc
sphinx
Documentation/sphinx: Fix Directive import error
2018-03-09 10:46:14 -07:00
sphinx-static
spi
sysctl
net: do not create fallback tunnels for non-default namespaces
2018-03-09 11:23:11 -05:00
target
thermal
timers
trace
translations
usb
userspace-api
virtual
KVM: x86: Add a framework for supporting MSR-based features
2018-03-01 19:00:28 +01:00
vm
w1
watchdog
wimax
x86
Documentation, x86, resctrl: Make text and sample command match
2018-02-28 19:59:05 +01:00
xtensa
.gitignore
00-INDEX
atomic_bitops.txt
locking/atomic/bitops: Document and clarify ordering semantics for failed test_and_{}_bit()
2018-02-13 14:55:53 +01:00
atomic_t.txt
bcache.txt
bt8xxgpio.txt
btmrvl.txt
bus-virt-phys-mapping.txt
cachetlb.txt
cgroup-v2.txt
Changes
circular-buffers.txt
clearing-warn-once.txt
clk.txt
CodingStyle
conf.py
cpu-load.txt
cputopology.txt
crc32.txt
dcdbas.txt
debugging-modules.txt
debugging-via-ohci1394.txt
dell_rbu.txt
digsig.txt
DMA-API-HOWTO.txt
DMA-API.txt
DMA-attributes.txt
DMA-ISA-LPC.txt
docutils.conf
dontdiff
efi-stub.txt
eisa.txt
flexible-arrays.txt
futex-requeue-pi.txt
gcc-plugins.txt
highuid.txt
hw_random.txt
hwspinlock.txt
index.rst
Intel-IOMMU.txt
intel_txt.txt
io-mapping.txt
io_ordering.txt
iostats.txt
IPMI.txt
IRQ-affinity.txt
IRQ-domain.txt
IRQ.txt
irqflags-tracing.txt
isa.txt
isapnp.txt
kernel-per-CPU-kthreads.txt
kobject.txt
kprobes.txt
kref.txt
ldm.txt
lockup-watchdogs.txt
logo.gif
logo.txt
lsm.txt
lzo.txt
mailbox.txt
Makefile
memory-barriers.txt
memory-hotplug.txt
men-chameleon-bus.txt
nommu-mmap.txt
ntb.txt
numastat.txt
padata.txt
parport-lowlevel.txt
percpu-rw-semaphore.txt
phy.txt
pi-futex.txt
pnp.txt
preempt-locking.txt
pwm.txt
rbtree.txt
remoteproc.txt
rfkill.txt
robust-futex-ABI.txt
robust-futexes.txt
rpmsg.txt
rtc.txt
SAK.txt
sgi-ioc4.txt
siphash.txt
SM501.txt
smsc_ece1099.txt
speculation.txt
static-keys.txt
SubmittingPatches
svga.txt
switchtec.txt
sync_file.txt
tee.txt
this_cpu_ops.txt
unaligned-memory-access.txt
vfio-mediated-device.txt
vfio.txt
video-output.txt
xillybus.txt
xz.txt
zorro.txt