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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 26 Feb 2007 17:22:10 -0700
From:	David Stevens <dlstevens@...ibm.com>
To:	davem@...emloft.net
Cc:	netdev@...r.kernel.org
Subject: [PATCH] /proc/net/anycast6 unbalanced inet6_dev refcnt

Reading /proc/net/anycast6 when there is no anycast address
on an interface results in an ever-increasing inet6_dev reference
count, as well as a reference to the netdevice you can't get rid of.

Patch below & attached.

                                                +-DLS

Signed-off-by: David L Stevens <dlstevens@...ibm.com>
--- linux-2.6.20.1/net/ipv6/anycast.c   2007-02-19 22:34:32.000000000 
-0800
+++ linux-2.6.20.1T1/net/ipv6/anycast.c 2007-02-26 15:37:04.000000000 
-0800
@@ -462,6 +462,7 @@ static inline struct ifacaddr6 *ac6_get_
                        break;
                }
                read_unlock_bh(&idev->lock);
+               in6_dev_put(idev);
        }
        return im;
 }


Download attachment "ac6.patch" of type "application/octet-stream" (301 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ