summaryrefslogtreecommitdiff
path: root/tools/gpio
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2020-11-03 10:41:30 +0100
committerDaniel Borkmann <daniel@iogearbox.net>2020-11-04 21:37:29 +0100
commit25cf73b9ff88fd4608699a0313f820758b4c252d (patch)
tree5159c3cd3c814ba59c3f19ec4ed4ebc157153cb2 /tools/gpio
parentf78331f74cacb33d87cd60376dacc5bd397959e2 (diff)
libbpf: Fix possible use after free in xsk_socket__delete
Fix a possible use after free in xsk_socket__delete that will happen if xsk_put_ctx() frees the ctx. To fix, save the umem reference taken from the context and just use that instead. Fixes: 2f6324a3937f ("libbpf: Support shared umems between queues and devices") Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/1604396490-12129-3-git-send-email-magnus.karlsson@gmail.com
Diffstat (limited to 'tools/gpio')
0 files changed, 0 insertions, 0 deletions