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