Files
linux/mm
Vlastimil Babka 3425d6179e FROMLIST: mm: slub: fix slub_debug disabling for list of slabs
Vijayanand Jitta reports:

  Consider the scenario where CONFIG_SLUB_DEBUG_ON is set
  and we would want to disable slub_debug for few slabs.
  Using boot parameter with slub_debug=-,slab_name syntax
  doesn't work as expected i.e; only disabling debugging for
  the specified list of slabs. Instead it disables debugging
  for all slabs, which is wrong.

This patch fixes it by delaying the moment when the global slub_debug
flags variable is updated.  In case a "slub_debug=-,slab_name" has been
passed, the global flags remain as initialized (depending on
CONFIG_SLUB_DEBUG_ON enabled or disabled) and are not simply reset to 0.

Link: https://lkml.kernel.org/r/8a3d992a-473a-467b-28a0-4ad2ff60ab82@suse.cz
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Reported-by: Vijayanand Jitta <vjitta@codeaurora.org>
Reviewed-by: Vijayanand Jitta <vjitta@codeaurora.org>
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: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

Bug: 195891241
Link: https://lore.kernel.org/lkml/8a3d992a-473a-467b-28a0-4ad2ff60ab82@suse.cz/

Change-Id: I1f94e8897181b230a7b2965b8943f1bdf20e0a49
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
2021-08-16 19:17:05 +00:00
..
2021-06-04 11:15:16 -07:00
2021-04-30 09:13:34 -07:00
2021-05-20 15:35:25 +02:00
2021-06-12 14:48:14 +02:00
2021-03-25 19:20:09 +00:00
2021-05-20 15:35:25 +02:00
2021-05-20 15:35:25 +02:00
2021-04-30 09:13:34 -07:00
2021-05-20 15:35:25 +02:00
2021-02-25 19:36:38 +00:00
2021-04-30 09:13:34 -07:00
2020-06-08 11:05:55 -07:00
2021-04-15 14:23:41 +02:00
2021-04-22 11:12:08 +02:00
2021-05-15 09:28:55 +02:00
2021-03-07 12:53:30 +01:00