No description
Find a file
Andrii Nakryiko 607c543f93 bpf: Sanitize BTF data pointer after module is loaded
Given .BTF section is not allocatable, it will get trimmed after module is
loaded. BPF system handles that properly by creating an independent copy of
data. But prevent any accidental misused by resetting the pointer to BTF data.

Fixes: 36e68442d1 ("bpf: Load and verify kernel module BTFs")
Suggested-by: Jessica Yu <jeyu@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jessica Yu <jeyu@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/bpf/20201121070829.2612884-2-andrii@kernel.org
2020-11-25 00:05:21 +01:00
arch
block
certs
crypto
Documentation
drivers i40e: Use batched xsk Tx interfaces to increase performance 2020-11-17 22:07:40 +01:00
fs
include bpf: Add bpf_ktime_get_coarse_ns helper 2020-11-18 23:25:32 +01:00
init
ipc
kernel bpf: Sanitize BTF data pointer after module is loaded 2020-11-25 00:05:21 +01:00
lib
LICENSES
mm
net xsk: Introduce batched Tx descriptor interfaces 2020-11-17 22:07:40 +01:00
samples samples/bpf: Increment Tx stats at sending 2020-11-17 22:07:40 +01:00
scripts kbuild: Skip module BTF generation for out-of-tree external modules 2020-11-25 00:05:01 +01:00
security
sound
tools selftest/bpf: Fix rst formatting in readme 2020-11-24 22:59:52 +01:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
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.