Re: [PATCH] prctl_set_mm: downgrade mmap_sem to read lock

2019-04-18 Thread Cyrill Gorcunov
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 me

Re: [PATCH] prctl_set_mm: downgrade mmap_sem to read lock

2019-04-18 Thread Laurent Dufour
Le 18/04/2019 à 15:50, Michal Koutný a écrit : 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

Re: [PATCH] prctl_set_mm: downgrade mmap_sem to read lock

2019-04-18 Thread Michal Hocko
On Thu 18-04-19 15:50:39, Michal Koutny 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 cha

Re: [PATCH] prctl_set_mm: downgrade mmap_sem to read lock

2019-04-18 Thread Cyrill Gorcunov
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 me

[PATCH] prctl_set_mm: downgrade mmap_sem to read lock

2019-04-18 Thread Michal Koutný
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 b