diff options
author | Magnus Karlsson <[email protected]> | 2020-11-03 10:41:30 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-11-04 21:37:29 +0100 |
commit | 25cf73b9ff88fd4608699a0313f820758b4c252d (patch) | |
tree | 5159c3cd3c814ba59c3f19ec4ed4ebc157153cb2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f78331f74cacb33d87cd60376dacc5bd397959e2 (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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions