Go to file
Jerome Marchand 8c01c45934 libbpf: Add some details for BTF parsing failures
JIRA: https://issues.redhat.com/browse/RHEL-23649

commit f2e4040c82d3fddd11fa7c64e8f810e6f9cb7460
Author: Ian Rogers <irogers@google.com>
Date:   Thu Jan 25 15:18:40 2024 -0800

    libbpf: Add some details for BTF parsing failures

    As CONFIG_DEBUG_INFO_BTF is default off the existing "failed to find
    valid kernel BTF" message makes diagnosing the kernel build issue somewhat
    cryptic. Add a little more detail with the hope of helping users.

    Before:
    ```
    libbpf: failed to find valid kernel BTF
    libbpf: Error loading vmlinux BTF: -3
    ```

    After not accessible:
    ```
    libbpf: kernel BTF is missing at '/sys/kernel/btf/vmlinux', was CONFIG_DEBUG_INFO_BTF enabled?
    libbpf: failed to find valid kernel BTF
    libbpf: Error loading vmlinux BTF: -3
    ```

    After not readable:
    ```
    libbpf: failed to read kernel BTF from (/sys/kernel/btf/vmlinux): -1
    ```

    Closes: https://lore.kernel.org/bpf/CAP-5=fU+DN_+Y=Y4gtELUsJxKNDDCOvJzPHvjUVaUoeFAzNnig@mail.gmail.com/

    Signed-off-by: Ian Rogers <irogers@google.com>
    Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
    Link: https://lore.kernel.org/bpf/20240125231840.1647951-1-irogers@google.com

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
2024-10-15 10:49:05 +02:00
Documentation docs/bpf: Improve documentation of 64-bit immediate instructions 2024-10-15 10:49:05 +02:00
LICENSES
arch bpf, arm64: Enable the inline of bpf_kptr_xchg() 2024-10-15 10:49:00 +02:00
block Merge: CVE-2024-42294: block: fix deadlock between sd_remove &#38; sd_release 2024-09-11 07:52:53 +00:00
certs
crypto crypto: pcrypt - Fix hungtask for PADATA_RESET 2024-05-29 13:20:49 +08:00
drivers bpf: Take into account BPF token when fetching helper protos 2024-10-15 10:49:03 +02:00
fs Merge: proc: fix dentry/inode overinstantiating under /proc/${pid}/net 2024-10-10 08:47:42 +00:00
include bpf: Remove unused field "mod" in struct bpf_trampoline 2024-10-15 10:49:05 +02:00
init modules: wait do_free_init correctly 2024-06-17 14:17:30 -04:00
io_uring mm/gup: remove vmas parameter from pin_user_pages() 2024-09-05 20:35:37 -04:00
ipc Merge: ipc/msg: mitigate the lock contention in ipc/msg 2024-05-16 13:29:40 +00:00
kernel bpf: move arg:ctx type enforcement check inside the main logic loop 2024-10-15 10:49:05 +02:00
lib Merge: CVE-2024-42292: kobject_uevent: Fix OOB access within zap_modalias_env() 2024-09-27 19:09:13 +00:00
mm Merge tag 'kernel-5.14.0-503.11.1.el9_5' into merge-up-9.5- 2024-10-04 11:15:45 -03:00
net bpf: Consistently use BPF token throughout BPF verifier logic 2024-10-15 10:49:03 +02:00
redhat [redhat] kernel-5.14.0-518.el9 2024-10-11 06:39:20 +00:00
samples samples/bpf: Use %lu format specifier for unsigned long values 2024-06-25 11:07:33 +02:00
scripts Merge: x86/vmware: Add TDX hypercall support 2024-10-10 12:27:04 +00:00
security bpf,selinux: Allocate bpf_security_struct per BPF token 2024-10-15 10:49:04 +02:00
sound Merge: CVE-2024-42278: ASoC: TAS2781: Fix tasdev_load_calibrated_data() 2024-09-11 07:15:26 +00:00
tools libbpf: Add some details for BTF parsing failures 2024-10-15 10:49:05 +02:00
usr kexec.h: add linux/kexec.h to UAPI compile-test coverage 2024-05-15 13:58:51 +08:00
virt mm: ptep_get() conversion 2024-09-05 20:36:52 -04:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore redhat: rhdocs: delete .get_maintainer.conf 2024-06-06 09:36:57 -04:00
.gitlab-ci.yml redhat: set defaults for RHEL 9.5 2024-09-02 17:30:00 +00:00
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS Merge: Refresh s390x subsystem to upstream kernel 6.7 2024-09-26 17:55:24 +00:00
Makefile Merge: Update MM Selftests for 9.5 2024-08-21 12:51:18 +00:00
Makefile.rhelver [redhat] kernel-5.14.0-518.el9 2024-10-11 06:39:20 +00:00
README
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.