x86/ldt: Use a VMA based read only mapping
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest17 patches 58 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | mm/gup: Fixup p*_access_permitted()mm/ | +24 | 27 replies | |
| 2/17 | mm: Exempt special mappings from mlock(), mprotect() and madvise()mm/ mm/ mm/ | +8 | 3 replies | |
| 3/17 | arch: Allow arch_dup_mmap() to failarch/ arch/ arch/ +3 more | +14 | 1 reply | |
| 4/17 | x86/ldt: Rework lockingarch/ arch/ arch/ | +26 | 0 replies | |
| 5/17 | x86/ldt: Prevent ldt inheritance on execarch/ arch/ tools/ | +22 | 1 reply | |
| 6/17 | x86/ldt: Do not install LDT for kernel threadsarch/ | +1 | 2 replies | |
| 7/17 | mm/softdirty: Move VM_SOFTDIRTY into high bitsarch/ arch/ include/ | +13 | 0 replies | |
| 8/17 | mm/x86: Allow special mappings with user access clearedarch/ include/ include/ +1 more | +20 | 0 replies | |
| 9/17 | mm: Provide vm_special_mapping::closeinclude/ mm/ | +7 | 0 replies | |
| 10/17 | selftest/x86: Implement additional LDT selfteststools/ | +70 | 0 replies | |
| 11/17 | selftests/x86/ldt_gdt: Prepare for access bit forcedtools/ | +1 | 14 replies | |
| 12/17 | mm: Make populate_vma_page_range() availableinclude/ mm/ | +2 | 0 replies | |
| 13/17 | x86/mm: Force LDT desc accessed bitarch/ arch/ | +7 | 1 reply | |
| 14/17 | x86/ldt: Reshuffle codearch/ arch/ | +58 | 5 replies | |
| 15/17 | x86/ldt: Prepare for VMA mappingarch/ arch/ arch/ | +116 | 0 replies | |
| 16/17 | x86/ldt: Add VMA management codearch/ | +102 | 0 replies | |
| 17/17 | x86/ldt: Make it read only VMA mappedarch/ | +149 | 0 replies |
Reviews trailers per patch
1 of 17 patches has a Reviewed-by or Acked-by.
| Patch | Andy Lutomirski |
|---|---|
| 1/17 | |
| 2/17 | |
| 3/17 | R-b |
| 4/17 | |
| 5/17 | |
| 6/17 | |
| 7/17 | |
| 8/17 | |
| 9/17 | |
| 10/17 | |
| 11/17 | |
| 12/17 | |
| 13/17 | |
| 14/17 | |
| 15/17 | |
| 16/17 | |
| 17/17 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/17] x86/ldt: Use a VMA based read only mapping
So here's a second posting of the VMA based LDT implementation; now without most of the crazy.
I took out the write fault handler and the magic LAR touching code.
Additionally there are a bunch of patches that address generic vm issue.
- gup() access control; In specific I looked at accessing !_PAGE_USER pages because these patches rely on not being able to do that.
- special mappings; A whole bunch of mmap ops don't make sense on special mappings so disallow them.
Both things make sense independent of the rest of the series. Similarly, the patches that kill that rediculous LDT inherit on exec() are also unquestionably good.
So I think at least the first 6 patches are good, irrespective of the VMA approach.
On the whole VMA approach, Andy I know you hate it with a passion, but I really rather like how it ties the LDT to the process that it belongs to and it reduces the amount of 'special' pages in the whole PTI mapping.
I'm not the one going to make the decision on this; but I figured I at least post a version without the obvious crap parts of the last one.
Note: if we were to also disallow munmap() for special mappings (which I suppose makes perfect sense) then we could further reduce the actual LDT code (we'd no longer need the sm::close callback and related things).
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>