Skip to content

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.rst
index 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 function
body. 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 checks
every program, CO-RE lets one artifact load on more than one kernel
build, 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.rst
index 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.rst
index bdf42e9d..b6b7a90a 100644
--- a/Documentation/upatches/test/debugging.rst
+++ b/Documentation/upatches/test/debugging.rst
@@ -230,6 +230,10 @@ Read the verifier log
or one of the listed errors, each as a constant, and declare
the 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. Use
the section without ``.s``.