Re: [PATCH v4 net] rxrpc: fix race condition in rxrpc_input_packet()

2019-04-24 Thread David Miller
From: Eric Dumazet Date: Wed, 24 Apr 2019 09:44:11 -0700 > After commit 5271953cad31 ("rxrpc: Use the UDP encap_rcv hook"), > rxrpc_input_packet() is directly called from lockless UDP receive > path, under rcu_read_lock() protection. > > It must therefore use RCU rules : > > - udp_sk->sk_user_d

[PATCH v4 net] rxrpc: fix race condition in rxrpc_input_packet()

2019-04-24 Thread Eric Dumazet
After commit 5271953cad31 ("rxrpc: Use the UDP encap_rcv hook"), rxrpc_input_packet() is directly called from lockless UDP receive path, under rcu_read_lock() protection. It must therefore use RCU rules : - udp_sk->sk_user_data can be cleared at any point in this function. rcu_dereference_sk_us