Re: [PATCH v2 1/6] powerpc/pkeys: Enable all user-allocatable pkeys at init.

2018-06-21 Thread Ram Pai
On Thu, Jun 21, 2018 at 02:14:53PM +1000, Michael Ellerman wrote: > Ram Pai writes: > > On Tue, Jun 19, 2018 at 10:39:52PM +1000, Michael Ellerman wrote: > >> Ram Pai writes: > >> > >> > In a multithreaded application, a key allocated by one thread must > >> > be activate and usable on all threa

Re: [PATCH v2 1/6] powerpc/pkeys: Enable all user-allocatable pkeys at init.

2018-06-20 Thread Michael Ellerman
Ram Pai writes: > On Tue, Jun 19, 2018 at 10:39:52PM +1000, Michael Ellerman wrote: >> Ram Pai writes: >> >> > In a multithreaded application, a key allocated by one thread must >> > be activate and usable on all threads. >> > >> > Currently this is not the case, because the UAMOR bits for all k

Re: [PATCH v2 1/6] powerpc/pkeys: Enable all user-allocatable pkeys at init.

2018-06-19 Thread Ram Pai
On Tue, Jun 19, 2018 at 10:39:52PM +1000, Michael Ellerman wrote: > Ram Pai writes: > > > In a multithreaded application, a key allocated by one thread must > > be activate and usable on all threads. > > > > Currently this is not the case, because the UAMOR bits for all keys are > > disabled by d

Re: [PATCH v2 1/6] powerpc/pkeys: Enable all user-allocatable pkeys at init.

2018-06-19 Thread Michael Ellerman
Ram Pai writes: > In a multithreaded application, a key allocated by one thread must > be activate and usable on all threads. > > Currently this is not the case, because the UAMOR bits for all keys are > disabled by default. When a new key is allocated in one thread, though > the corresponding UA

[PATCH v2 1/6] powerpc/pkeys: Enable all user-allocatable pkeys at init.

2018-06-13 Thread Ram Pai
In a multithreaded application, a key allocated by one thread must be activate and usable on all threads. Currently this is not the case, because the UAMOR bits for all keys are disabled by default. When a new key is allocated in one thread, though the corresponding UAMOR bits for that thread get