forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit484cfac
mm, slub: restore initial kmem_cache flags
The routine that applies debug flags to the kmem_cache slabsinadvertantly prevents non-debug flags from being applied to thosesame objects. That is, if slub_debug=<flag>,<slab> is specified,non-debugged slabs will end up having flags of zero, and the slabsmay be unusable.Fix this by including the input flags for non-matching slabs with thecontents of slub_debug, so that the caches are created as expectedalongside any debugging options that may be requested. With this, wecan remove the check for a NULL slub_debug_string, since it's coveredby the loop itself.Fixes:e17f1df ("mm, slub: extend slub_debug syntax for multiple blocks")Signed-off-by: Eric Farman <farman@linux.ibm.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Acked-by: Vlastimil Babka <vbabka@suse.cz>Cc: Kees Cook <keescook@chromium.org>Cc: Christoph Lameter <cl@linux.com>Cc: Pekka Enberg <penberg@kernel.org>Cc: David Rientjes <rientjes@google.com>Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>Link:https://lkml.kernel.org/r/20200930161931.28575-1-farman@linux.ibm.comSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parentd3d45f8 commit484cfac
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1413 | 1413 | | |
1414 | 1414 | | |
1415 | 1415 | | |
1416 | | - | |
1417 | | - | |
1418 | | - | |
1419 | | - | |
1420 | 1416 | | |
1421 | 1417 | | |
1422 | 1418 | | |
| |||
1450 | 1446 | | |
1451 | 1447 | | |
1452 | 1448 | | |
1453 | | - | |
| 1449 | + | |
1454 | 1450 | | |
1455 | 1451 | | |
1456 | 1452 | | |
| |||
0 commit comments
Comments
(0)