commit | c76662e825f507b98938dc3bb141c4505bd4968c | [log] [tgz] |
---|---|---|
author | Ram Pai <linuxram@us.ibm.com> | Tue Jul 17 06:51:05 2018 -0700 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Tue Jul 24 21:34:47 2018 +1000 |
tree | de449519750e13cea226b0b61af622576e28fbff | |
parent | 4a4a5e5d2aadc793be95024f454cf511d115b62d [diff] |
powerpc/pkeys: Save the pkey registers before fork When a thread forks the contents of AMR, IAMR, UAMOR registers in the newly forked thread are not inherited. Save the registers before forking, for content of those registers to be automatically copied into the new thread. Fixes: cf43d3b26452 ("powerpc: Enable pkey subsystem") Cc: stable@vger.kernel.org # v4.16+ Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>