^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/kernel/livepatch
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: Nov 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: 3.19.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: live-patching@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Interface for kernel live patching
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) The /sys/kernel/livepatch directory contains subdirectories for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) each loaded live patch module.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) What: /sys/kernel/livepatch/<patch>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Date: Nov 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) KernelVersion: 3.19.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) Contact: live-patching@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) The patch directory contains subdirectories for each kernel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) object (vmlinux or a module) in which it patched functions.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) What: /sys/kernel/livepatch/<patch>/enabled
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) Date: Nov 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) KernelVersion: 3.19.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Contact: live-patching@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) A writable attribute that indicates whether the patched
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) code is currently applied. Writing 0 will disable the patch
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) while writing 1 will re-enable the patch.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) What: /sys/kernel/livepatch/<patch>/transition
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) Date: Feb 2017
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) KernelVersion: 4.12.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) Contact: live-patching@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) An attribute which indicates whether the patch is currently in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) transition.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) What: /sys/kernel/livepatch/<patch>/force
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Date: Nov 2017
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) KernelVersion: 4.15.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) Contact: live-patching@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) A writable attribute that allows administrator to affect the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) course of an existing transition. Writing 1 clears
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) TIF_PATCH_PENDING flag of all tasks and thus forces the tasks to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) the patched or unpatched state. Administrator should not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) use this feature without a clearance from a patch
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) distributor. Removal (rmmod) of patch modules is permanently
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) disabled when the feature is used. See
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) Documentation/livepatch/livepatch.rst for more information.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) What: /sys/kernel/livepatch/<patch>/<object>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) Date: Nov 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) KernelVersion: 3.19.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) Contact: live-patching@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) The object directory contains subdirectories for each function
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) that is patched within the object.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) What: /sys/kernel/livepatch/<patch>/<object>/<function,sympos>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) Date: Nov 2014
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) KernelVersion: 3.19.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) Contact: live-patching@vger.kernel.org
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) The function directory contains attributes regarding the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) properties and state of the patched function.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) The directory name contains the patched function name and a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) sympos number corresponding to the nth occurrence of the symbol
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) name in kallsyms for the patched object.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) There are currently no such attributes.