linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Robin Murphy <robin.murphy@arm.com>
To: will@kernel.org, catalin.marinas@arm.com
Cc: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com,
	kristina.martsenko@arm.com
Subject: [PATCH 0/3] arm64: Usercopy refresh
Date: Wed, 28 Sep 2022 12:58:50 +0100	[thread overview]
Message-ID: <cover.1664363162.git.robin.murphy@arm.com> (raw)

Hi all,

With the troublesome copy_in_user() now long gone, it's finally time for
some less-worse usercopy routines! Beyond just improving on the mangled
old code, this is also spurred on by Mark's ongoing work on exception
handling, off the back of which we had some ideas around making uaccess
fixups neater. Those can be explored in due course, but getting the last
of the old cruft out of the way first should help make it easier. For
now I've held off on clever macro stuff and stuck with hand-rolled
labels and explicit annotations which do bump the line count up a fair
bit, but in the hope of keeping the code itself more readable for
review.

Thanks,
Robin.


Robin Murphy (3):
  arm64: Update copy_from_user()
  arm64: Update copy_to_user()
  arm64: Garbage-collect usercopy leftovers

 arch/arm64/include/asm/asm-uaccess.h |  30 --
 arch/arm64/lib/copy_from_user.S      | 274 +++++++++++++++----
 arch/arm64/lib/copy_template.S       | 181 -------------
 arch/arm64/lib/copy_to_user.S        | 391 +++++++++++++++++++++++----
 4 files changed, 564 insertions(+), 312 deletions(-)
 delete mode 100644 arch/arm64/lib/copy_template.S

-- 
2.36.1.dirty


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2022-09-28 12:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-28 11:58 Robin Murphy [this message]
2022-09-28 11:58 ` [PATCH 1/3] arm64: Update copy_from_user() Robin Murphy
2022-09-28 11:58 ` [PATCH 2/3] arm64: Update copy_to_user() Robin Murphy
2022-12-05 16:09   ` Will Deacon
2022-12-05 16:46     ` Mark Rutland
2022-12-05 17:31       ` Robin Murphy
2022-09-28 11:58 ` [PATCH 3/3] arm64: Garbage-collect usercopy leftovers Robin Murphy
2022-11-07 19:08 ` [PATCH 0/3] arm64: Usercopy refresh Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1664363162.git.robin.murphy@arm.com \
    --to=robin.murphy@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=kristina.martsenko@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).