RE: [PATCH] seccomp: Improve performance by optimizing memory barrier

2021-02-07 Thread Wanghongzhe (Hongzhe, EulerOS)
ubrav...@fb.com; y...@fb.com; john.fastab...@gmail.com; > kpsi...@kernel.org; linux-kernel@vger.kernel.org; net...@vger.kernel.org; > b...@vger.kernel.org > Subject: Re: [PATCH] seccomp: Improve performance by optimizing memory > barrier > > On Mon, Feb 01, 2021 at 08:49:41PM +0800

Re: [PATCH] seccomp: Improve performance by optimizing memory barrier

2021-02-07 Thread Leon Romanovsky
On Mon, Feb 01, 2021 at 08:49:41PM +0800, wanghongzhe wrote: > If a thread(A)'s TSYNC flag is set from seccomp(), then it will > synchronize its seccomp filter to other threads(B) in same thread > group. To avoid race condition, seccomp puts rmb() between > reading the mode and filter in seccomp

RE: [PATCH] seccomp: Improve performance by optimizing memory barrier

2021-02-01 Thread Wanghongzhe (Hongzhe, EulerOS)
>> On Feb 1, 2021, at 4:06 AM, wanghongzhe wrote: >> >> If a thread(A)'s TSYNC flag is set from seccomp(), then it will >> synchronize its seccomp filter to other threads(B) in same thread >> group. To avoid race condition, seccomp puts rmb() between reading the >> mode and filter in

Re: [PATCH] seccomp: Improve performance by optimizing memory barrier

2021-02-01 Thread Andy Lutomirski
> On Feb 1, 2021, at 4:06 AM, wanghongzhe wrote: > > If a thread(A)'s TSYNC flag is set from seccomp(), then it will > synchronize its seccomp filter to other threads(B) in same thread > group. To avoid race condition, seccomp puts rmb() between > reading the mode and filter in seccomp check