Re: [PATCH] ptrace: restore smp_rmb() in __ptrace_may_access()
From: Oleg Nesterov
Date: Fri May 31 2019 - 09:39:27 EST
On 05/31, Jann Horn wrote:
>
> So I guess I should make a v2 that still adds the smp_rmb() in
> __ptrace_may_access(), but gets rid of the smp_wmb() in
> commit_creds()? (With a comment above the rcu_assign_pointer() that
> explains the ordering?)
I am fine either way, whatever you like more.
If you prefer v1 (this patch), feel free to add
Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>