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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 28 Feb 2007 11:10:54 +0100 From: Eric Dumazet <dada1@...mosbay.com> To: Evgeniy Polyakov <johnpol@....mipt.ru> Cc: David Miller <davem@...emloft.net>, paul.moore@...com, kaber@...sh.net, netdev@...r.kernel.org, acme@...stprotocols.net Subject: Re: Run-time kfree check for correct cache [was Re: [NET]: Fix kfree(skb)] On Wednesday 28 February 2007 10:02, Evgeniy Polyakov wrote: > Attached patch detects in run-time things like: > skb = alloc_skb(); > kfree(skb); > > where provided to kfree pointer does not belong to kmalloc caches. > It is turned on when slab debug config option is enabled. > > When problem is detected, following warning is printed with hint to > what cache/function should be used instead: It would be less expensive to add a flag #define SLAB_KFREE_NOWARNING 0x00200000UL And OR this flags into cs->flags of all standard caches created by kmem_cache_init() from malloc_sizes[]/cache_names[] kfree() would then just test this flag. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists