lkml.org 
[lkml]   [2013]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [linux-next-20130422] Bug in SLAB?
From
Date
Glauber Costa wrote:
> If I am right, the following (untested) patch should solve the problem.

This patch did not help;

kmalloc(8 * 1024 * 1024, GFP_KERNEL)

still causes both

include/linux/slab_def.h:136: warning: array subscript is above array bounds

and

BUG: unable to handle kernel NULL pointer dereference at 00000058
IP: [<c10b9d76>] kmem_cache_alloc+0x26/0xb0

.

Christoph Lameter wrote:
> What is MAX_ORDER on the architecture?

In my environment (x86_32), the constants are

MAX_ORDER=11 PAGE_SHIFT=12 KMALLOC_SHIFT_HIGH=22 KMALLOC_MAX_SIZE=4194304


\
 
 \ /
  Last update: 2013-04-29 18:01    [W:0.088 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site