login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
November
»
23
Re: addrconf: refcnt with IPV6_PRIVACY enabled
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Sergey Senozhatsky
Subject:
Re: addrconf: refcnt with IPV6_PRIVACY enabled
Date: Tuesday, November 23, 2010 - 7:53 am
Hello Eric, On (11/23/10 15:33), Eric Dumazet wrote:
quoted text
> Sergey, I dont think your patches (V1 or V2) are correct. > > You leak a refcount if (idev->dead) is true >
Hm, that's true. Thank you.
quoted text
> ipv6_regen_rndid() is the timer handler function, it must call > in6_dev_put() at the end, unless we rearm the timer. > > So this code is correct. > > > if (!mod_timer(&idev->regen_timer, expires)) > in6_dev_hold(idev); > ... > in6_dev_put(idev); >
Even if in6_dev_hold hasn't been called from ipv6_regen_rndid?
quoted text
> > And we must call in6_dev_hold() before calling the handler, either > directly from ipv6_add_dev() [Where your first patch tried to remove the > dev_hold() call], or when arming the timer. > > Are you sure the problem you try to solve is not already solved in > commit 88b2a9a3d98a19496d64aadda7158c0ad51cbe7d in net-2.6 tree ? > >
http://git.kernel.org/?p=linux/kernel/git/davem/net-2.6.git;a=commitdiff;h=88b2a9a3d98...
>
Oh, haven't seen this one. I'll try, thank you. Sergey
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
addrconf: refcnt with IPV6_PRIVACY enabled
, Sergey Senozhatsky
, (Tue Nov 23, 6:40 am)
Re: addrconf: refcnt with IPV6_PRIVACY enabled
, Eric Dumazet
, (Tue Nov 23, 7:33 am)
Re: addrconf: refcnt with IPV6_PRIVACY enabled
, Sergey Senozhatsky
, (Tue Nov 23, 7:53 am)
Re: addrconf: refcnt with IPV6_PRIVACY enabled
, Eric Dumazet
, (Tue Nov 23, 8:08 am)
Re: addrconf: refcnt with IPV6_PRIVACY enabled
, Sergey Senozhatsky
, (Tue Nov 23, 8:17 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
: