Re: slab vs. slub kmem cache name inconsistency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> > I just noticed that slub's kmem_cache_create() will kstrdup() the name,
> > while slab doesn't. That's a little confusing, since when you look at
> > slub you can easily get away with passing a string you built on the
> > stack, while that will then lead to very strange results (and possibly
> > crashes?) with slab.
> 
> As far as I know, this issue is already fixed. However, fix for this
> is not merged into mainline yet.
> You can find the fix in common_for_cgroups branch of Pekka's git tree.
> 
> git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux.git
> slab/common-for-cgroups

Cool, yes, we have a commit there which addresses this:

http://git.kernel.org/?p=linux/kernel/git/penberg/linux.git;a=commit;h=db265eca77000c5dafc5608975afe8dafb2a02d5

Thanks!

johannes

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]