diff options
| author | Magnus Karlsson <[email protected]> | 2020-11-03 09:41:30 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-11-04 20:37:29 +0000 |
| commit | 25cf73b9ff88fd4608699a0313f820758b4c252d (patch) | |
| tree | 5159c3cd3c814ba59c3f19ec4ed4ebc157153cb2 /net/tipc/node.c | |
| parent | libbpf: Fix null dereference in xsk_socket__delete (diff) | |
| download | kernel-25cf73b9ff88fd4608699a0313f820758b4c252d.tar.gz kernel-25cf73b9ff88fd4608699a0313f820758b4c252d.zip | |
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 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions
