xref: /openbmc/linux/Documentation/ABI/testing/sysfs-kernel-livepatch (revision c99a2be790b07752d8cc694434d3450afd4c5a00)
1b700e7f0SSeth JenningsWhat:		/sys/kernel/livepatch
2b700e7f0SSeth JenningsDate:		Nov 2014
3b700e7f0SSeth JenningsKernelVersion:	3.19.0
4b700e7f0SSeth JenningsContact:	live-patching@vger.kernel.org
5b700e7f0SSeth JenningsDescription:
6b700e7f0SSeth Jennings		Interface for kernel live patching
7b700e7f0SSeth Jennings
8b700e7f0SSeth Jennings		The /sys/kernel/livepatch directory contains subdirectories for
9b700e7f0SSeth Jennings		each loaded live patch module.
10b700e7f0SSeth Jennings
11b700e7f0SSeth JenningsWhat:		/sys/kernel/livepatch/<patch>
12b700e7f0SSeth JenningsDate:		Nov 2014
13b700e7f0SSeth JenningsKernelVersion:	3.19.0
14b700e7f0SSeth JenningsContact:	live-patching@vger.kernel.org
15b700e7f0SSeth JenningsDescription:
16b700e7f0SSeth Jennings		The patch directory contains subdirectories for each kernel
17b700e7f0SSeth Jennings		object (vmlinux or a module) in which it patched functions.
18b700e7f0SSeth Jennings
19b700e7f0SSeth JenningsWhat:		/sys/kernel/livepatch/<patch>/enabled
20b700e7f0SSeth JenningsDate:		Nov 2014
21b700e7f0SSeth JenningsKernelVersion:	3.19.0
22b700e7f0SSeth JenningsContact:	live-patching@vger.kernel.org
23b700e7f0SSeth JenningsDescription:
24b700e7f0SSeth Jennings		A writable attribute that indicates whether the patched
25b700e7f0SSeth Jennings		code is currently applied.  Writing 0 will disable the patch
26b700e7f0SSeth Jennings		while writing 1 will re-enable the patch.
27b700e7f0SSeth Jennings
28d83a7cb3SJosh PoimboeufWhat:		/sys/kernel/livepatch/<patch>/transition
29d83a7cb3SJosh PoimboeufDate:		Feb 2017
30d83a7cb3SJosh PoimboeufKernelVersion:	4.12.0
31d83a7cb3SJosh PoimboeufContact:	live-patching@vger.kernel.org
32d83a7cb3SJosh PoimboeufDescription:
33d83a7cb3SJosh Poimboeuf		An attribute which indicates whether the patch is currently in
34d83a7cb3SJosh Poimboeuf		transition.
35d83a7cb3SJosh Poimboeuf
3643347d56SMiroslav BenesWhat:		/sys/kernel/livepatch/<patch>/signal
3743347d56SMiroslav BenesDate:		Nov 2017
3843347d56SMiroslav BenesKernelVersion:	4.15.0
3943347d56SMiroslav BenesContact:	live-patching@vger.kernel.org
4043347d56SMiroslav BenesDescription:
4143347d56SMiroslav Benes		A writable attribute that allows administrator to affect the
4243347d56SMiroslav Benes		course of an existing transition. Writing 1 sends a fake
4343347d56SMiroslav Benes		signal to all remaining blocking tasks. The fake signal
4443347d56SMiroslav Benes		means that no proper signal is delivered (there is no data in
4543347d56SMiroslav Benes		signal pending structures). Tasks are interrupted or woken up,
4643347d56SMiroslav Benes		and forced to change their patched state.
4743347d56SMiroslav Benes
48*c99a2be7SMiroslav BenesWhat:		/sys/kernel/livepatch/<patch>/force
49*c99a2be7SMiroslav BenesDate:		Nov 2017
50*c99a2be7SMiroslav BenesKernelVersion:	4.15.0
51*c99a2be7SMiroslav BenesContact:	live-patching@vger.kernel.org
52*c99a2be7SMiroslav BenesDescription:
53*c99a2be7SMiroslav Benes		A writable attribute that allows administrator to affect the
54*c99a2be7SMiroslav Benes		course of an existing transition. Writing 1 clears
55*c99a2be7SMiroslav Benes		TIF_PATCH_PENDING flag of all tasks and thus forces the tasks to
56*c99a2be7SMiroslav Benes		the patched or unpatched state. Administrator should not
57*c99a2be7SMiroslav Benes		use this feature without a clearance from a patch
58*c99a2be7SMiroslav Benes		distributor. Removal (rmmod) of patch modules is permanently
59*c99a2be7SMiroslav Benes		disabled when the feature is used. See
60*c99a2be7SMiroslav Benes		Documentation/livepatch/livepatch.txt for more information.
61*c99a2be7SMiroslav Benes
62b700e7f0SSeth JenningsWhat:		/sys/kernel/livepatch/<patch>/<object>
63b700e7f0SSeth JenningsDate:		Nov 2014
64b700e7f0SSeth JenningsKernelVersion:	3.19.0
65b700e7f0SSeth JenningsContact:	live-patching@vger.kernel.org
66b700e7f0SSeth JenningsDescription:
67b700e7f0SSeth Jennings		The object directory contains subdirectories for each function
68b700e7f0SSeth Jennings		that is patched within the object.
69b700e7f0SSeth Jennings
70444f9e99SChris J ArgesWhat:		/sys/kernel/livepatch/<patch>/<object>/<function,sympos>
71b700e7f0SSeth JenningsDate:		Nov 2014
72b700e7f0SSeth JenningsKernelVersion:	3.19.0
73b700e7f0SSeth JenningsContact:	live-patching@vger.kernel.org
74b700e7f0SSeth JenningsDescription:
75b700e7f0SSeth Jennings		The function directory contains attributes regarding the
76b700e7f0SSeth Jennings		properties and state of the patched function.
77b700e7f0SSeth Jennings
78444f9e99SChris J Arges		The directory name contains the patched function name and a
79444f9e99SChris J Arges		sympos number corresponding to the nth occurrence of the symbol
80444f9e99SChris J Arges		name in kallsyms for the patched object.
81444f9e99SChris J Arges
82b700e7f0SSeth Jennings		There are currently no such attributes.
83