]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up selftests-livepatch-better-synchronize-test_klp_call.patch to apply using...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Aug 2022 09:40:26 +0000 (11:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Aug 2022 09:40:26 +0000 (11:40 +0200)
queue-5.10/selftests-livepatch-better-synchronize-test_klp_call.patch
queue-5.15/selftests-livepatch-better-synchronize-test_klp_call.patch
queue-5.18/selftests-livepatch-better-synchronize-test_klp_call.patch
queue-5.19/selftests-livepatch-better-synchronize-test_klp_call.patch

index c54039b063d5a5d9d33ca2ec44574f40407b82b1..fdc75c35f1c9ff7e76241a4f402153c11b90121b 100644 (file)
@@ -18,17 +18,17 @@ function entry message before subsequent selftest commands log their own
 messages.  This can lead to a rare test failure due to unexpected
 ordering like:
 
-  --- expected
-  +++ result
-  @@ -1,7 +1,7 @@
-   % modprobe test_klp_callbacks_busy block_transition=Y
-   test_klp_callbacks_busy: test_klp_callbacks_busy_init
-  -test_klp_callbacks_busy: busymod_work_func enter
-   % modprobe test_klp_callbacks_demo
-  +test_klp_callbacks_busy: busymod_work_func enter
-   livepatch: enabling patch 'test_klp_callbacks_demo'
-   livepatch: 'test_klp_callbacks_demo': initializing patching transition
-   test_klp_callbacks_demo: pre_patch_callback: vmlinux
+#  --- expected
+#  +++ result
+#  @@ -1,7 +1,7 @@
+#   % modprobe test_klp_callbacks_busy block_transition=Y
+#   test_klp_callbacks_busy: test_klp_callbacks_busy_init
+#  -test_klp_callbacks_busy: busymod_work_func enter
+#   % modprobe test_klp_callbacks_demo
+#  +test_klp_callbacks_busy: busymod_work_func enter
+#   livepatch: enabling patch 'test_klp_callbacks_demo'
+#   livepatch: 'test_klp_callbacks_demo': initializing patching transition
+#   test_klp_callbacks_demo: pre_patch_callback: vmlinux
 
 Force the module init function to wait until busymod_work_func() has
 started (and logged its message), before exiting to the next selftest
@@ -41,14 +41,12 @@ Signed-off-by: Petr Mladek <pmladek@suse.com>
 Link: https://lore.kernel.org/r/20220602203233.979681-1-joe.lawrence@redhat.com
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- lib/livepatch/test_klp_callbacks_busy.c | 8 ++++++++
+ lib/livepatch/test_klp_callbacks_busy.c |    8 ++++++++
  1 file changed, 8 insertions(+)
 
-diff --git a/lib/livepatch/test_klp_callbacks_busy.c b/lib/livepatch/test_klp_callbacks_busy.c
-index 7ac845f65be5..133929e0ce8f 100644
 --- a/lib/livepatch/test_klp_callbacks_busy.c
 +++ b/lib/livepatch/test_klp_callbacks_busy.c
-@@ -16,10 +16,12 @@ MODULE_PARM_DESC(block_transition, "block_transition (default=false)");
+@@ -16,10 +16,12 @@ MODULE_PARM_DESC(block_transition, "bloc
  
  static void busymod_work_func(struct work_struct *work);
  static DECLARE_WORK(work, busymod_work_func);
@@ -61,7 +59,7 @@ index 7ac845f65be5..133929e0ce8f 100644
  
        while (READ_ONCE(block_transition)) {
                /*
-@@ -37,6 +39,12 @@ static int test_klp_callbacks_busy_init(void)
+@@ -37,6 +39,12 @@ static int test_klp_callbacks_busy_init(
        pr_info("%s\n", __func__);
        schedule_work(&work);
  
@@ -74,6 +72,3 @@ index 7ac845f65be5..133929e0ce8f 100644
        if (!block_transition) {
                /*
                 * Serialize output: print all messages from the work
--- 
-2.35.1
-
index 35b27125a3f64362b7e2be6b7f3583bae5019cbd..25ad96c39bc367aeeb5dc47eafd8fa5d00729879 100644 (file)
@@ -18,17 +18,17 @@ function entry message before subsequent selftest commands log their own
 messages.  This can lead to a rare test failure due to unexpected
 ordering like:
 
-  --- expected
-  +++ result
-  @@ -1,7 +1,7 @@
-   % modprobe test_klp_callbacks_busy block_transition=Y
-   test_klp_callbacks_busy: test_klp_callbacks_busy_init
-  -test_klp_callbacks_busy: busymod_work_func enter
-   % modprobe test_klp_callbacks_demo
-  +test_klp_callbacks_busy: busymod_work_func enter
-   livepatch: enabling patch 'test_klp_callbacks_demo'
-   livepatch: 'test_klp_callbacks_demo': initializing patching transition
-   test_klp_callbacks_demo: pre_patch_callback: vmlinux
+#  --- expected
+#  +++ result
+#  @@ -1,7 +1,7 @@
+#   % modprobe test_klp_callbacks_busy block_transition=Y
+#   test_klp_callbacks_busy: test_klp_callbacks_busy_init
+#  -test_klp_callbacks_busy: busymod_work_func enter
+#   % modprobe test_klp_callbacks_demo
+#  +test_klp_callbacks_busy: busymod_work_func enter
+#   livepatch: enabling patch 'test_klp_callbacks_demo'
+#   livepatch: 'test_klp_callbacks_demo': initializing patching transition
+#   test_klp_callbacks_demo: pre_patch_callback: vmlinux
 
 Force the module init function to wait until busymod_work_func() has
 started (and logged its message), before exiting to the next selftest
@@ -41,14 +41,12 @@ Signed-off-by: Petr Mladek <pmladek@suse.com>
 Link: https://lore.kernel.org/r/20220602203233.979681-1-joe.lawrence@redhat.com
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- lib/livepatch/test_klp_callbacks_busy.c | 8 ++++++++
+ lib/livepatch/test_klp_callbacks_busy.c |    8 ++++++++
  1 file changed, 8 insertions(+)
 
-diff --git a/lib/livepatch/test_klp_callbacks_busy.c b/lib/livepatch/test_klp_callbacks_busy.c
-index 7ac845f65be5..133929e0ce8f 100644
 --- a/lib/livepatch/test_klp_callbacks_busy.c
 +++ b/lib/livepatch/test_klp_callbacks_busy.c
-@@ -16,10 +16,12 @@ MODULE_PARM_DESC(block_transition, "block_transition (default=false)");
+@@ -16,10 +16,12 @@ MODULE_PARM_DESC(block_transition, "bloc
  
  static void busymod_work_func(struct work_struct *work);
  static DECLARE_WORK(work, busymod_work_func);
@@ -61,7 +59,7 @@ index 7ac845f65be5..133929e0ce8f 100644
  
        while (READ_ONCE(block_transition)) {
                /*
-@@ -37,6 +39,12 @@ static int test_klp_callbacks_busy_init(void)
+@@ -37,6 +39,12 @@ static int test_klp_callbacks_busy_init(
        pr_info("%s\n", __func__);
        schedule_work(&work);
  
@@ -74,6 +72,3 @@ index 7ac845f65be5..133929e0ce8f 100644
        if (!block_transition) {
                /*
                 * Serialize output: print all messages from the work
--- 
-2.35.1
-
index ec78b6ace29f03f2790ba5e924132a607260f9a4..8ef119b994718096dcf5f4c0a2634f819533e736 100644 (file)
@@ -18,17 +18,17 @@ function entry message before subsequent selftest commands log their own
 messages.  This can lead to a rare test failure due to unexpected
 ordering like:
 
-  --- expected
-  +++ result
-  @@ -1,7 +1,7 @@
-   % modprobe test_klp_callbacks_busy block_transition=Y
-   test_klp_callbacks_busy: test_klp_callbacks_busy_init
-  -test_klp_callbacks_busy: busymod_work_func enter
-   % modprobe test_klp_callbacks_demo
-  +test_klp_callbacks_busy: busymod_work_func enter
-   livepatch: enabling patch 'test_klp_callbacks_demo'
-   livepatch: 'test_klp_callbacks_demo': initializing patching transition
-   test_klp_callbacks_demo: pre_patch_callback: vmlinux
+#  --- expected
+#  +++ result
+#  @@ -1,7 +1,7 @@
+#   % modprobe test_klp_callbacks_busy block_transition=Y
+#   test_klp_callbacks_busy: test_klp_callbacks_busy_init
+#  -test_klp_callbacks_busy: busymod_work_func enter
+#   % modprobe test_klp_callbacks_demo
+#  +test_klp_callbacks_busy: busymod_work_func enter
+#   livepatch: enabling patch 'test_klp_callbacks_demo'
+#   livepatch: 'test_klp_callbacks_demo': initializing patching transition
+#   test_klp_callbacks_demo: pre_patch_callback: vmlinux
 
 Force the module init function to wait until busymod_work_func() has
 started (and logged its message), before exiting to the next selftest
@@ -41,14 +41,12 @@ Signed-off-by: Petr Mladek <pmladek@suse.com>
 Link: https://lore.kernel.org/r/20220602203233.979681-1-joe.lawrence@redhat.com
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- lib/livepatch/test_klp_callbacks_busy.c | 8 ++++++++
+ lib/livepatch/test_klp_callbacks_busy.c |    8 ++++++++
  1 file changed, 8 insertions(+)
 
-diff --git a/lib/livepatch/test_klp_callbacks_busy.c b/lib/livepatch/test_klp_callbacks_busy.c
-index 7ac845f65be5..133929e0ce8f 100644
 --- a/lib/livepatch/test_klp_callbacks_busy.c
 +++ b/lib/livepatch/test_klp_callbacks_busy.c
-@@ -16,10 +16,12 @@ MODULE_PARM_DESC(block_transition, "block_transition (default=false)");
+@@ -16,10 +16,12 @@ MODULE_PARM_DESC(block_transition, "bloc
  
  static void busymod_work_func(struct work_struct *work);
  static DECLARE_WORK(work, busymod_work_func);
@@ -61,7 +59,7 @@ index 7ac845f65be5..133929e0ce8f 100644
  
        while (READ_ONCE(block_transition)) {
                /*
-@@ -37,6 +39,12 @@ static int test_klp_callbacks_busy_init(void)
+@@ -37,6 +39,12 @@ static int test_klp_callbacks_busy_init(
        pr_info("%s\n", __func__);
        schedule_work(&work);
  
@@ -74,6 +72,3 @@ index 7ac845f65be5..133929e0ce8f 100644
        if (!block_transition) {
                /*
                 * Serialize output: print all messages from the work
--- 
-2.35.1
-
index 7cb025c1f6c73e76a8d0c4e53a6bd18c9f941097..3ac49f0aa3f9debda320f2d70ef7e6591d4659c8 100644 (file)
@@ -18,17 +18,17 @@ function entry message before subsequent selftest commands log their own
 messages.  This can lead to a rare test failure due to unexpected
 ordering like:
 
-  --- expected
-  +++ result
-  @@ -1,7 +1,7 @@
-   % modprobe test_klp_callbacks_busy block_transition=Y
-   test_klp_callbacks_busy: test_klp_callbacks_busy_init
-  -test_klp_callbacks_busy: busymod_work_func enter
-   % modprobe test_klp_callbacks_demo
-  +test_klp_callbacks_busy: busymod_work_func enter
-   livepatch: enabling patch 'test_klp_callbacks_demo'
-   livepatch: 'test_klp_callbacks_demo': initializing patching transition
-   test_klp_callbacks_demo: pre_patch_callback: vmlinux
+#  --- expected
+#  +++ result
+#  @@ -1,7 +1,7 @@
+#   % modprobe test_klp_callbacks_busy block_transition=Y
+#   test_klp_callbacks_busy: test_klp_callbacks_busy_init
+#  -test_klp_callbacks_busy: busymod_work_func enter
+#   % modprobe test_klp_callbacks_demo
+#  +test_klp_callbacks_busy: busymod_work_func enter
+#   livepatch: enabling patch 'test_klp_callbacks_demo'
+#   livepatch: 'test_klp_callbacks_demo': initializing patching transition
+#   test_klp_callbacks_demo: pre_patch_callback: vmlinux
 
 Force the module init function to wait until busymod_work_func() has
 started (and logged its message), before exiting to the next selftest