diff options
| author | Björn Töpel <[email protected]> | 2019-04-30 14:45:35 +0200 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2019-05-04 23:26:22 -0700 |
| commit | 0e6741f092979535d159d5a851f12c88bfb7cb9a (patch) | |
| tree | 616ecde8b6710b37a1441ff9c61b5333930193b0 /include/linux/fpga/fpga-bridge.h | |
| parent | 6cea33701eb024bc6c920ab83940ee22afd29139 (diff) | |
libbpf: fix invalid munmap call
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 <[email protected]>
Fixes: 1cad07884239 ("libbpf: add support for using AF_XDP sockets")
Signed-off-by: Björn Töpel <[email protected]>
Tested-by: William Tu <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions