summaryrefslogtreecommitdiff
path: root/tools/scripts
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2019-04-30 15:45:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-31 16:43:14 +0300
commit4b9c2fdd672b7a55fed68300b61e58a5e6ab820b (patch)
tree201448ff796eb22d5272a2215c54a596e792d263 /tools/scripts
parentc2d089a4aad52abe13b487b64016f3f36df0795a (diff)
downloadlinux-4b9c2fdd672b7a55fed68300b61e58a5e6ab820b.tar.xz
libbpf: fix invalid munmap call
[ Upstream commit 0e6741f092979535d159d5a851f12c88bfb7cb9a ] When unmapping the AF_XDP memory regions used for the rings, an invalid address was passed to the munmap() calls. Instead of passing the beginning of the memory region, the descriptor region was passed to munmap. When the userspace application tried to tear down an AF_XDP socket, the operation failed and the application would still have a reference to socket it wished to get rid of. Reported-by: William Tu <u9012063@gmail.com> Fixes: 1cad07884239 ("libbpf: add support for using AF_XDP sockets") Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Tested-by: William Tu <u9012063@gmail.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/scripts')
0 files changed, 0 insertions, 0 deletions