1 What: /sys/kernel/livepatch
4 Contact: live-patching@vger.kernel.org
6 Interface for kernel live patching
8 The /sys/kernel/livepatch directory contains subdirectories for
9 each loaded live patch module.
11 What: /sys/kernel/livepatch/<patch>
14 Contact: live-patching@vger.kernel.org
16 The patch directory contains subdirectories for each kernel
17 object (vmlinux or a module) in which it patched functions.
19 What: /sys/kernel/livepatch/<patch>/enabled
22 Contact: live-patching@vger.kernel.org
24 A writable attribute that indicates whether the patched
25 code is currently applied. Writing 0 will disable the patch
26 while writing 1 will re-enable the patch.
28 What: /sys/kernel/livepatch/<patch>/transition
31 Contact: live-patching@vger.kernel.org
33 An attribute which indicates whether the patch is currently in
36 What: /sys/kernel/livepatch/<patch>/signal
39 Contact: live-patching@vger.kernel.org
41 A writable attribute that allows administrator to affect the
42 course of an existing transition. Writing 1 sends a fake
43 signal to all remaining blocking tasks. The fake signal
44 means that no proper signal is delivered (there is no data in
45 signal pending structures). Tasks are interrupted or woken up,
46 and forced to change their patched state.
48 What: /sys/kernel/livepatch/<patch>/force
51 Contact: live-patching@vger.kernel.org
53 A writable attribute that allows administrator to affect the
54 course of an existing transition. Writing 1 clears
55 TIF_PATCH_PENDING flag of all tasks and thus forces the tasks to
56 the patched or unpatched state. Administrator should not
57 use this feature without a clearance from a patch
58 distributor. Removal (rmmod) of patch modules is permanently
59 disabled when the feature is used. See
60 Documentation/livepatch/livepatch.txt for more information.
62 What: /sys/kernel/livepatch/<patch>/<object>
65 Contact: live-patching@vger.kernel.org
67 The object directory contains subdirectories for each function
68 that is patched within the object.
70 What: /sys/kernel/livepatch/<patch>/<object>/<function,sympos>
73 Contact: live-patching@vger.kernel.org
75 The function directory contains attributes regarding the
76 properties and state of the patched function.
78 The directory name contains the patched function name and a
79 sympos number corresponding to the nth occurrence of the symbol
80 name in kallsyms for the patched object.
82 There are currently no such attributes.