eBPF-based security platform
docs: complete the fmod_ret pages for the functions the build tags
Anton Protopopov82cedab4ba60
diff --git a/Documentation/concepts/comparisons.rst b/Documentation/concepts/comparisons.rstindex 91f3792f..dbf7b6f9 100644--- a/Documentation/concepts/comparisons.rst+++ b/Documentation/concepts/comparisons.rst@@ -36,8 +36,9 @@ module loads.shirudo complements live patching. A upatch cannot replace a functionbody. It can refuse a call before the function runs, at an LSM hook, a-``security_*`` function, a system call entry or a function marked for-error injection, and it can observe or filter+``security_*`` function, a system call entry, a function marked for+error injection or a function the kernel build tagged because it returns+errors, and it can observe or filter(:doc:`/upatches/write/attach-kinds`). In exchange, the BPF verifier checksevery program, CO-RE lets one artifact load on more than one kernelbuild, and each load and unload is measured. A target can run both:diff --git a/Documentation/operate/plan/system-requirements.rst b/Documentation/operate/plan/system-requirements.rstindex ea10cbe9..b7e3df12 100644--- a/Documentation/operate/plan/system-requirements.rst+++ b/Documentation/operate/plan/system-requirements.rst@@ -261,9 +261,9 @@ point is missing fails to load.that are marked for error injection.* - ``CONFIG_BPF_FMODRET_SCAN``- ``fmod_ret`` on the kernel functions that return errors, which the- build finds and tags, on x86-64 and arm64. The build host needs- the headers and libraries of LLVM 17 or later. See- :doc:`/concepts/background/fmod-ret`.+ build finds and tags, on x86-64 and arm64. The build host needs a+ C++17 compiler and the headers and libraries of LLVM 17 or later.+ See :doc:`/concepts/background/fmod-ret`.* - ``CONFIG_BPF_KPROBE_OVERRIDE``- ``bpf_override_return()`` from a ``kprobe`` upatch.* - ``CONFIG_UPROBE_EVENTS``diff --git a/Documentation/upatches/test/debugging.rst b/Documentation/upatches/test/debugging.rstindex bdf42e9d..b6b7a90a 100644--- a/Documentation/upatches/test/debugging.rst+++ b/Documentation/upatches/test/debugging.rst@@ -230,6 +230,10 @@ Read the verifier logor one of the listed errors, each as a constant, and declarethe program ``long BPF_PROG(...)`` when the function returns``long``.+ * - ``tail calls are not allowed in fmod_ret programs with+ restricted return values``+ - A tail call in an ``fmod_ret`` program on a function the kernel+ build tagged. Call the code directly.* - ``<function> is not sleepable``- A ``.s`` section on a function or hook that cannot sleep. Usethe section without ``.s``.