Re: [PATCH] Convert struct pid count to refcount_t

From: Kees Cook
Date: Thu Mar 28 2019 - 12:52:24 EST


On Thu, Mar 28, 2019 at 7:37 AM Joel Fernandes <joel@xxxxxxxxxxxxxxxxx> wrote:
> Kees can you describe more the race you had in mind?

I just didn't see any barriers, so it seemed racey to me.

> Also note to the on looker, the original patch I sent is not wrong, that
> still applies and is correct. We are just discussing here any possible issues
> with the *existing* code.

Correct. And akpm has (correctly) taken this for -mm.

--
Kees Cook