Skip to content

Fix bugs for realm guest plus BBML2_NOABORT

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

Status from this message: Applied to arm64 (for-next/bbml2-fixes), thanks! I had some comments on

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 25 repliesApplied
  2. v13 patches 14 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: mm: Fix rodata=full block mapping support for realm guestsarch/arm64/include/asm/mmu.h arch/arm64/mm/init.c arch/arm64/mm/mmu.c+42 -1424 replies
2/3arm64: mm: Handle invalid large leaf mappings correctlyarch/arm64/include/asm/pgtable-prot.h arch/arm64/include/asm/pgtable.h arch/arm64/mm/mmu.c +2 more+48 -590 replies
3/3arm64: mm: Remove pmd_sect() and pud_sect()arch/arm64/include/asm/pgtable.h arch/arm64/mm/mmu.c+21 -160 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchKevin BrodskySuzuki K Poulose
1/3R-b R-b T-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Fix bugs for realm guest plus BBML2_NOABORT

Hi All,

This fixes a couple of bugs in the "large block mappings for linear map when we have BBML2_NOABORT" feature when used in conjunction with a CCA realm guest. While investigating I found and fixed some more general issues too. See commit logs for full explanations.

Applies on top of v7.0-rc4.

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

Patch 1:
- Moved page_alloc_available declaration to asm/mmu.c (per Kevin)
- Added PTE_PRESENT_VALID_KERNEL macro to hide VALID|NG confusion (per Kevin)
- Improved logic in split_kernel_leaf_mapping() to avoid warning for DEBUG_PAGEALLOC (per Sashiko)
Patch 2:
- Fixed transitional pgtables to handle present-invalid large leaves (per Sashiko)
- Hardened split_pXd() for present-invalid leaves (per Sashiko)
Patch 3:
- Converted pXd_leaf() to function to avoid multi-eval of READ_ONCE() (per Sashiko)

[1] https://lore.kernel.org/all/[email protected]/

Thanks,
Ryan

Ryan Roberts (3):
arm64: mm: Fix rodata=full block mapping support for realm guests
arm64: mm: Handle invalid large leaf mappings correctly
arm64: mm: Remove pmd_sect() and pud_sect()

 arch/arm64/include/asm/mmu.h          |  2 +
 arch/arm64/include/asm/pgtable-prot.h |  2 +
 arch/arm64/include/asm/pgtable.h      | 28 +++++++----
 arch/arm64/mm/init.c                  |  9 +++-
 arch/arm64/mm/mmu.c                   | 67 ++++++++++++++++++---------
 arch/arm64/mm/pageattr.c              | 50 +++++++++++---------
 arch/arm64/mm/trans_pgd.c             | 42 +++--------------
 7 files changed, 111 insertions(+), 89 deletions(-)

--
2.43.0