Re: [PATCH v2 1/4] seccomp: add a return code to trap to userspace

From: Oleg Nesterov
Date: Thu May 17 2018 - 10:49:57 EST


On 05/17, Tycho Andersen wrote:
>
> > From lockdep pov this loop tries to take the same lock twice or more, it shoul
> > complain.
>
> I didn't, but I guess that's because it's not trying to take the same lock
> twice -- the pointer cur is changing in the loop.

Yes, I see. But this is the same lock for lockdep, it has the same class.

Oleg.