Skip to content

add sysfs entry "patched" for each klp_object

Song Liu live-patching lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 6 repliesSuperseded
  3. v1 RFC1 patch 4 repliesSuperseded

Changes in v3 from the cover letter

1. Improve selftest. (Petr Mladek and Joe Lawrence)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2livepatch: add sysfs entry "patched" for each klp_objectDocumentation/ABI/testing/sysfs-kernel-livepatch kernel/livepatch/core.c+26 -01 reply
2/2selftests/livepatch: add sysfs testtools/testing/selftests/livepatch/Makefile tools/testing/selftests/livepatch/functions.sh tools/testing/selftests/livepatch/test-sysfs.sh+122 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJoe LawrencePetr Mladek
SeriesR-b
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] add sysfs entry "patched" for each klp_object

I was debugging an issue that a livepatch appears to be attached, but actually not. It turns out that there is a mismatch in module name (abc-xyz vs. abc_xyz), klp_find_object_module failed to find the module. Add a sysfs entry for each klp_object, so that it is easier to debug such issues.

Changes v2 => v3:
1. Improve selftest. (Petr Mladek and Joe Lawrence)

Changes v1 => v2:
1. Add selftest. (Petr Mladek)
2. Update documentation. (Petr Mladek)
3. Use sysfs_emit. (Petr Mladek)

Song Liu (2):
livepatch: add sysfs entry "patched" for each klp_object selftests/livepatch: add sysfs test

 .../ABI/testing/sysfs-kernel-livepatch        |  8 ++
 kernel/livepatch/core.c                       | 18 ++++
 tools/testing/selftests/livepatch/Makefile    |  3 +-
 .../testing/selftests/livepatch/functions.sh  | 34 ++++++++
 .../testing/selftests/livepatch/test-sysfs.sh | 86 +++++++++++++++++++
 5 files changed, 148 insertions(+), 1 deletion(-)
 create mode 100755 tools/testing/selftests/livepatch/test-sysfs.sh

--
2.30.2