Debian Codegraph @

Documentation/ABI/testing/sysfs-kernel-livepatch

raw
1 What: /sys/kernel/livepatch
2 Date: Nov 2014
3 KernelVersion: 3.19.0
4 Contact: [email protected]
5 Description:
6 Interface for kernel live patching
7
8 The /sys/kernel/livepatch directory contains subdirectories for
9 each loaded live patch module.
10
11 What: /sys/kernel/livepatch/<patch>
12 Date: Nov 2014
13 KernelVersion: 3.19.0
14 Contact: [email protected]
15 Description:
16 The patch directory contains subdirectories for each kernel
17 object (vmlinux or a module) in which it patched functions.
18
19 What: /sys/kernel/livepatch/<patch>/enabled
20 Date: Nov 2014
21 KernelVersion: 3.19.0
22 Contact: [email protected]
23 Description:
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.
27
28 What: /sys/kernel/livepatch/<patch>/transition
29 Date: Feb 2017
30 KernelVersion: 4.12.0
31 Contact: [email protected]
32 Description:
33 An attribute which indicates whether the patch is currently in
34 transition.
35
36 What: /sys/kernel/livepatch/<patch>/force
37 Date: Nov 2017
38 KernelVersion: 4.15.0
39 Contact: [email protected]
40 Description:
41 A writable attribute that allows administrator to affect the
42 course of an existing transition. Writing 1 clears
43 TIF_PATCH_PENDING flag of all tasks and thus forces the tasks to
44 the patched or unpatched state. Administrator should not
45 use this feature without a clearance from a patch
46 distributor. Removal (rmmod) of patch modules is permanently
47 disabled when the feature is used. See
48 Documentation/livepatch/livepatch.rst for more information.
49
50 What: /sys/kernel/livepatch/<patch>/replace
51 Date: Jun 2024
52 KernelVersion: 6.11.0
53 Contact: [email protected]
54 Description:
55 An attribute which indicates whether the patch supports
56 atomic-replace.
57
58 What: /sys/kernel/livepatch/<patch>/stack_order
59 Date: Jan 2025
60 KernelVersion: 6.14.0
61 Description:
62 This attribute specifies the sequence in which live patch modules
63 are applied to the system. If multiple live patches modify the same
64 function, the implementation with the biggest 'stack_order' number
65 is used, unless a transition is currently in progress.
66
67 What: /sys/kernel/livepatch/<patch>/<object>
68 Date: Nov 2014
69 KernelVersion: 3.19.0
70 Contact: [email protected]
71 Description:
72 The object directory contains subdirectories for each function
73 that is patched within the object.
74
75 What: /sys/kernel/livepatch/<patch>/<object>/patched
76 Date: August 2022
77 KernelVersion: 6.1.0
78 Contact: [email protected]
79 Description:
80 An attribute which indicates whether the object is currently
81 patched.
82
83 What: /sys/kernel/livepatch/<patch>/<object>/<function,sympos>
84 Date: Nov 2014
85 KernelVersion: 3.19.0
86 Contact: [email protected]
87 Description:
88 The function directory contains attributes regarding the
89 properties and state of the patched function.
90
91 The directory name contains the patched function name and a
92 sympos number corresponding to the nth occurrence of the symbol
93 name in kallsyms for the patched object.
94
95 There are currently no such attributes.