Messages in this thread | | | Subject | Re: [RFC PATCH 2/3] kmemleak: Add callbacks to the bootmem allocator | From | Catalin Marinas <> | Date | Mon, 06 Jul 2009 11:58:40 +0100 |
| |
On Mon, 2009-07-06 at 11:51 +0100, Catalin Marinas wrote: > This patch adds kmemleak_alloc/free callbacks to the bootmem allocator. > This would allow scanning of such blocks and help avoiding a whole class > of false positives and more kmemleak annotations. > > Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> > Cc: Ingo Molnar <mingo@elte.hu> > Cc: Pekka Enberg <penberg@cs.helsinki.fi> > --- > mm/bootmem.c | 36 +++++++++++++++++++++++++++++------- > 1 files changed, 29 insertions(+), 7 deletions(-) > > diff --git a/mm/bootmem.c b/mm/bootmem.c > index d2a9ce9..18858ad 100644 > --- a/mm/bootmem.c > +++ b/mm/bootmem.c > @@ -335,6 +335,8 @@ void __init free_bootmem_node(pg_data_t *pgdat, unsigned long physaddr, > { > unsigned long start, end; > > + kmemleak_free(__va(physaddr));
This should actually be
+ kmemleak_free_part(__va(physaddr), size);
-- Catalin
| |