Re: [PATCH v2] Fix UCOUNT_RLIMIT_SIGPENDING counter leak

Linus Torvalds
2021-07-08T18:44:29Z

On Thu, Jul 8, 2021 at 3:34 AM Alexey Gladkov <legion@kernel.org> wrote:
>
> We must properly handle an errors when we increase the rlimit counter
> and the ucounts reference counter. We have to this with RCU protection
> to prevent possible use-after-free that could occur due to concurrent
> put_cred_rcu().

Thanks, LGTM. Applied,

Linus