lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <487B7F99.4060004@linux-foundation.org>
Date:	Mon, 14 Jul 2008 11:32:25 -0500
From:	Christoph Lameter <cl@...ux-foundation.org>
To:	Pekka Enberg <penberg@...helsinki.fi>
CC:	Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>,
	linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH] kmemtrace: SLAB hooks.

Pekka Enberg wrote:
> Hi Eduard-Gabriel,
> 
> On Sat, 2008-07-12 at 22:04 +0300, Eduard - Gabriel Munteanu wrote:
>> This adds hooks for the SLAB allocator, to allow tracing with kmemtrace.
>>
>> Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>
>> @@ -28,8 +29,20 @@ extern struct cache_sizes malloc_sizes[];
>>  void *kmem_cache_alloc(struct kmem_cache *, gfp_t);
>>  void *__kmalloc(size_t size, gfp_t flags);
>>  
>> +#ifdef CONFIG_KMEMTRACE
>> +extern void *__kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags);
>> +#else
>> +static inline void *__kmem_cache_alloc(struct kmem_cache *cachep,
>> +				       gfp_t flags)
>> +{
>> +	return __kmem_cache_alloc(cachep, flags);
> 
> Looks as if the function calls itself recursively?
> 

Code not tested? Are you sure you configured for slab?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ