Re: [PATCH bpf] libbpf: fix potential NULL pointer dereference

2021-04-08 Thread Daniel Borkmann
On 4/8/21 7:20 AM, Ciara Loftus wrote: Wait until after the UMEM is checked for null to dereference it. Fixes: 43f1bc1efff1 ("libbpf: Restore umem state after socket create failure") Signed-off-by: Ciara Loftus Applied, thanks!

[PATCH bpf] libbpf: fix potential NULL pointer dereference

2021-04-07 Thread Ciara Loftus
Wait until after the UMEM is checked for null to dereference it. Fixes: 43f1bc1efff1 ("libbpf: Restore umem state after socket create failure") Signed-off-by: Ciara Loftus --- tools/lib/bpf/xsk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/lib/bpf/xsk.c b/tools/