Re: [PATCH 5/5] selftests/powerpc: Add test for pkey siginfo verification

2020-07-26 Thread Sandipan Das
On 27/07/20 5:22 am, Michael Ellerman wrote: > Christophe Leroy writes: >> Michael Ellerman a écrit : >>> Sandipan Das writes: diff --git a/tools/testing/selftests/powerpc/mm/pkey_siginfo.c b/tools/testing/selftests/powerpc/mm/pkey_siginfo.c new file mode 100644 index 00

Re: [PATCH 5/5] selftests/powerpc: Add test for pkey siginfo verification

2020-07-26 Thread Michael Ellerman
Christophe Leroy writes: > Michael Ellerman a écrit : >> Sandipan Das writes: >>> diff --git a/tools/testing/selftests/powerpc/mm/pkey_siginfo.c >>> b/tools/testing/selftests/powerpc/mm/pkey_siginfo.c >>> new file mode 100644 >>> index 0..58605c53d495d >>> --- /dev/null >>> +++ b/t

Re: [PATCH 5/5] selftests/powerpc: Add test for pkey siginfo verification

2020-07-26 Thread Christophe Leroy
Michael Ellerman a écrit : Sandipan Das writes: diff --git a/tools/testing/selftests/powerpc/mm/pkey_siginfo.c b/tools/testing/selftests/powerpc/mm/pkey_siginfo.c new file mode 100644 index 0..58605c53d495d --- /dev/null +++ b/tools/testing/selftests/powerpc/mm/pkey_siginfo.c @@

Re: [PATCH 5/5] selftests/powerpc: Add test for pkey siginfo verification

2020-07-26 Thread Michael Ellerman
Sandipan Das writes: > diff --git a/tools/testing/selftests/powerpc/mm/pkey_siginfo.c > b/tools/testing/selftests/powerpc/mm/pkey_siginfo.c > new file mode 100644 > index 0..58605c53d495d > --- /dev/null > +++ b/tools/testing/selftests/powerpc/mm/pkey_siginfo.c > @@ -0,0 +1,332 @@ ...

[PATCH 5/5] selftests/powerpc: Add test for pkey siginfo verification

2020-07-16 Thread Sandipan Das
Commit c46241a370a61 ("powerpc/pkeys: Check vma before returning key fault error to the user") fixes a bug which causes the kernel to set the wrong pkey in siginfo when a pkey fault occurs after two competing threads that have allocated different pkeys, one fully permissive and the other restrictiv