Go to file
Viktor Malik d17bddd32e
bpf: Add arm64 JIT support for bpf_addr_space_cast instruction.
JIRA: https://issues.redhat.com/browse/RHEL-30773

commit 4dd31243e30843d5f63bccfb0369146e4de1a130
Author: Puranjay Mohan <puranjay12@gmail.com>
Date:   Mon Mar 25 15:07:16 2024 +0000

    bpf: Add arm64 JIT support for bpf_addr_space_cast instruction.
    
    LLVM generates bpf_addr_space_cast instruction while translating
    pointers between native (zero) address space and
    __attribute__((address_space(N))). The addr_space=0 is reserved as
    bpf_arena address space.
    
    rY = addr_space_cast(rX, 0, 1) is processed by the verifier and
    converted to normal 32-bit move: wX = wY.
    
    rY = addr_space_cast(rX, 1, 0) : used to convert a bpf arena pointer to
    a pointer in the userspace vma. This has to be converted by the JIT.
    
    Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
    Link: https://lore.kernel.org/r/20240325150716.4387-3-puranjay12@gmail.com
    Signed-off-by: Alexei Starovoitov <ast@kernel.org>

Signed-off-by: Viktor Malik <vmalik@redhat.com>
2024-11-07 13:58:42 +01:00
Documentation
LICENSES
arch bpf: Add arm64 JIT support for bpf_addr_space_cast instruction. 2024-11-07 13:58:42 +01:00
block
certs
crypto
drivers
fs
include bpf: Improve program stats run-time calculation 2024-11-07 13:58:41 +01:00
init
io_uring
ipc
kernel bpf: Improve program stats run-time calculation 2024-11-07 13:58:41 +01:00
lib
mm
net bpf: add bpf_modify_return_test_tp() kfunc triggering tracepoint 2024-11-07 13:58:36 +01:00
redhat
samples
scripts
security
sound
tools bpf: Add arm64 JIT support for bpf_addr_space_cast instruction. 2024-11-07 13:58:42 +01:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.gitlab-ci.yml
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS
Makefile
Makefile.rhelver
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.