Introduce PTE_WRITE for arm64
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | arm64: mm: Remove PTE_BIT_FUNC macroarch/ | +41 | 0 replies | |
| 2/2 | arm64: mm: Introduce PTE_WRITEarch/ | +25 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Catalin Marinas |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] Introduce PTE_WRITE for arm64
This series adds support for a separate PTE_WRITE bit, allowing one to distinguish between writable clean ptes and read only ptes. At the moment we have the following bit encodings:
PTE_DIRTY PTE_RDONLY !pte_dirty && !pte_write 0 1 !pte_dirty && pte_write 0 1 pte_dirty && !pte_write 1 1 pte_dirty && pte_write 1 0
One reason we need to add the distinction is to fix a problem with huge pages, described here:
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-November/215155.html
The patch in the link above attempts to address this issue by bypassing set_pte_at in the huge page code, but it was decided that the lack of distinction between writable clean ptes and read only ptes should be addressed instead as it could likely lead to other issues that we've not yet seen.
The first patch in the series expands out PTE_BIT_FUNC to make life much easier for cscope and tags users. Whilst the second patch actually introduces PTE_WRITE.
LPAE on ARM is also affected by this issue and will need a similar patch.
Steve Capper (2):
arm64: mm: Remove PTE_BIT_FUNC macro
arm64: mm: Introduce PTE_WRITE
arch/arm64/include/asm/pgtable.h | 93 +++++++++++++++++++++++++++------------- 1 file changed, 63 insertions(+), 30 deletions(-)
Signature · 1 line
1.8.1.4