Re: [PATCH ovpn-net v2] ovpn: fix incorrect use of rcu_access_pointer()

Antonio Quartulli <[email protected]> Thu, 30 Jul 2026 10:12:13 +0200
Newsgroups gmane.network.openvpn.devel
Message-ID <[email protected]>
On 24/07/2026 03:49, Qingfang Deng wrote:
> rcu_access_pointer() should only be used to test the value of a pointer,
> not to dereference it. As it's in a spin_lock_bh() critical section, use
> rcu_dereference_bh() instead, avoiding an extra rcu_read_lock().
> 
> Fixes: f6226ae7a0cd ("ovpn: introduce the ovpn_socket object")
> Signed-off-by: Qingfang Deng <[email protected]>

Applied, commit 55c6dcf4e97e7fa82b29015378342f6f14657d0b

Thanks!


-- 
Antonio Quartulli