aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorBjörn Töpel <[email protected]>2019-03-13 14:15:49 +0000
committerDaniel Borkmann <[email protected]>2019-03-16 00:27:51 +0000
commit044175a06706d516aa42874bb44dbbfc3c4d20eb (patch)
tree3f937ac758c9a92675819eb56c77dada33e92880 /net/tipc/socket.c
parentMerge branch 'fix-bpf-docs' (diff)
downloadkernel-044175a06706d516aa42874bb44dbbfc3c4d20eb.tar.gz
kernel-044175a06706d516aa42874bb44dbbfc3c4d20eb.zip
xsk: fix umem memory leak on cleanup
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/[email protected]/ Link: https://lore.kernel.org/netdev/[email protected]/ Fixes: c0c77d8fb787 ("xsk: add user memory registration support sockopt") Reported-by: Jiri Slaby <[email protected]> Signed-off-by: Björn Töpel <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions