Re: [PATCH] prctl_set_mm: downgrade mmap_sem to read lock
From: Cyrill Gorcunov
Date: Thu Apr 18 2019 - 10:09:57 EST
On Thu, Apr 18, 2019 at 03:50:39PM +0200, Michal Koutný wrote:
> I learnt, it's, alas, too late to drop the non PRCTL_SET_MM_MAP calls
> [1], so at least downgrade the write acquisition of mmap_sem as in the
> patch below (that should be stacked on the previous one or squashed).
>
> Cyrill, you mentioned lock changes in [1] but the link seems empty. Is
> it supposed to be [2]? That could be an alternative to this patch after
> some refreshments and clarifications.
Yes, seems so. From a glance the patch shold be ok. Michal will review
it more carefully today. Thanks!