mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
selftests: livepatch: Replace true/false module parameter by y/n
Older kernels don't support true/false for boolean module parameters
because they lack commit 0d6ea3ac94
("lib/kstrtox.c: add "false"/"true" support to kstrtobool()"). Replace
true/false by y/n so the test module can be loaded on older kernels.
No functional changes.
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://patch.msgid.link/20260504-lp-tests-old-fixes-v5-2-0be26d94ab9a@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
This commit is contained in:
parent
f4f7140c70
commit
2724b28cb5
|
|
@ -20,11 +20,11 @@ start_test "livepatch interaction with kprobed function with post_handler"
|
|||
|
||||
echo 1 > "$SYSFS_KPROBES_DIR/enabled"
|
||||
|
||||
load_mod $MOD_KPROBE has_post_handler=true
|
||||
load_mod $MOD_KPROBE has_post_handler=y
|
||||
load_failing_mod $MOD_LIVEPATCH
|
||||
unload_mod $MOD_KPROBE
|
||||
|
||||
check_result "% insmod test_modules/test_klp_kprobe.ko has_post_handler=true
|
||||
check_result "% insmod test_modules/test_klp_kprobe.ko has_post_handler=y
|
||||
% insmod test_modules/$MOD_LIVEPATCH.ko
|
||||
livepatch: enabling patch '$MOD_LIVEPATCH'
|
||||
livepatch: '$MOD_LIVEPATCH': initializing patching transition
|
||||
|
|
@ -39,14 +39,14 @@ insmod: ERROR: could not insert module test_modules/$MOD_LIVEPATCH.ko: Device or
|
|||
|
||||
start_test "livepatch interaction with kprobed function without post_handler"
|
||||
|
||||
load_mod $MOD_KPROBE has_post_handler=false
|
||||
load_mod $MOD_KPROBE has_post_handler=n
|
||||
load_lp $MOD_LIVEPATCH
|
||||
|
||||
unload_mod $MOD_KPROBE
|
||||
disable_lp $MOD_LIVEPATCH
|
||||
unload_lp $MOD_LIVEPATCH
|
||||
|
||||
check_result "% insmod test_modules/test_klp_kprobe.ko has_post_handler=false
|
||||
check_result "% insmod test_modules/test_klp_kprobe.ko has_post_handler=n
|
||||
% insmod test_modules/$MOD_LIVEPATCH.ko
|
||||
livepatch: enabling patch '$MOD_LIVEPATCH'
|
||||
livepatch: '$MOD_LIVEPATCH': initializing patching transition
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user