aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/act_tunnel_key.c
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2018-09-03 19:12:41 -0700
committerDavid S. Miller <davem@davemloft.net>2018-09-05 22:14:00 -0700
commit0a3b8b2b215f9e84b82ae97df71292ccfd92b1e7 (patch)
tree8dcd50c6f0a21d53352fc53dc828ebb8a180dc27 /net/sched/act_tunnel_key.c
parentnet: qca_spi: Fix race condition in spi transfers (diff)
downloadlinux-dev-0a3b8b2b215f9e84b82ae97df71292ccfd92b1e7.tar.xz
linux-dev-0a3b8b2b215f9e84b82ae97df71292ccfd92b1e7.zip
tipc: orphan sock in tipc_release()
Before we unlock the sock in tipc_release(), we have to detach sk->sk_socket from sk, otherwise a parallel tipc_sk_fill_sock_diag() could stil read it after we free this socket. Fixes: c30b70deb5f4 ("tipc: implement socket diagnostics for AF_TIPC") Reported-and-tested-by: syzbot+48804b87c16588ad491d@syzkaller.appspotmail.com Cc: Jon Maloy <jon.maloy@ericsson.com> Cc: Ying Xue <ying.xue@windriver.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions