linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] arm64: Use memory copy instructions in usercopy routines
@ 2025-02-28 17:00 Kristina Martšenko
  2025-02-28 17:00 ` [PATCH v2 1/3] arm64: extable: Add fixup handling for uaccess CPY* instructions Kristina Martšenko
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Kristina Martšenko @ 2025-02-28 17:00 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Catalin Marinas, Will Deacon, Mark Rutland, Tong Tiangen,
	Robin Murphy, James Morse

Hi,

This is a follow-up to the series using CPY/SET instructions in the kernel's
memory copy routines [1]. This series extends that to the usercopy routines.
This required some additions to exception fixups since a CPY instruction
accesses both user and kernel memory.

Changes in v2:
 - Improved readability of cpy_faulted_on_uaccess()
 - v1: https://lore.kernel.org/all/20250218171430.28227-1-kristina.martsenko@arm.com/

Note that this conflicts with Tong's series [2].

Thanks,
Kristina

[1] https://lore.kernel.org/all/20240930161051.3777828-1-kristina.martsenko@arm.com/
[2] https://lore.kernel.org/all/20241209024257.3618492-1-tongtiangen@huawei.com/


Kristina Martšenko (3):
  arm64: extable: Add fixup handling for uaccess CPY* instructions
  arm64: mm: Handle PAN faults on uaccess CPY* instructions
  arm64: lib: Use MOPS for usercopy routines

 arch/arm64/include/asm/asm-extable.h | 10 +++++++-
 arch/arm64/include/asm/asm-uaccess.h |  4 ++++
 arch/arm64/include/asm/extable.h     |  5 +++-
 arch/arm64/lib/clear_user.S          | 25 +++++++++++++++----
 arch/arm64/lib/copy_from_user.S      | 10 ++++++++
 arch/arm64/lib/copy_template.S       | 10 ++++++++
 arch/arm64/lib/copy_to_user.S        | 10 ++++++++
 arch/arm64/mm/extable.c              | 36 +++++++++++++++++++++++++++-
 arch/arm64/mm/fault.c                |  6 +++--
 9 files changed, 107 insertions(+), 9 deletions(-)


base-commit: d082ecbc71e9e0bf49883ee4afd435a77a5101b6
-- 
2.34.1



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

end of thread, other threads:[~2025-03-10 16:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28 17:00 [PATCH v2 0/3] arm64: Use memory copy instructions in usercopy routines Kristina Martšenko
2025-02-28 17:00 ` [PATCH v2 1/3] arm64: extable: Add fixup handling for uaccess CPY* instructions Kristina Martšenko
2025-03-06 15:23   ` Robin Murphy
2025-02-28 17:00 ` [PATCH v2 2/3] arm64: mm: Handle PAN faults on " Kristina Martšenko
2025-03-06 15:28   ` Robin Murphy
2025-03-07 16:57     ` Catalin Marinas
2025-03-07 18:45   ` Catalin Marinas
2025-03-07 18:53     ` Robin Murphy
2025-03-07 21:37       ` Catalin Marinas
2025-03-10 14:15         ` Kristina Martšenko
2025-03-10 15:43           ` Catalin Marinas
2025-02-28 17:00 ` [PATCH v2 3/3] arm64: lib: Use MOPS for usercopy routines Kristina Martšenko
2025-03-06 15:47   ` Robin Murphy
2025-03-07 19:23 ` [PATCH v2 0/3] arm64: Use memory copy instructions in " 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).