arm64 uaccess series

Linus Torvalds torvalds at linux-foundation.org
Tue Jul 9 09:01:58 PDT 2024


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




More information about the linux-arm-kernel mailing list