android_kernel_xiaomi_sm8350/mm
Giridhar Pemmasani 5211e6e6c6 [PATCH] Fix GFP_HIGHMEM slab panic
As reported by Martin J. Bligh <mbligh@google.com>, we let through some
non-slab bits to slab allocation through __get_vm_area_node when doing a
vmalloc.

I haven't been able to reproduce this, although I understand why it
happens: vmalloc allocates memory with

GFP_KERNEL | __GFP_HIGHMEM

and commit 52fd24ca1d resulted in the same
flags are passed down to cache_alloc_refill, causing the BUG.  The
following patch fixes it.

Note that when calling kmalloc_node, I am masking off __GFP_HIGHMEM with
GFP_LEVEL_MASK, whereas __vmalloc_area_node does the same with

~(__GFP_HIGHMEM | __GFP_ZERO).

IMHO, using GFP_LEVEL_MASK is preferable, but either should fix this
problem.

Signed-off-by: Giridhar Pemmasani (pgiri@yahoo.com)
Cc: Martin J. Bligh <mbligh@google.com>
Cc: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-29 08:01:58 -08:00
..
allocpercpu.c
backing-dev.c [PATCH] separate bdi congestion functions from queue congestion functions 2006-10-20 10:26:35 -07:00
bootmem.c
bounce.c
fadvise.c
filemap_xip.c
filemap.c [PATCH] mm: clean up pagecache allocation 2006-10-28 11:30:50 -07:00
filemap.h
fremap.c
highmem.c
hugetlb.c [PATCH] hugetlb: fix absurd HugePages_Rsvd 2006-10-28 11:30:53 -07:00
internal.h
Kconfig
madvise.c
Makefile [PATCH] separate bdi congestion functions from queue congestion functions 2006-10-20 10:26:35 -07:00
memory_hotplug.c
memory.c [PATCH] mm: D-cache aliasing issue in cow_user_page 2006-10-20 10:26:43 -07:00
mempolicy.c [PATCH] Fix do_mbind warning with CONFIG_MIGRATION=n 2006-10-11 11:14:19 -07:00
mempool.c
migrate.c
mincore.c
mlock.c
mmap.c Fix VM_MAYEXEC calculation 2006-10-15 14:09:55 -07:00
mmzone.c
mprotect.c
mremap.c
msync.c
nommu.c
oom_kill.c [PATCH] OOM killer meets userspace headers 2006-10-20 10:26:38 -07:00
page_alloc.c [PATCH] Calculation fix for memory holes beyong the end of physical memory 2006-10-28 11:30:55 -07:00
page_io.c
page-writeback.c [PATCH] separate bdi congestion functions from queue congestion functions 2006-10-20 10:26:35 -07:00
pdflush.c
prio_tree.c
readahead.c
rmap.c [PATCH] mm: more commenting on lock ordering 2006-10-20 10:26:44 -07:00
shmem_acl.c [PATCH] Fix typos in mm/shmem_acl.c 2006-10-11 11:14:23 -07:00
shmem.c [PATCH] separate bdi congestion functions from queue congestion functions 2006-10-20 10:26:35 -07:00
slab.c [PATCH] Slab: Do not fallback to nodes that have not been bootstrapped yet 2006-10-21 13:35:06 -07:00
slob.c
sparse.c [PATCH] memory hotplug: __GFP_NOWARN is better for __kmalloc_section_memmap() 2006-10-28 11:30:52 -07:00
swap_state.c
swap.c
swapfile.c
thrash.c
tiny-shmem.c
truncate.c [PATCH] invalidate: remove_mapping() fix 2006-10-17 08:18:43 -07:00
util.c
vmalloc.c [PATCH] Fix GFP_HIGHMEM slab panic 2006-10-29 08:01:58 -08:00
vmscan.c [PATCH] Use min of two prio settings in calculating distress for reclaim 2006-10-28 11:30:51 -07:00
vmstat.c [PATCH] vmscan: Fix temp_priority race 2006-10-28 11:30:50 -07:00