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
| ||
|
Date: Thu, 1 Feb 2007 12:07:47 +0100 From: Jens Osterkamp <jens@...ibm.com> To: Linas Vepstas <linas@...tin.ibm.com>, James K Lewis <jim@...ewis.com>, linuxppc-dev@...abs.org, netdev@...r.kernel.org, jgarzik@...ox.com, cbe-oss-dev@...abs.org, Ishizaki Kou <kou.ishizaki@...hiba.co.jp> Subject: [PATCH] spidernet : fix memory leak in spider_net_stop We forget to call spider_net_free_rx_chain_contents which does the actual dev_kfree_skb. New skbs are allocated from skbuff_head_cache on each "ifconfig up" letting the cache grow infinitely. This patch fixes it. Signed-off-by: Jens Osterkamp <jens@...ibm.com> Index: linux-2.6.20-rc6/drivers/net/spider_net.c =================================================================== --- linux-2.6.20-rc6.orig/drivers/net/spider_net.c +++ linux-2.6.20-rc6/drivers/net/spider_net.c @@ -1925,6 +1925,8 @@ spider_net_stop(struct net_device *netde /* release chains */ spider_net_release_tx_chain(card, 1); + spider_net_free_rx_chain_contents(card); + spider_net_free_chain(card, &card->tx_chain); spider_net_free_chain(card, &card->rx_chain); - 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