linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* arm64 uaccess series
@ 2024-07-09 16:01 Linus Torvalds
  2024-07-09 16:01 ` [PATCH 1/3] arm64: start using 'asm goto' for get_user() when available Linus Torvalds
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Linus Torvalds @ 2024-07-09 16:01 UTC (permalink / raw)
  To: Mark Rutland; +Cc: Linux ARM

This is also available at

  git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git arm64-uaccess

and is three patches, although I expect that I'll only merge the first
two in the 6.11 merge window because that final one is still a bit
special. 

I've been running variations of this on my Altra machine for the last
month or more, but admittedly my loads are trivial and uninteresting (ie
mostly kernel builds).  So my test coevrage is not very wide.

I like the bit 55 checks in that access_ok() rewrite - and they are
actually simpler than worrying about 64-bit overflow - but they are also
admittedly quite different from what the code does elsewhere, and
there's the whole discussion about how the top byte ignore should really
work. 

NOTE: This does *not* contain the "user address masking" part.  I've
only written the x86-64 version of that, and while it touches similar
areas, it's pretty orthogonal to this part which is about the regular
low-level accesses. 

             Linus

 arm64: start using 'asm goto' for get_user() when available
 arm64: start using 'asm goto' for put_user()
 arm64: access_ok() optimization

 arch/arm64/Kconfig                   |   1 +
 arch/arm64/include/asm/asm-extable.h |   3 +
 arch/arm64/include/asm/uaccess.h     | 192 ++++++++++++++++++++++++-----------
 arch/arm64/kernel/mte.c              |  12 +--
 4 files changed, 142 insertions(+), 66 deletions(-)



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

end of thread, other threads:[~2024-07-17 18:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09 16:01 arm64 uaccess series Linus Torvalds
2024-07-09 16:01 ` [PATCH 1/3] arm64: start using 'asm goto' for get_user() when available Linus Torvalds
2024-07-17 16:22   ` GCC asm goto outputs workaround (Was: "Re: [PATCH 1/3] arm64: start using 'asm goto' for get_user() when") available Mark Rutland
2024-07-17 17:54     ` Linus Torvalds
2024-07-17 16:28   ` RESEND: " Mark Rutland
2024-07-17 18:29     ` Linus Torvalds
2024-07-09 16:02 ` [PATCH 2/3] arm64: start using 'asm goto' for put_user() Linus Torvalds
2024-07-09 16:02 ` [PATCH 3/3] arm64: access_ok() optimization Linus Torvalds
2024-07-09 16:52 ` arm64 uaccess series Catalin Marinas
2024-07-09 17:12   ` Linus Torvalds
2024-07-09 18:30     ` Catalin Marinas

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