[PATCH 0/4 net-2.6.25] Proper netlink kernel sockets disposal.

2008-01-18 Thread Denis V. Lunev
Alexey Dobriyan found, that virtualized netlink kernel sockets (fibl 
rtnl) are leaked during namespace start/stop loop.

Leaking fix (simple and obvious) reveals that netlink kernel socket
disposal leads to OOPSes:
- nl_table[protocol]-listeners is double freed
- sometimes during namespace stop netlink_sock_destruct
  BUG_TRAP(!atomic_read(sk-sk_rmem_alloc)); is hit

This set address all these issues.

Signed-off-by: Denis V. Lunev [EMAIL PROTECTED]
Tested-by: Alexey Dobriayn [EMAIL PROTECTED]

--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/4 net-2.6.25] Proper netlink kernel sockets disposal.

2008-01-18 Thread David Miller
From: Denis V. Lunev [EMAIL PROTECTED]
Date: Fri, 18 Jan 2008 15:51:47 +0300

 Alexey Dobriyan found, that virtualized netlink kernel sockets (fibl 
 rtnl) are leaked during namespace start/stop loop.
 
 Leaking fix (simple and obvious) reveals that netlink kernel socket
 disposal leads to OOPSes:
 - nl_table[protocol]-listeners is double freed
 - sometimes during namespace stop netlink_sock_destruct
   BUG_TRAP(!atomic_read(sk-sk_rmem_alloc)); is hit
 
 This set address all these issues.
 
 Signed-off-by: Denis V. Lunev [EMAIL PROTECTED]
 Tested-by: Alexey Dobriayn [EMAIL PROTECTED]

All 4 patches applied, thanks!
--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html