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
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
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
@@
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 @@
...
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