Message ID | 20201028215757.p9jgp6Cxa%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + mm-slub-fix-panic-in-slab_alloc_node.patch added to -mm tree | expand |
--- a/mm/slub.c~mm-slub-fix-panic-in-slab_alloc_node +++ a/mm/slub.c @@ -2852,7 +2852,7 @@ redo: object = c->freelist; page = c->page; - if (unlikely(!object || !node_match(page, node))) { + if (unlikely(!object || !page || !node_match(page, node))) { object = __slab_alloc(s, gfpflags, node, addr, c); } else { void *next_object = get_freepointer_safe(s, object);