mm-large-system-hash-avoid-possible-null-deref-in-alloc_large_system_hash.patch removed from -mm tree
The patch titled
Subject: mm/large system hash: avoid possible NULL deref in alloc_large_system_hash
has been removed from the -mm tree. Its filename was
mm-large-system-hash-avoid-possible-null-deref-in-alloc_large_system_hash.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Eric Dumazet <[email protected]>
Subject: mm/large system hash: avoid possible NULL deref in alloc_large_system_hash
If __vmalloc() returned NULL, is_vm_area_hugepages(NULL) will fault if CONFIG_HAVE_ARCH_HUGE_VMALLOC=y
Fixes 121e6f3258fe ("mm/vmalloc: hugepage vmalloc mappings")
Signed-off-by Eric Dumazet <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Cc Nicholas Piggin <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/page_alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-large-system-hash-avoid-possible-null-deref-in-alloc_large_system_hash +2 -1
@@ -8762,7 +8762,8 @@ void *__init alloc_large_system_hash(con }else if (get_order (size) >=MAX_ORDER || hashdist) { table =__vmalloc (size, gfp_flags); virt = true; - huge =is_vm_area_hugepages (table); +if (table) + huge =is_vm_area_hugepages (table); }else {/* * If bucketsize is not a power-of-two, we may free
_
Patches currently in -mm which might be from [email protected] are