]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop revert-parisc-fix-patch-code-locking-and-flushing.patch
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 14:16:51 +0000 (16:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 14:16:51 +0000 (16:16 +0200)
queue-5.10/revert-parisc-fix-patch-code-locking-and-flushing.patch [deleted file]
queue-5.10/series
queue-5.15/revert-parisc-fix-patch-code-locking-and-flushing.patch [deleted file]
queue-5.15/series
queue-5.17/revert-parisc-fix-patch-code-locking-and-flushing.patch [deleted file]
queue-5.17/series
queue-5.4/revert-parisc-fix-patch-code-locking-and-flushing.patch [deleted file]
queue-5.4/series

diff --git a/queue-5.10/revert-parisc-fix-patch-code-locking-and-flushing.patch b/queue-5.10/revert-parisc-fix-patch-code-locking-and-flushing.patch
deleted file mode 100644 (file)
index 9bcba6f..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-From 6c800d7f55fcd78e17deae5ae4374d8e73482c13 Mon Sep 17 00:00:00 2001
-From: Helge Deller <deller@gmx.de>
-Date: Sun, 8 May 2022 10:18:40 +0200
-Subject: Revert "parisc: Fix patch code locking and flushing"
-
-From: Helge Deller <deller@gmx.de>
-
-commit 6c800d7f55fcd78e17deae5ae4374d8e73482c13 upstream.
-
-This reverts commit a9fe7fa7d874a536e0540469f314772c054a0323.
-
-Leads to segfaults on 32bit kernel.
-
-Signed-off-by: Helge Deller <deller@gmx.de>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/parisc/kernel/patch.c |   25 ++++++++++++++-----------
- 1 file changed, 14 insertions(+), 11 deletions(-)
-
---- a/arch/parisc/kernel/patch.c
-+++ b/arch/parisc/kernel/patch.c
-@@ -40,7 +40,10 @@ static void __kprobes *patch_map(void *a
-       *need_unmap = 1;
-       set_fixmap(fixmap, page_to_phys(page));
--      raw_spin_lock_irqsave(&patch_lock, *flags);
-+      if (flags)
-+              raw_spin_lock_irqsave(&patch_lock, *flags);
-+      else
-+              __acquire(&patch_lock);
-       return (void *) (__fix_to_virt(fixmap) + (uintaddr & ~PAGE_MASK));
- }
-@@ -49,7 +52,10 @@ static void __kprobes patch_unmap(int fi
- {
-       clear_fixmap(fixmap);
--      raw_spin_unlock_irqrestore(&patch_lock, *flags);
-+      if (flags)
-+              raw_spin_unlock_irqrestore(&patch_lock, *flags);
-+      else
-+              __release(&patch_lock);
- }
- void __kprobes __patch_text_multiple(void *addr, u32 *insn, unsigned int len)
-@@ -61,9 +67,8 @@ void __kprobes __patch_text_multiple(voi
-       int mapped;
-       /* Make sure we don't have any aliases in cache */
--      flush_kernel_dcache_range_asm(start, end);
--      flush_kernel_icache_range_asm(start, end);
--      flush_tlb_kernel_range(start, end);
-+      flush_kernel_vmap_range(addr, len);
-+      flush_icache_range(start, end);
-       p = fixmap = patch_map(addr, FIX_TEXT_POKE0, &flags, &mapped);
-@@ -76,10 +81,8 @@ void __kprobes __patch_text_multiple(voi
-                        * We're crossing a page boundary, so
-                        * need to remap
-                        */
--                      flush_kernel_dcache_range_asm((unsigned long)fixmap,
--                                                    (unsigned long)p);
--                      flush_tlb_kernel_range((unsigned long)fixmap,
--                                             (unsigned long)p);
-+                      flush_kernel_vmap_range((void *)fixmap,
-+                                              (p-fixmap) * sizeof(*p));
-                       if (mapped)
-                               patch_unmap(FIX_TEXT_POKE0, &flags);
-                       p = fixmap = patch_map(addr, FIX_TEXT_POKE0, &flags,
-@@ -87,10 +90,10 @@ void __kprobes __patch_text_multiple(voi
-               }
-       }
--      flush_kernel_dcache_range_asm((unsigned long)fixmap, (unsigned long)p);
--      flush_tlb_kernel_range((unsigned long)fixmap, (unsigned long)p);
-+      flush_kernel_vmap_range((void *)fixmap, (p-fixmap) * sizeof(*p));
-       if (mapped)
-               patch_unmap(FIX_TEXT_POKE0, &flags);
-+      flush_icache_range(start, end);
- }
- void __kprobes __patch_text(void *addr, u32 insn)
index b81b12f2c728f05b014d23168b84d486d10145d9..5f75126e4083f8cd166d0f7cc7c7627d37160744 100644 (file)
@@ -1,5 +1,4 @@
 mips-fix-cp0-counter-erratum-detection-for-r4k-cpus.patch
-revert-parisc-fix-patch-code-locking-and-flushing.patch
 parisc-merge-model-and-model-name-into-one-line-in-proc-cpuinfo.patch
 alsa-hda-realtek-add-quirk-for-yoga-duet-7-13itl6-speakers.patch
 alsa-fireworks-fix-wrong-return-count-shorter-than-expected-by-4-bytes.patch
diff --git a/queue-5.15/revert-parisc-fix-patch-code-locking-and-flushing.patch b/queue-5.15/revert-parisc-fix-patch-code-locking-and-flushing.patch
deleted file mode 100644 (file)
index 9bcba6f..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-From 6c800d7f55fcd78e17deae5ae4374d8e73482c13 Mon Sep 17 00:00:00 2001
-From: Helge Deller <deller@gmx.de>
-Date: Sun, 8 May 2022 10:18:40 +0200
-Subject: Revert "parisc: Fix patch code locking and flushing"
-
-From: Helge Deller <deller@gmx.de>
-
-commit 6c800d7f55fcd78e17deae5ae4374d8e73482c13 upstream.
-
-This reverts commit a9fe7fa7d874a536e0540469f314772c054a0323.
-
-Leads to segfaults on 32bit kernel.
-
-Signed-off-by: Helge Deller <deller@gmx.de>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/parisc/kernel/patch.c |   25 ++++++++++++++-----------
- 1 file changed, 14 insertions(+), 11 deletions(-)
-
---- a/arch/parisc/kernel/patch.c
-+++ b/arch/parisc/kernel/patch.c
-@@ -40,7 +40,10 @@ static void __kprobes *patch_map(void *a
-       *need_unmap = 1;
-       set_fixmap(fixmap, page_to_phys(page));
--      raw_spin_lock_irqsave(&patch_lock, *flags);
-+      if (flags)
-+              raw_spin_lock_irqsave(&patch_lock, *flags);
-+      else
-+              __acquire(&patch_lock);
-       return (void *) (__fix_to_virt(fixmap) + (uintaddr & ~PAGE_MASK));
- }
-@@ -49,7 +52,10 @@ static void __kprobes patch_unmap(int fi
- {
-       clear_fixmap(fixmap);
--      raw_spin_unlock_irqrestore(&patch_lock, *flags);
-+      if (flags)
-+              raw_spin_unlock_irqrestore(&patch_lock, *flags);
-+      else
-+              __release(&patch_lock);
- }
- void __kprobes __patch_text_multiple(void *addr, u32 *insn, unsigned int len)
-@@ -61,9 +67,8 @@ void __kprobes __patch_text_multiple(voi
-       int mapped;
-       /* Make sure we don't have any aliases in cache */
--      flush_kernel_dcache_range_asm(start, end);
--      flush_kernel_icache_range_asm(start, end);
--      flush_tlb_kernel_range(start, end);
-+      flush_kernel_vmap_range(addr, len);
-+      flush_icache_range(start, end);
-       p = fixmap = patch_map(addr, FIX_TEXT_POKE0, &flags, &mapped);
-@@ -76,10 +81,8 @@ void __kprobes __patch_text_multiple(voi
-                        * We're crossing a page boundary, so
-                        * need to remap
-                        */
--                      flush_kernel_dcache_range_asm((unsigned long)fixmap,
--                                                    (unsigned long)p);
--                      flush_tlb_kernel_range((unsigned long)fixmap,
--                                             (unsigned long)p);
-+                      flush_kernel_vmap_range((void *)fixmap,
-+                                              (p-fixmap) * sizeof(*p));
-                       if (mapped)
-                               patch_unmap(FIX_TEXT_POKE0, &flags);
-                       p = fixmap = patch_map(addr, FIX_TEXT_POKE0, &flags,
-@@ -87,10 +90,10 @@ void __kprobes __patch_text_multiple(voi
-               }
-       }
--      flush_kernel_dcache_range_asm((unsigned long)fixmap, (unsigned long)p);
--      flush_tlb_kernel_range((unsigned long)fixmap, (unsigned long)p);
-+      flush_kernel_vmap_range((void *)fixmap, (p-fixmap) * sizeof(*p));
-       if (mapped)
-               patch_unmap(FIX_TEXT_POKE0, &flags);
-+      flush_icache_range(start, end);
- }
- void __kprobes __patch_text(void *addr, u32 insn)
index 9d4d5c319cee138e40ef69b20ae04b788e2591d3..47491a0a738ddc216f80338a7af940fbbd95bb8b 100644 (file)
@@ -1,5 +1,4 @@
 mips-fix-cp0-counter-erratum-detection-for-r4k-cpus.patch
-revert-parisc-fix-patch-code-locking-and-flushing.patch
 parisc-merge-model-and-model-name-into-one-line-in-proc-cpuinfo.patch
 alsa-hda-realtek-add-quirk-for-yoga-duet-7-13itl6-speakers.patch
 alsa-fireworks-fix-wrong-return-count-shorter-than-expected-by-4-bytes.patch
diff --git a/queue-5.17/revert-parisc-fix-patch-code-locking-and-flushing.patch b/queue-5.17/revert-parisc-fix-patch-code-locking-and-flushing.patch
deleted file mode 100644 (file)
index 9bcba6f..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-From 6c800d7f55fcd78e17deae5ae4374d8e73482c13 Mon Sep 17 00:00:00 2001
-From: Helge Deller <deller@gmx.de>
-Date: Sun, 8 May 2022 10:18:40 +0200
-Subject: Revert "parisc: Fix patch code locking and flushing"
-
-From: Helge Deller <deller@gmx.de>
-
-commit 6c800d7f55fcd78e17deae5ae4374d8e73482c13 upstream.
-
-This reverts commit a9fe7fa7d874a536e0540469f314772c054a0323.
-
-Leads to segfaults on 32bit kernel.
-
-Signed-off-by: Helge Deller <deller@gmx.de>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/parisc/kernel/patch.c |   25 ++++++++++++++-----------
- 1 file changed, 14 insertions(+), 11 deletions(-)
-
---- a/arch/parisc/kernel/patch.c
-+++ b/arch/parisc/kernel/patch.c
-@@ -40,7 +40,10 @@ static void __kprobes *patch_map(void *a
-       *need_unmap = 1;
-       set_fixmap(fixmap, page_to_phys(page));
--      raw_spin_lock_irqsave(&patch_lock, *flags);
-+      if (flags)
-+              raw_spin_lock_irqsave(&patch_lock, *flags);
-+      else
-+              __acquire(&patch_lock);
-       return (void *) (__fix_to_virt(fixmap) + (uintaddr & ~PAGE_MASK));
- }
-@@ -49,7 +52,10 @@ static void __kprobes patch_unmap(int fi
- {
-       clear_fixmap(fixmap);
--      raw_spin_unlock_irqrestore(&patch_lock, *flags);
-+      if (flags)
-+              raw_spin_unlock_irqrestore(&patch_lock, *flags);
-+      else
-+              __release(&patch_lock);
- }
- void __kprobes __patch_text_multiple(void *addr, u32 *insn, unsigned int len)
-@@ -61,9 +67,8 @@ void __kprobes __patch_text_multiple(voi
-       int mapped;
-       /* Make sure we don't have any aliases in cache */
--      flush_kernel_dcache_range_asm(start, end);
--      flush_kernel_icache_range_asm(start, end);
--      flush_tlb_kernel_range(start, end);
-+      flush_kernel_vmap_range(addr, len);
-+      flush_icache_range(start, end);
-       p = fixmap = patch_map(addr, FIX_TEXT_POKE0, &flags, &mapped);
-@@ -76,10 +81,8 @@ void __kprobes __patch_text_multiple(voi
-                        * We're crossing a page boundary, so
-                        * need to remap
-                        */
--                      flush_kernel_dcache_range_asm((unsigned long)fixmap,
--                                                    (unsigned long)p);
--                      flush_tlb_kernel_range((unsigned long)fixmap,
--                                             (unsigned long)p);
-+                      flush_kernel_vmap_range((void *)fixmap,
-+                                              (p-fixmap) * sizeof(*p));
-                       if (mapped)
-                               patch_unmap(FIX_TEXT_POKE0, &flags);
-                       p = fixmap = patch_map(addr, FIX_TEXT_POKE0, &flags,
-@@ -87,10 +90,10 @@ void __kprobes __patch_text_multiple(voi
-               }
-       }
--      flush_kernel_dcache_range_asm((unsigned long)fixmap, (unsigned long)p);
--      flush_tlb_kernel_range((unsigned long)fixmap, (unsigned long)p);
-+      flush_kernel_vmap_range((void *)fixmap, (p-fixmap) * sizeof(*p));
-       if (mapped)
-               patch_unmap(FIX_TEXT_POKE0, &flags);
-+      flush_icache_range(start, end);
- }
- void __kprobes __patch_text(void *addr, u32 insn)
index 4fcccf3817dd124cef0c5ee9a77fa355fd6684dd..8bbf482ee0e9f9f98515d70cddba25f8b1292a51 100644 (file)
@@ -2,7 +2,6 @@ pci_irq_vector-can-t-be-used-in-atomic-context-any-longer.-this-conflicts-with-t
 ipmi-when-handling-send-message-responses-don-t-process-the-message.patch
 ipmi-ipmi_ipmb-fix-null-ptr-deref-in-ipmi_unregister_smi.patch
 mips-fix-cp0-counter-erratum-detection-for-r4k-cpus.patch
-revert-parisc-fix-patch-code-locking-and-flushing.patch
 revert-parisc-mark-cr16-cpu-clocksource-unstable-on-all-smp-machines.patch
 revert-parisc-mark-sched_clock-unstable-only-if-clocks-are-not-syncronized.patch
 parisc-merge-model-and-model-name-into-one-line-in-proc-cpuinfo.patch
diff --git a/queue-5.4/revert-parisc-fix-patch-code-locking-and-flushing.patch b/queue-5.4/revert-parisc-fix-patch-code-locking-and-flushing.patch
deleted file mode 100644 (file)
index 9bcba6f..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-From 6c800d7f55fcd78e17deae5ae4374d8e73482c13 Mon Sep 17 00:00:00 2001
-From: Helge Deller <deller@gmx.de>
-Date: Sun, 8 May 2022 10:18:40 +0200
-Subject: Revert "parisc: Fix patch code locking and flushing"
-
-From: Helge Deller <deller@gmx.de>
-
-commit 6c800d7f55fcd78e17deae5ae4374d8e73482c13 upstream.
-
-This reverts commit a9fe7fa7d874a536e0540469f314772c054a0323.
-
-Leads to segfaults on 32bit kernel.
-
-Signed-off-by: Helge Deller <deller@gmx.de>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- arch/parisc/kernel/patch.c |   25 ++++++++++++++-----------
- 1 file changed, 14 insertions(+), 11 deletions(-)
-
---- a/arch/parisc/kernel/patch.c
-+++ b/arch/parisc/kernel/patch.c
-@@ -40,7 +40,10 @@ static void __kprobes *patch_map(void *a
-       *need_unmap = 1;
-       set_fixmap(fixmap, page_to_phys(page));
--      raw_spin_lock_irqsave(&patch_lock, *flags);
-+      if (flags)
-+              raw_spin_lock_irqsave(&patch_lock, *flags);
-+      else
-+              __acquire(&patch_lock);
-       return (void *) (__fix_to_virt(fixmap) + (uintaddr & ~PAGE_MASK));
- }
-@@ -49,7 +52,10 @@ static void __kprobes patch_unmap(int fi
- {
-       clear_fixmap(fixmap);
--      raw_spin_unlock_irqrestore(&patch_lock, *flags);
-+      if (flags)
-+              raw_spin_unlock_irqrestore(&patch_lock, *flags);
-+      else
-+              __release(&patch_lock);
- }
- void __kprobes __patch_text_multiple(void *addr, u32 *insn, unsigned int len)
-@@ -61,9 +67,8 @@ void __kprobes __patch_text_multiple(voi
-       int mapped;
-       /* Make sure we don't have any aliases in cache */
--      flush_kernel_dcache_range_asm(start, end);
--      flush_kernel_icache_range_asm(start, end);
--      flush_tlb_kernel_range(start, end);
-+      flush_kernel_vmap_range(addr, len);
-+      flush_icache_range(start, end);
-       p = fixmap = patch_map(addr, FIX_TEXT_POKE0, &flags, &mapped);
-@@ -76,10 +81,8 @@ void __kprobes __patch_text_multiple(voi
-                        * We're crossing a page boundary, so
-                        * need to remap
-                        */
--                      flush_kernel_dcache_range_asm((unsigned long)fixmap,
--                                                    (unsigned long)p);
--                      flush_tlb_kernel_range((unsigned long)fixmap,
--                                             (unsigned long)p);
-+                      flush_kernel_vmap_range((void *)fixmap,
-+                                              (p-fixmap) * sizeof(*p));
-                       if (mapped)
-                               patch_unmap(FIX_TEXT_POKE0, &flags);
-                       p = fixmap = patch_map(addr, FIX_TEXT_POKE0, &flags,
-@@ -87,10 +90,10 @@ void __kprobes __patch_text_multiple(voi
-               }
-       }
--      flush_kernel_dcache_range_asm((unsigned long)fixmap, (unsigned long)p);
--      flush_tlb_kernel_range((unsigned long)fixmap, (unsigned long)p);
-+      flush_kernel_vmap_range((void *)fixmap, (p-fixmap) * sizeof(*p));
-       if (mapped)
-               patch_unmap(FIX_TEXT_POKE0, &flags);
-+      flush_icache_range(start, end);
- }
- void __kprobes __patch_text(void *addr, u32 insn)
index e9dac8dd2079a304d02ee63ec06f999e76bf8d82..c95811ea833573c851d760abb24b3dcf4f2d91dc 100644 (file)
@@ -1,5 +1,4 @@
 mips-fix-cp0-counter-erratum-detection-for-r4k-cpus.patch
-revert-parisc-fix-patch-code-locking-and-flushing.patch
 parisc-merge-model-and-model-name-into-one-line-in-proc-cpuinfo.patch
 alsa-fireworks-fix-wrong-return-count-shorter-than-expected-by-4-bytes.patch
 gpiolib-of-fix-bounds-check-for-gpio-reserved-ranges.patch