Skip to content

livepatch: Add "replace" sysfs attribute

Yafang Shao live-patching 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 2 repliesIn review
  2. v23 patches 18 repliesSuperseded

Changes in v3 from the cover letter

- Improve the commit log (Petr)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3livepatch: Add "replace" sysfs attributeDocumentation/ABI/testing/sysfs-kernel-livepatch kernel/livepatch/core.c+20 -00 replies
2/3selftests/livepatch: Add selftests for "replace" sysfs attributetools/testing/selftests/livepatch/test-sysfs.sh+48 -00 replies
3/3livepatch: Replace snprintf() with sysfs_emit()kernel/livepatch/core.c+2 -30 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPetr MladekMarcos Paulo de SouzaMiroslav Benes
SeriesA-b
1/3R-b
2/3R-b T-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/3] livepatch: Add "replace" sysfs attribute

There are situations when it might make sense to combine livepatches with and without the atomic replace on the same system. For example, the livepatch without the atomic replace might provide a hotfix or extra tuning.

Managing livepatches on such systems might be challenging. And the information which of the installed livepatches do not use the atomic replace would be useful. Therefore, "replace" sysfs attribute is added to show whether a livepatch supports atomic replace or not.

A minor cleanup is also included in this patchset.

v2->v3:
- Improve the commit log (Petr)

v1->v2: https://lore.kernel.org/live-patching/[email protected]/
- Refine the subject (Miroslav)
- Use sysfs_emit() instead and replace other snprintf() as well (Miroslav)
- Add selftests (Marcos)

v1: https://lore.kernel.org/live-patching/[email protected]/

Yafang Shao (3):
livepatch: Add "replace" sysfs attribute selftests/livepatch: Add selftests for "replace" sysfs attribute
livepatch: Replace snprintf() with sysfs_emit()

 .../ABI/testing/sysfs-kernel-livepatch        |  8 ++++
 kernel/livepatch/core.c                       | 17 +++++--
 .../testing/selftests/livepatch/test-sysfs.sh | 48 +++++++++++++++++++
 3 files changed, 70 insertions(+), 3 deletions(-)
Signature · 1 line
2.39.1