[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1317125257.2541.17.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>
Date: Tue, 27 Sep 2011 14:07:37 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Huajun Li <huajun.li.lee@...il.com>
Cc: David Miller <davem@...emloft.net>, netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH 2/2] net: Fix potential memory leak
Le mardi 27 septembre 2011 à 17:58 +0800, Huajun Li a écrit :
> To emulate memory allocation fail case, I added code to return
> '-ENOMEM' from flow_cache_cpu_prepare(...) even if it could allocate
> memory correctly, but did not find panic on my box, maybe the latest
> code changed greatly than 2.6.37. :)
To panic the box, you need to leave a NULL pointer somewhere and
dereference it later, when code assumes it cant be NULL ;)
--
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