Go to file
Andrii Nakryiko bafd95893a libbpf: Fix negative FD close() in xsk_setup_xdp_prog()
BugLink: https://bugs.launchpad.net/bugs/1858428

[ Upstream commit 9656b346b2 ]

Fix issue reported by static analysis (Coverity). If bpf_prog_get_fd_by_id()
fails, xsk_lookup_bpf_maps() will fail as well and clean-up code will attempt
close() with fd=-1. Fix by checking bpf_prog_get_fd_by_id() return result and
exiting early.

Fixes: 10a13bb40e ("libbpf: remove qidconf and better support external bpf programs.")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20191107054059.313884-1-andriin@fb.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
2020-01-06 08:16:16 -06:00
Documentation
LICENSES
arch
block
certs
crypto
debian
debian.master
drivers xen/gntdev: Use select for DMA_SHARED_BUFFER 2020-01-06 08:16:15 -06:00
fs
include net: avoid potential false sharing in neighbor related code 2020-01-06 08:16:15 -06:00
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound ALSA: timer: Limit max amount of slave instances 2020-01-06 08:16:12 -06:00
tools libbpf: Fix negative FD close() in xsk_setup_xdp_prog() 2020-01-06 08:16:16 -06:00
ubuntu
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
dropped.txt
snapcraft.yaml
update-version-dkms

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.