blob: bea7bd5a1d5fc01124c090ca457eac089f6a3c57 [file] [log] [blame]
Seth Jenningsb700e7f2014-12-16 11:58:19 -06001What: /sys/kernel/livepatch
2Date: Nov 2014
3KernelVersion: 3.19.0
4Contact: live-patching@vger.kernel.org
5Description:
6 Interface for kernel live patching
7
8 The /sys/kernel/livepatch directory contains subdirectories for
9 each loaded live patch module.
10
11What: /sys/kernel/livepatch/<patch>
12Date: Nov 2014
13KernelVersion: 3.19.0
14Contact: live-patching@vger.kernel.org
15Description:
16 The patch directory contains subdirectories for each kernel
17 object (vmlinux or a module) in which it patched functions.
18
19What: /sys/kernel/livepatch/<patch>/enabled
20Date: Nov 2014
21KernelVersion: 3.19.0
22Contact: live-patching@vger.kernel.org
23Description:
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
Josh Poimboeufd83a7cb2017-02-13 19:42:40 -060028What: /sys/kernel/livepatch/<patch>/transition
29Date: Feb 2017
30KernelVersion: 4.12.0
31Contact: live-patching@vger.kernel.org
32Description:
33 An attribute which indicates whether the patch is currently in
34 transition.
35
Miroslav Benesc99a2be2017-11-22 11:29:21 +010036What: /sys/kernel/livepatch/<patch>/force
37Date: Nov 2017
38KernelVersion: 4.15.0
39Contact: live-patching@vger.kernel.org
40Description:
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
Mauro Carvalho Chehab89e33ea2019-05-03 16:30:23 +020048 Documentation/livepatch/livepatch.rst for more information.
Miroslav Benesc99a2be2017-11-22 11:29:21 +010049
Seth Jenningsb700e7f2014-12-16 11:58:19 -060050What: /sys/kernel/livepatch/<patch>/<object>
51Date: Nov 2014
52KernelVersion: 3.19.0
53Contact: live-patching@vger.kernel.org
54Description:
55 The object directory contains subdirectories for each function
56 that is patched within the object.
57
Chris J Arges444f9e92015-12-01 20:40:56 -060058What: /sys/kernel/livepatch/<patch>/<object>/<function,sympos>
Seth Jenningsb700e7f2014-12-16 11:58:19 -060059Date: Nov 2014
60KernelVersion: 3.19.0
61Contact: live-patching@vger.kernel.org
62Description:
63 The function directory contains attributes regarding the
64 properties and state of the patched function.
65
Chris J Arges444f9e92015-12-01 20:40:56 -060066 The directory name contains the patched function name and a
67 sympos number corresponding to the nth occurrence of the symbol
68 name in kallsyms for the patched object.
69
Seth Jenningsb700e7f2014-12-16 11:58:19 -060070 There are currently no such attributes.