Re: [PATCH 4/4] powerpc/kuap: Make disabling KUAP at boottime optional

2023-06-21 Thread Christophe Leroy
Le 06/06/2023 à 11:27, Nicholas Piggin a écrit : > On Mon Jun 5, 2023 at 9:04 PM AEST, Christophe Leroy wrote: >> It is possible to disable KUAP at boottime with 'nosmap' parameter. >> >> That is implemented with jump_label hence adds a 'nop' in front >> of each open/close of userspace access. >>

Re: [PATCH 4/4] powerpc/kuap: Make disabling KUAP at boottime optional

2023-06-06 Thread Nicholas Piggin
On Mon Jun 5, 2023 at 9:04 PM AEST, Christophe Leroy wrote: > It is possible to disable KUAP at boottime with 'nosmap' parameter. > > That is implemented with jump_label hence adds a 'nop' in front > of each open/close of userspace access. > > From a security point of view it makes sence to disallo

[PATCH 4/4] powerpc/kuap: Make disabling KUAP at boottime optional

2023-06-05 Thread Christophe Leroy
It is possible to disable KUAP at boottime with 'nosmap' parameter. That is implemented with jump_label hence adds a 'nop' in front of each open/close of userspace access. >From a security point of view it makes sence to disallow disabling KUAP. And on processors like the 8xx where 'nop' is not s