]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix null dereference in xsk_socket__delete
authorMagnus Karlsson <magnus.karlsson@intel.com>
Tue, 3 Nov 2020 09:41:29 +0000 (10:41 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 4 Nov 2020 20:37:28 +0000 (21:37 +0100)
commit38e4adba81d445b1a00f3ba246293d83bab88537
tree090786d3bda73e455f781d0692a5e565346150ba
parentbeaa595c5a560fa3a078f75994e30ee69cf3d4da
libbpf: Fix null dereference in xsk_socket__delete

Fix a possible null pointer dereference in xsk_socket__delete that
will occur if a null pointer is fed into the function.

Fixes: 3c545a59a8a2 ("libbpf: Support shared umems between queues and devices")
Reported-by: Andrii Nakryiko <andrii.nakryiko@gmail.com>
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-2-git-send-email-magnus.karlsson@gmail.com
tools/lib/bpf/xsk.c