[lkml]   [2020]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/3] exec: Make unlocking exec_update_mutex explict
On Mon, Apr 06, 2020 at 08:31:52PM -0500, Eric W. Biederman wrote:
> With install_exec_creds updated to follow immediately after
> setup_new_exec, the failure of unshare_sighand is the only
> code path where exec_update_mutex is held but not explicitly
> unlocked.
> Update that code path to explicitly unlock exec_update_mutex.
> Remove the unlocking of exec_update_mutex from free_bprm.
> Signed-off-by: "Eric W. Biederman" <>

Yeah, assuming that I didn't miss any subtleties just now.
By "explicit" I assume you mean not conditionally unlocked, i.e. we
don't need to check any condition in free_binprm().

Acked-by: Christian Brauner <>

 \ /
  Last update: 2020-04-07 18:17    [W:0.135 / U:1.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site