sysfs-kernel-livepatch 2.5 KB

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