Re: [RFC] [PATCH] cpuset operations causes Badness at mm/slab.c:777 warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Friday, June 1, 2007 - 3:33 pm

On Fri, 1 Jun 2007 15:20:05 -0700 (PDT)
Christoph Lameter <clameter@sgi.com> wrote:


hm, I hadn't thought of it that way actually.  I was thinking it was
specific to kmalloc(0) but as you point out, the situation is
generalisable.

Yes, if someone does kmalloc(42) and we satisfy the allocation from the
size-64 slab, we should poison and then check the allegedly-unused 22
bytes.

Please ;)

(vaguely stunned that we didn't think of doing this years ago).

It'll be a large patch, I expect?




Actually, I have this vague memory that slab would take that kmalloc(42)
and would then return kmalloc(64)+22, so the returned memory is
"right-aligned".  This way the existing overrun-detection is applicable to
all kmallocs.  Maybe I dreamed it.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Christoph Lameter, (Fri Jun 1, 11:13 am)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Christoph Lameter, (Fri Jun 1, 12:18 pm)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Christoph Lameter, (Fri Jun 1, 12:51 pm)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Jeremy Fitzhardinge, (Fri Jun 1, 1:30 pm)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Jeremy Fitzhardinge, (Fri Jun 1, 1:56 pm)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Andrew Morton, (Fri Jun 1, 3:33 pm)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Jeremy Fitzhardinge, (Fri Jun 1, 5:41 pm)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Jeremy Fitzhardinge, (Fri Jun 1, 5:43 pm)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Jeremy Fitzhardinge, (Fri Jun 1, 5:46 pm)
Re: [RFC] [PATCH] cpuset operations causes Badness at mm/s ..., Jeremy Fitzhardinge, (Fri Jun 1, 5:59 pm)