Skip to content

Don't sleep in split_kernel_leaf_mapping() when in atomic context

Ryan Roberts linux-arm-kernel lkml 2 versions – Applied

Status from this message: Applied to arm64 (for-next/fixes), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesApplied
  2. v11 patch 9 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: mm: Don't sleep in split_kernel_leaf_mapping() when in atomic contextarch/arm64/include/asm/kfence.h arch/arm64/mm/mmu.c+67 -283 replies
2/3arm64: mm: Optimize range_split_to_ptes()arch/arm64/mm/mmu.c+7 -11 reply
3/3arm64: mm: Tidy up force_pte_mapping()arch/arm64/mm/mmu.c+23 -202 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchGuenter RoeckYang ShiDavid Hildenbrand (Red Hat)
1/3T-b R-b R-b
2/3R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] Don't sleep in split_kernel_leaf_mapping() when in atomic context

Hi Will,

This is v2 of the fix for split_kernel_leaf_mapping(). I've expanded it into 3 patches based on feedback from v1 [1].

Once happy with the content, patch 1 is needed urgently for next -rc to fix regression since 6.18-rc1. The other patches could wait until 6.19, but I'd prefer they all go together into 6.18.

Changes since v1 [1]
====================

Patch 1: The fix
- Removed arch_kfence_init_pool() declaration for !KFENCE case (per Will)
- Removed lazy mode mmu optimization (now separate patch) (per Will)
- Simplified arch_kfence_init_pool() return expression (per Will)
- Added comment about not needing tlbi
- Generalized comment softirq -> atomic (per Yang Shi)
Patch 2: lazy mode mmu optimization (per Will)
Patch 3: force_pte_mapping() tidy ups (per David)

[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/

Thanks,
Ryan

Ryan Roberts (3):
arm64: mm: Don't sleep in split_kernel_leaf_mapping() when in atomic
context
arm64: mm: Optimize range_split_to_ptes()
arm64: mm: Tidy up force_pte_mapping()

 arch/arm64/include/asm/kfence.h |   3 +-
 arch/arm64/mm/mmu.c             | 111 +++++++++++++++++++++++---------
 2 files changed, 81 insertions(+), 33 deletions(-)

--
2.43.0