[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120608.143147.1838350639362568199.davem@davemloft.net>
Date: Fri, 08 Jun 2012 14:31:47 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, jchapman@...alix.com, denys@...p.net.lb
Subject: Re: [PATCH] l2tp: fix a race in l2tp_ip_sendmsg()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Fri, 08 Jun 2012 18:25:00 +0200
> From: Eric Dumazet <edumazet@...gle.com>
>
> Commit 081b1b1bb27f (l2tp: fix l2tp_ip_sendmsg() route handling) added
> a race, in case IP route cache is disabled.
>
> In this case, we should not do the dst_release(&rt->dst), since it'll
> free the dst immediately, instead of waiting a RCU grace period.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Working with a zero-ref'd object is always playing with fire even
when we "know what we are doing" :-)
Applied and queued up for -stable, thanks Eric.
--
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