> On Mon, 28 Jun 2010, Pekka Enberg wrote: >> > + return kzalloc(size, GFP_KERNEL & gfp_allowed_mask); >> > else { >> > void *ptr = vmalloc(size); >> > if (ptr) >> >> This looks wrong to me. All slab allocators should do gfp_allowed_mask >> magic under the hood. Maybe it's triggering kmalloc_large() path that >> needs the masking too? On Tue, Jun 29, 2010 at 6:45 PM, Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx> wrote: > They do gfp_allowed_mask magic. But the checks at function entry of the > slabs do not mask the masks so we get false positives without this. All my > protest against the checks doing it this IMHO broken way were ignored. Which checks are those? Are they in SLUB proper or are they introduced in one of the SLEB patches? We definitely don't want to expose gfp_allowed_mask here. Pekka -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href