Bug 252222 - ipv6 device reference counting error in net/ipv6/anycast.c
ipv6 device reference counting error in net/ipv6/anycast.c
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
4.5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Neil Horman
Martin Jenner
:
Depends On:
Blocks: 430698
  Show dependency treegraph
 
Reported: 2007-08-14 15:50 EDT by Charlotte Richardson
Modified: 2008-07-24 15:15 EDT (History)
3 users (show)

See Also:
Fixed In Version: RHSA-2008-0665
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-07-24 15:15:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
backport of upstream patch (349 bytes, patch)
2007-08-28 12:48 EDT, Neil Horman
no flags Details | Diff

  None (edit)
Description Charlotte Richardson 2007-08-14 15:50:04 EDT
Description of problem:
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.

Version-Release number of selected component (if applicable):
2.6.9-55 kernel

How reproducible:
Every time

Steps to Reproduce:
1. cat /proc/net/anycast6
  
Actual results:
You will be unable to shutdown or reboot and will see console messages like
unregister_netdevice: waiting for eth<nnn> to become free. Usage count = 1

Expected results:
Nothing funky should happen.

Additional info:

This is due to a reference counting bug in net/ipv6/anycast.c. In static inline
struct ifacaddr *ac_get_first, after read_unlock_bh(&idev->lock); add
in6_dev_put(idev);

This source file is part of ipv6.ko.
Comment 1 Neil Horman 2007-08-28 12:48:01 EDT
Created attachment 177081 [details]
backport of upstream patch

Thanks,backport of upstream commit aa6e4a96e7589948fe770744f7bb4f0f743dddaa
attached.
Comment 2 RHEL Product and Program Management 2007-08-28 13:17:04 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 3 Jason Baron 2007-12-20 13:42:17 EST
committed in stream U7 build 68.4. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/
Comment 7 errata-xmlrpc 2008-07-24 15:15:15 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2008-0665.html

Note You need to log in before you can comment on or make changes to this bug.