kernel-fxtec-pro1x/include
Björn Töpel 947bd0d9bd xsk: fix umem memory leak on cleanup
[ Upstream commit 044175a06706d516aa42874bb44dbbfc3c4d20eb ]

When the umem is cleaned up, the task that created it might already be
gone. If the task was gone, the xdp_umem_release function did not free
the pages member of struct xdp_umem.

It turned out that the task lookup was not needed at all; The code was
a left-over when we moved from task accounting to user accounting [1].

This patch fixes the memory leak by removing the task lookup logic
completely.

[1] https://lore.kernel.org/netdev/20180131135356.19134-3-bjorn.topel@gmail.com/

Link: https://lore.kernel.org/netdev/c1cb2ca8-6a14-3980-8672-f3de0bb38dfd@suse.cz/
Fixes: c0c77d8fb7 ("xsk: add user memory registration support sockopt")
Reported-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
2019-05-04 09:20:12 +02:00
..
acpi
asm-generic x86/unwind/orc: Fix ORC unwind table alignment 2019-03-23 20:10:10 +01:00
clocksource
crypto
drm
dt-bindings
keys
kvm
linux fs: prevent page refcount overflow in pipe_buf_get 2019-05-04 09:20:11 +02:00
math-emu
media
memory
misc
net xsk: fix umem memory leak on cleanup 2019-05-04 09:20:12 +02:00
pcmcia
ras
rdma
scsi scsi: fcoe: make use of fip_mode enum complete 2019-04-05 22:33:04 +02:00
soc
sound
target
trace rxrpc: Fix client call connect/disconnect race 2019-04-20 09:16:05 +02:00
uapi netfilter: xt_cgroup: shrink size of v2 path 2019-04-20 09:16:00 +02:00
video
xen