Re: [PATCH] SLOB allocator imcompatible SLAB

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Mackall
Date: Monday, June 25, 2007 - 10:24 pm

On Tue, Jun 26, 2007 at 03:00:56PM +1000, Nick Piggin wrote:

(jogs brain)

When I last looked, we could tell statically whether pointers passed
to kobjsize were to alloc_pages or kmalloc or kmem_cache_alloc just
based on context.

But in some cases, we could actually pass in pointers to static data
structures (eg bits of init_task) and things that were in ROM and
being used for XIP or things that lived outside of the kernel's
address space. SLAB would deal with this kind of affront by checking
page flags and saying "sorry, not mine".

Beating some sense into nommu here is doable, but non-trivial.

Since we're actually fiddling with page flags at this point and
hijacking an arguably less-appropriate bit, I'm strongly tempted to
just use the SLAB bit.

-- 
Mathematics is the supreme nostalgia of our time.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] SLOB allocator imcompatible SLAB, Yoshinori Sato, (Fri Jun 22, 1:08 am)
Re: [PATCH] SLOB allocator imcompatible SLAB, Matt Mackall, (Fri Jun 22, 7:56 am)
Re: [PATCH] SLOB allocator imcompatible SLAB, Yoshinori Sato, (Sun Jun 24, 11:45 pm)
Re: [PATCH] SLOB allocator imcompatible SLAB, Nick Piggin, (Mon Jun 25, 9:06 pm)
Re: [PATCH] SLOB allocator imcompatible SLAB, Matt Mackall, (Mon Jun 25, 9:56 pm)
Re: [PATCH] SLOB allocator imcompatible SLAB, Nick Piggin, (Mon Jun 25, 10:00 pm)
Re: [PATCH] SLOB allocator imcompatible SLAB, Matt Mackall, (Mon Jun 25, 10:24 pm)