Re: [PATCH v2] Fix UCOUNT_RLIMIT_SIGPENDING counter leak
From: Linus Torvalds
Date: Thu Jul 08 2021 - 14:44:48 EST
On Thu, Jul 8, 2021 at 3:34 AM Alexey Gladkov <legion@xxxxxxxxxx> 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