[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHA+R7N358TZyY9DGZbEQFV5aC08+ZYEaxJKOGPDDN58V4FQ=Q@mail.gmail.com>
Date: Thu, 16 Jan 2014 16:26:15 -0800
From: Cong Wang <cwang@...pensource.com>
To: paulmck@...ux.vnet.ibm.com
Cc: Eric Dumazet <eric.dumazet@...il.com>,
Tom Herbert <therbert@...gle.com>,
netdev <netdev@...r.kernel.org>
Subject: Re: suspicious RCU usage in net/ipv4/ip_tunnel.c:80
On Mon, Jan 13, 2014 at 8:53 PM, Paul E. McKenney
<paulmck@...ux.vnet.ibm.com> wrote:
> OK, I'll bite... This code invokes dst_release() which looks to me
> like it dereferences this pointer:
>
Yeah, sure, my point is it doesn't dereference the pointer when it holds
the spin_lock. I read rcu_dereference_protected() as "deference the rcu
pointer when we protected by ...", but we dereference it after the lock is
released. :)
@Eric, will you submit your patch as a formal one? I already tested it.
Thanks.
--
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