Seth Jennings | b700e7f | 2014-12-16 11:58:19 -0600 | [diff] [blame] | 1 | What: /sys/kernel/livepatch |
| 2 | Date: Nov 2014 |
| 3 | KernelVersion: 3.19.0 |
| 4 | Contact: live-patching@vger.kernel.org |
| 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: live-patching@vger.kernel.org |
| 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: live-patching@vger.kernel.org |
| 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 | |
Josh Poimboeuf | d83a7cb | 2017-02-13 19:42:40 -0600 | [diff] [blame] | 28 | What: /sys/kernel/livepatch/<patch>/transition |
| 29 | Date: Feb 2017 |
| 30 | KernelVersion: 4.12.0 |
| 31 | Contact: live-patching@vger.kernel.org |
| 32 | Description: |
| 33 | An attribute which indicates whether the patch is currently in |
| 34 | transition. |
| 35 | |
Miroslav Benes | c99a2be | 2017-11-22 11:29:21 +0100 | [diff] [blame] | 36 | What: /sys/kernel/livepatch/<patch>/force |
| 37 | Date: Nov 2017 |
| 38 | KernelVersion: 4.15.0 |
| 39 | Contact: live-patching@vger.kernel.org |
| 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 |
Mauro Carvalho Chehab | 89e33ea | 2019-05-03 16:30:23 +0200 | [diff] [blame] | 48 | Documentation/livepatch/livepatch.rst for more information. |
Miroslav Benes | c99a2be | 2017-11-22 11:29:21 +0100 | [diff] [blame] | 49 | |
Seth Jennings | b700e7f | 2014-12-16 11:58:19 -0600 | [diff] [blame] | 50 | What: /sys/kernel/livepatch/<patch>/<object> |
| 51 | Date: Nov 2014 |
| 52 | KernelVersion: 3.19.0 |
| 53 | Contact: live-patching@vger.kernel.org |
| 54 | Description: |
| 55 | The object directory contains subdirectories for each function |
| 56 | that is patched within the object. |
| 57 | |
Chris J Arges | 444f9e9 | 2015-12-01 20:40:56 -0600 | [diff] [blame] | 58 | What: /sys/kernel/livepatch/<patch>/<object>/<function,sympos> |
Seth Jennings | b700e7f | 2014-12-16 11:58:19 -0600 | [diff] [blame] | 59 | Date: Nov 2014 |
| 60 | KernelVersion: 3.19.0 |
| 61 | Contact: live-patching@vger.kernel.org |
| 62 | Description: |
| 63 | The function directory contains attributes regarding the |
| 64 | properties and state of the patched function. |
| 65 | |
Chris J Arges | 444f9e9 | 2015-12-01 20:40:56 -0600 | [diff] [blame] | 66 | 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 Jennings | b700e7f | 2014-12-16 11:58:19 -0600 | [diff] [blame] | 70 | There are currently no such attributes. |