public inbox for live-patching@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] kselftests: livepatch: Adapt tests to be executed on 4.12 kernels
@ 2026-03-13 20:58 Marcos Paulo de Souza
  2026-03-13 20:58 ` [PATCH 1/8] selftests: livepatch: test-syscall: Check for ARCH_HAS_SYSCALL_WRAPPER Marcos Paulo de Souza
                   ` (8 more replies)
  0 siblings, 9 replies; 29+ messages in thread
From: Marcos Paulo de Souza @ 2026-03-13 20:58 UTC (permalink / raw)
  To: Josh Poimboeuf, Jiri Kosina, Miroslav Benes, Petr Mladek,
	Joe Lawrence, Shuah Khan
  Cc: live-patching, linux-kselftest, linux-kernel,
	Marcos Paulo de Souza

These patches don't really change how the patches are run, just skip
some tests on kernels that don't support a feature (like kprobe and
livepatched living together) or when a livepatch sysfs attribute is
missing.

The last patch slightly adjusts check_result function to skip dmesg
messages on SLE kernels when a livepatch is removed.

These patches are based on printk/for-next branch.

Please review! Thanks!

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
---
Marcos Paulo de Souza (8):
      selftests: livepatch: test-syscall: Check for ARCH_HAS_SYSCALL_WRAPPER
      selftests: livepatch: test-kprobe: Replace true/false mod param by 1/0
      selftests: livepatch: test-kprobe: Check if kprobes can work with livepatches
      selftests: livepatch: functions: Introduce check_sysfs_exists
      selftests: livepatch: sysfs: Split tests of replace attribute
      selftests: livepatch: sysfs: Split tests of stack_order attribute
      selftests: livepatch: sysfs: Split tests of patched attribute
      selftests: livepatch: functions.sh: Extend check for taint flag kernel message

 tools/testing/selftests/livepatch/Makefile         |   3 +
 tools/testing/selftests/livepatch/functions.sh     |  16 +-
 tools/testing/selftests/livepatch/test-kprobe.sh   |  54 ++++---
 .../selftests/livepatch/test-sysfs-patched-attr.sh |  95 ++++++++++++
 .../selftests/livepatch/test-sysfs-replace-attr.sh |  75 ++++++++++
 .../selftests/livepatch/test-sysfs-stack-attr.sh   | 121 +++++++++++++++
 tools/testing/selftests/livepatch/test-sysfs.sh    | 164 ---------------------
 .../livepatch/test_modules/test_klp_syscall.c      |   7 +-
 8 files changed, 344 insertions(+), 191 deletions(-)
---
base-commit: 920e5001f4beb38685d5b8cac061cb1d2760eeab
change-id: 20260309-lp-tests-old-fixes-f955abc8ec27

Best regards,
--  
Marcos Paulo de Souza <mpdesouza@suse.com>


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2026-03-27 13:43 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13 20:58 [PATCH 0/8] kselftests: livepatch: Adapt tests to be executed on 4.12 kernels Marcos Paulo de Souza
2026-03-13 20:58 ` [PATCH 1/8] selftests: livepatch: test-syscall: Check for ARCH_HAS_SYSCALL_WRAPPER Marcos Paulo de Souza
2026-03-16 20:12   ` Joe Lawrence
2026-03-19 12:54     ` Miroslav Benes
2026-03-19 14:11       ` Marcos Paulo de Souza
2026-03-20 10:45         ` Miroslav Benes
2026-03-27 13:24           ` Marcos Paulo de Souza
2026-03-27 13:16     ` Marcos Paulo de Souza
2026-03-13 20:58 ` [PATCH 2/8] selftests: livepatch: test-kprobe: Replace true/false mod param by 1/0 Marcos Paulo de Souza
2026-03-19 13:03   ` Miroslav Benes
2026-03-19 14:16     ` Marcos Paulo de Souza
2026-03-20 11:18       ` Miroslav Benes
2026-03-13 20:58 ` [PATCH 3/8] selftests: livepatch: test-kprobe: Check if kprobes can work with livepatches Marcos Paulo de Souza
2026-03-16 20:38   ` Joe Lawrence
2026-03-19 14:35     ` Marcos Paulo de Souza
2026-03-20 11:33       ` Petr Mladek
2026-03-27 13:43         ` Marcos Paulo de Souza
2026-03-13 20:58 ` [PATCH 4/8] selftests: livepatch: functions: Introduce check_sysfs_exists Marcos Paulo de Souza
2026-03-16 20:47   ` Joe Lawrence
2026-03-13 20:58 ` [PATCH 5/8] selftests: livepatch: sysfs: Split tests of replace attribute Marcos Paulo de Souza
2026-03-20 13:03   ` Miroslav Benes
2026-03-20 13:12   ` Petr Mladek
2026-03-13 20:58 ` [PATCH 6/8] selftests: livepatch: sysfs: Split tests of stack_order attribute Marcos Paulo de Souza
2026-03-13 20:58 ` [PATCH 7/8] selftests: livepatch: sysfs: Split tests of patched attribute Marcos Paulo de Souza
2026-03-13 20:58 ` [PATCH 8/8] selftests: livepatch: functions.sh: Extend check for taint flag kernel message Marcos Paulo de Souza
2026-03-20 13:04   ` Miroslav Benes
2026-03-20 13:26   ` Petr Mladek
2026-03-20 13:41     ` Marcos Paulo de Souza
2026-03-20 13:31 ` [PATCH 0/8] kselftests: livepatch: Adapt tests to be executed on 4.12 kernels Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox