Re: [PATCH] rlimits: do not grab tasklist_lock for do_prlimit on current
From: Barret Rhoden
Date: Wed Jan 05 2022 - 16:31:13 EST
On 12/15/21 14:42, Eric W. Biederman wrote:
In update_rlimit_cpu use lock_task_sighand instead of unconditionally
grabbing sighand->siglock (because without tasklist_lock sighand might
be NULL).
this ended up being a minor complication, since update_rlimit_cpu()
could fail if the task was exiting, but i think i sorted it out.
i'll send out revised patchset shortly with this change, including
making do_prlimit() static.
thanks,
barret