linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] powerpc/64: copy_tofrom_user exception handling improvements
@ 2018-08-03 10:13 Paul Mackerras
  2018-08-03 10:13 ` [PATCH v3 1/4] powerpc/64: Make exception table clearer in __copy_tofrom_user_base Paul Mackerras
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Paul Mackerras @ 2018-08-03 10:13 UTC (permalink / raw)
  To: linuxppc-dev

This is a repost of a series that I posted back in 2016 but which was
never applied.  It aims to make the exception handling code in
__copy_tofrom_user_base clearer and easier to verify, and strengthens
the selftests for the user copy code to test all the paths and to test
the exception handling.  Finally it then fixes a deficiency in that
when copying to userspace we don't always copy quite as many bytes as
we could.

I have rebased this series on top of the powerpc next branch as of
today.

Paul.

 arch/powerpc/lib/copyuser_64.S                     | 585 +++++++++------------
 arch/powerpc/lib/copyuser_power7.S                 |  21 +-
 arch/powerpc/lib/memcpy_64.S                       |   9 +-
 arch/powerpc/lib/memcpy_power7.S                   |  22 +-
 .../testing/selftests/powerpc/copyloops/.gitignore |  17 +-
 tools/testing/selftests/powerpc/copyloops/Makefile |  44 +-
 .../selftests/powerpc/copyloops/asm/ppc_asm.h      |  44 +-
 .../powerpc/copyloops/copy_tofrom_user_reference.S |  24 +
 .../selftests/powerpc/copyloops/exc_validate.c     | 124 +++++
 tools/testing/selftests/powerpc/copyloops/stubs.S  |  19 +
 10 files changed, 516 insertions(+), 393 deletions(-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-08-08 14:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-03 10:13 [PATCH v3 0/4] powerpc/64: copy_tofrom_user exception handling improvements Paul Mackerras
2018-08-03 10:13 ` [PATCH v3 1/4] powerpc/64: Make exception table clearer in __copy_tofrom_user_base Paul Mackerras
2018-08-08 14:26   ` [v3, " Michael Ellerman
2018-08-03 10:13 ` [PATCH v3 2/4] selftests/powerpc/64: Test all paths through copy routines Paul Mackerras
2018-08-03 10:13 ` [PATCH v3 3/4] selftests/powerpc/64: Test exception cases in copy_tofrom_user Paul Mackerras
2018-08-03 10:13 ` [PATCH v3 4/4] powerpc/64: Copy as much as possible in __copy_tofrom_user Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).