inet: add READ_ONCE(sk->sk_bound_dev_if) in inet_csk_bind_conflict()
authorEric Dumazet <edumazet@google.com>
Fri, 13 May 2022 18:55:46 +0000 (11:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:11 +0000 (13:14 +0100)
commit348d95e39fec7c9dccf6a61bec0f32791e180925
tree5d5a0c8e017f2014c48b08b2fa31a6a5b6dc4f0c
parent4451bef1a3ddebd37081a699da9167a253d8e045
inet: add READ_ONCE(sk->sk_bound_dev_if) in inet_csk_bind_conflict()

[ Upstream commit d2c135619cb89d1d5693df81ab408c5e8e97e898 ]

inet_csk_bind_conflict() can access sk->sk_bound_dev_if for
unlocked sockets.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/inet_connection_sock.c