]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop mm-slub-enable-slub_debug-static-key-when-creating-c.patch from everywhere
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 May 2021 18:49:02 +0000 (20:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 May 2021 18:49:02 +0000 (20:49 +0200)
queue-5.10/mm-slub-enable-slub_debug-static-key-when-creating-c.patch [deleted file]
queue-5.10/series
queue-5.11/mm-slub-enable-slub_debug-static-key-when-creating-c.patch [deleted file]
queue-5.11/series
queue-5.12/mm-slub-enable-slub_debug-static-key-when-creating-c.patch [deleted file]
queue-5.12/series

diff --git a/queue-5.10/mm-slub-enable-slub_debug-static-key-when-creating-c.patch b/queue-5.10/mm-slub-enable-slub_debug-static-key-when-creating-c.patch
deleted file mode 100644 (file)
index d55411a..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-From 689f91dbd37dff44ea786a3964d2b9f49cf87b00 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Thu, 29 Apr 2021 22:54:42 -0700
-Subject: mm, slub: enable slub_debug static key when creating cache with
- explicit debug flags
-
-From: Vlastimil Babka <vbabka@suse.cz>
-
-[ Upstream commit 1f0723a4c0df36cbdffc6fac82cd3c5d57e06d66 ]
-
-Commit ca0cab65ea2b ("mm, slub: introduce static key for slub_debug()")
-introduced a static key to optimize the case where no debugging is
-enabled for any cache.  The static key is enabled when slub_debug boot
-parameter is passed, or CONFIG_SLUB_DEBUG_ON enabled.
-
-However, some caches might be created with one or more debugging flags
-explicitly passed to kmem_cache_create(), and the commit missed this.
-Thus the debugging functionality would not be actually performed for
-these caches unless the static key gets enabled by boot param or config.
-
-This patch fixes it by checking for debugging flags passed to
-kmem_cache_create() and enabling the static key accordingly.
-
-Note such explicit debugging flags should not be used outside of
-debugging and testing as they will now enable the static key globally.
-btrfs_init_cachep() creates a cache with SLAB_RED_ZONE but that's a
-mistake that's being corrected [1].  rcu_torture_stats() creates a cache
-with SLAB_STORE_USER, but that is a testing module so it's OK and will
-start working as intended after this patch.
-
-Also note that in case of backports to kernels before v5.12 that don't
-have 59450bbc12be ("mm, slab, slub: stop taking cpu hotplug lock"),
-static_branch_enable_cpuslocked() should be used.
-
-[1] https://lore.kernel.org/linux-btrfs/20210315141824.26099-1-dsterba@suse.com/
-
-Link: https://lkml.kernel.org/r/20210315153415.24404-1-vbabka@suse.cz
-Fixes: ca0cab65ea2b ("mm, slub: introduce static key for slub_debug()")
-Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
-Reported-by: Oliver Glitta <glittao@gmail.com>
-Acked-by: David Rientjes <rientjes@google.com>
-Cc: Christoph Lameter <cl@linux.com>
-Cc: Pekka Enberg <penberg@kernel.org>
-Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
-Cc: "Paul E. McKenney" <paulmck@kernel.org>
-Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- mm/slub.c | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/mm/slub.c b/mm/slub.c
-index 05a501b67cd5..e4f7978d43c2 100644
---- a/mm/slub.c
-+++ b/mm/slub.c
-@@ -3779,6 +3779,15 @@ static int calculate_sizes(struct kmem_cache *s, int forced_order)
- static int kmem_cache_open(struct kmem_cache *s, slab_flags_t flags)
- {
-+#ifdef CONFIG_SLUB_DEBUG
-+      /*
-+       * If no slub_debug was enabled globally, the static key is not yet
-+       * enabled by setup_slub_debug(). Enable it if the cache is being
-+       * created with any of the debugging flags passed explicitly.
-+       */
-+      if (flags & SLAB_DEBUG_FLAGS)
-+              static_branch_enable(&slub_debug_enabled);
-+#endif
-       s->flags = kmem_cache_flags(s->size, flags, s->name);
- #ifdef CONFIG_SLAB_FREELIST_HARDENED
-       s->random = get_random_long();
--- 
-2.30.2
-
index 89381ebe89b4347d8fe6430abe84495f76f3013b..d95b8ad5efb76729478c15ee8cd0e627b23ee274 100644 (file)
@@ -515,7 +515,6 @@ perf-session-add-swap-operation-for-event-time_conv.patch
 ia64-fix-efi_debug-build.patch
 kfifo-fix-ternary-sign-extension-bugs.patch
 mm-sl-b.c-remove-ctor-argument-from-kmem_cache_flags.patch
-mm-slub-enable-slub_debug-static-key-when-creating-c.patch
 mm-memcontrol-slab-fix-obtain-a-reference-to-a-freei.patch
 mm-sparse-add-the-missing-sparse_buffer_fini-in-erro.patch
 mm-memory-failure-unnecessary-amount-of-unmapping.patch
diff --git a/queue-5.11/mm-slub-enable-slub_debug-static-key-when-creating-c.patch b/queue-5.11/mm-slub-enable-slub_debug-static-key-when-creating-c.patch
deleted file mode 100644 (file)
index 19917f7..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-From 7d4433acc6460258d2e7b64dd0a201927f0a5e09 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Thu, 29 Apr 2021 22:54:42 -0700
-Subject: mm, slub: enable slub_debug static key when creating cache with
- explicit debug flags
-
-From: Vlastimil Babka <vbabka@suse.cz>
-
-[ Upstream commit 1f0723a4c0df36cbdffc6fac82cd3c5d57e06d66 ]
-
-Commit ca0cab65ea2b ("mm, slub: introduce static key for slub_debug()")
-introduced a static key to optimize the case where no debugging is
-enabled for any cache.  The static key is enabled when slub_debug boot
-parameter is passed, or CONFIG_SLUB_DEBUG_ON enabled.
-
-However, some caches might be created with one or more debugging flags
-explicitly passed to kmem_cache_create(), and the commit missed this.
-Thus the debugging functionality would not be actually performed for
-these caches unless the static key gets enabled by boot param or config.
-
-This patch fixes it by checking for debugging flags passed to
-kmem_cache_create() and enabling the static key accordingly.
-
-Note such explicit debugging flags should not be used outside of
-debugging and testing as they will now enable the static key globally.
-btrfs_init_cachep() creates a cache with SLAB_RED_ZONE but that's a
-mistake that's being corrected [1].  rcu_torture_stats() creates a cache
-with SLAB_STORE_USER, but that is a testing module so it's OK and will
-start working as intended after this patch.
-
-Also note that in case of backports to kernels before v5.12 that don't
-have 59450bbc12be ("mm, slab, slub: stop taking cpu hotplug lock"),
-static_branch_enable_cpuslocked() should be used.
-
-[1] https://lore.kernel.org/linux-btrfs/20210315141824.26099-1-dsterba@suse.com/
-
-Link: https://lkml.kernel.org/r/20210315153415.24404-1-vbabka@suse.cz
-Fixes: ca0cab65ea2b ("mm, slub: introduce static key for slub_debug()")
-Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
-Reported-by: Oliver Glitta <glittao@gmail.com>
-Acked-by: David Rientjes <rientjes@google.com>
-Cc: Christoph Lameter <cl@linux.com>
-Cc: Pekka Enberg <penberg@kernel.org>
-Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
-Cc: "Paul E. McKenney" <paulmck@kernel.org>
-Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- mm/slub.c | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/mm/slub.c b/mm/slub.c
-index d62db41710bf..0d231c0e21b3 100644
---- a/mm/slub.c
-+++ b/mm/slub.c
-@@ -3794,6 +3794,15 @@ static int calculate_sizes(struct kmem_cache *s, int forced_order)
- static int kmem_cache_open(struct kmem_cache *s, slab_flags_t flags)
- {
-+#ifdef CONFIG_SLUB_DEBUG
-+      /*
-+       * If no slub_debug was enabled globally, the static key is not yet
-+       * enabled by setup_slub_debug(). Enable it if the cache is being
-+       * created with any of the debugging flags passed explicitly.
-+       */
-+      if (flags & SLAB_DEBUG_FLAGS)
-+              static_branch_enable(&slub_debug_enabled);
-+#endif
-       s->flags = kmem_cache_flags(s->size, flags, s->name);
- #ifdef CONFIG_SLAB_FREELIST_HARDENED
-       s->random = get_random_long();
--- 
-2.30.2
-
index ded73ba8c5f4dfb97bafc7c8de70b5361cf80bd4..1350bdffaebca1cf142959b724f8f860ebb62c21 100644 (file)
@@ -587,7 +587,6 @@ perf-session-add-swap-operation-for-event-time_conv.patch
 ia64-fix-efi_debug-build.patch
 kfifo-fix-ternary-sign-extension-bugs.patch
 mm-sl-b.c-remove-ctor-argument-from-kmem_cache_flags.patch
-mm-slub-enable-slub_debug-static-key-when-creating-c.patch
 mm-memcontrol-slab-fix-obtain-a-reference-to-a-freei.patch
 mm-sparse-add-the-missing-sparse_buffer_fini-in-erro.patch
 mm-memory-failure-unnecessary-amount-of-unmapping.patch
diff --git a/queue-5.12/mm-slub-enable-slub_debug-static-key-when-creating-c.patch b/queue-5.12/mm-slub-enable-slub_debug-static-key-when-creating-c.patch
deleted file mode 100644 (file)
index b6cb24f..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-From b6053f7a8300ec89984740a13fbcf0668eb4977f Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Thu, 29 Apr 2021 22:54:42 -0700
-Subject: mm, slub: enable slub_debug static key when creating cache with
- explicit debug flags
-
-From: Vlastimil Babka <vbabka@suse.cz>
-
-[ Upstream commit 1f0723a4c0df36cbdffc6fac82cd3c5d57e06d66 ]
-
-Commit ca0cab65ea2b ("mm, slub: introduce static key for slub_debug()")
-introduced a static key to optimize the case where no debugging is
-enabled for any cache.  The static key is enabled when slub_debug boot
-parameter is passed, or CONFIG_SLUB_DEBUG_ON enabled.
-
-However, some caches might be created with one or more debugging flags
-explicitly passed to kmem_cache_create(), and the commit missed this.
-Thus the debugging functionality would not be actually performed for
-these caches unless the static key gets enabled by boot param or config.
-
-This patch fixes it by checking for debugging flags passed to
-kmem_cache_create() and enabling the static key accordingly.
-
-Note such explicit debugging flags should not be used outside of
-debugging and testing as they will now enable the static key globally.
-btrfs_init_cachep() creates a cache with SLAB_RED_ZONE but that's a
-mistake that's being corrected [1].  rcu_torture_stats() creates a cache
-with SLAB_STORE_USER, but that is a testing module so it's OK and will
-start working as intended after this patch.
-
-Also note that in case of backports to kernels before v5.12 that don't
-have 59450bbc12be ("mm, slab, slub: stop taking cpu hotplug lock"),
-static_branch_enable_cpuslocked() should be used.
-
-[1] https://lore.kernel.org/linux-btrfs/20210315141824.26099-1-dsterba@suse.com/
-
-Link: https://lkml.kernel.org/r/20210315153415.24404-1-vbabka@suse.cz
-Fixes: ca0cab65ea2b ("mm, slub: introduce static key for slub_debug()")
-Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
-Reported-by: Oliver Glitta <glittao@gmail.com>
-Acked-by: David Rientjes <rientjes@google.com>
-Cc: Christoph Lameter <cl@linux.com>
-Cc: Pekka Enberg <penberg@kernel.org>
-Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
-Cc: "Paul E. McKenney" <paulmck@kernel.org>
-Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- mm/slub.c | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/mm/slub.c b/mm/slub.c
-index 3021ce9bf1b3..0fa68cfa648b 100644
---- a/mm/slub.c
-+++ b/mm/slub.c
-@@ -3827,6 +3827,15 @@ static int calculate_sizes(struct kmem_cache *s, int forced_order)
- static int kmem_cache_open(struct kmem_cache *s, slab_flags_t flags)
- {
-+#ifdef CONFIG_SLUB_DEBUG
-+      /*
-+       * If no slub_debug was enabled globally, the static key is not yet
-+       * enabled by setup_slub_debug(). Enable it if the cache is being
-+       * created with any of the debugging flags passed explicitly.
-+       */
-+      if (flags & SLAB_DEBUG_FLAGS)
-+              static_branch_enable(&slub_debug_enabled);
-+#endif
-       s->flags = kmem_cache_flags(s->size, flags, s->name);
- #ifdef CONFIG_SLAB_FREELIST_HARDENED
-       s->random = get_random_long();
--- 
-2.30.2
-
index 9cb77613b5e4fca65678302e3adb2414c529307f..f492721848736b8708489f3c566be0e69ddd5799 100644 (file)
@@ -663,7 +663,6 @@ perf-session-add-swap-operation-for-event-time_conv.patch
 ia64-ensure-proper-numa-distance-and-possible-map-in.patch
 ia64-fix-efi_debug-build.patch
 kfifo-fix-ternary-sign-extension-bugs.patch
-mm-slub-enable-slub_debug-static-key-when-creating-c.patch
 mm-memcontrol-slab-fix-obtain-a-reference-to-a-freei.patch
 mm-sparse-add-the-missing-sparse_buffer_fini-in-erro.patch
 mm-memory-failure-unnecessary-amount-of-unmapping.patch