[ovs-dev] [PATCH v2] ovs rcu: update rcu pointer first

Ben Pfaff blp at ovn.org
Tue Jun 2 17:27:43 UTC 2020

On Tue, Jun 02, 2020 at 07:27:59AM +0000, Linhaifeng wrote:
> We should update rcu pointer first then use ovsrcu_postpone to free
> otherwise maybe cause use-after-free.
> e.g.,reader indicates momentary quiescent and access old pointer after
> writer postpone free old pointer and before setting new pointer.
> Signed-off-by: Linhaifeng <haifeng.lin at huawei.com>

I don't see how that's possible, since the writer hasn't quiesced.

More information about the dev mailing list