Commit 559835ea authored by Committed by David S. MillerBrowse files
vxlan: Use RCU apis to access sk_user_data.
Use of RCU api makes vxlan code easier to understand. It also fixes bug due to missing ACCESS_ONCE() on sk_user_data dereference. In rare case without ACCESS_ONCE() compiler might omit vs on sk_user_data dereference. Compiler can use vs as alias for sk->sk_user_data, resulting in multiple sk_user_data dereference in rcu read context which could change. CC: Jesse Gross <email@example.com> Signed-off-by: Pravin B Shelar <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>