]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: fix a race in l2tp_ip_sendmsg()
authorEric Dumazet <edumazet@google.com>
Fri, 8 Jun 2012 06:25:00 +0000 (06:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jun 2012 21:30:51 +0000 (14:30 -0700)
commit6662316b9db64ed061d061ae91f516f570e7a83d
tree6068b48be8fe07b2501a849b152436c42106650d
parentfb2a6bd20d5ed2564ffb7d5066df406130f10d73
l2tp: fix a race in l2tp_ip_sendmsg()

Commit 6db44f49bd6b (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@google.com>
Cc: James Chapman <jchapman@katalix.com>
Cc: Denys Fedoryshchenko <denys@visp.net.lb>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip.c