Assorted improvements to usercopy
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 6 repliesIn review
v5 from the cover letter
- Use get_vm_area_size() instead of ->size directly (Mark Hemment)
- Rebase to current Linus (the slab merge changed a lot of code)
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mm/usercopy: Check kmap addresses properlyarch/ include/ mm/ | +21 | 2 replies | |
| 2/4 | mm/usercopy: Detect vmalloc overrunsmm/ | +16 | 0 replies | |
| 3/4 | mm/usercopy: Detect large folio overrunsmm/ | +4 | 1 reply | |
| 4/4 | usercopy: Remove HARDENED_USERCOPY_PAGESPANmm/ security/ | +1 | 3 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Kees Cook | David Hildenbrand |
|---|---|---|
| 1/4 | A-b | |
| 2/4 | A-b | |
| 3/4 | A-b | R-b |
| 4/4 | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] Assorted improvements to usercopy
The HARDENED_USERCOPY_PAGESPAN config option is hard to turn on because much of the kernel uses non-compound high-order page allocations. This patchset extracts the valuable parts of HARDENED_USERCOPY_PAGESPAN and then removes the remainder.
v5:
- Use get_vm_area_size() instead of ->size directly (Mark Hemment)
- Rebase to current Linus (the slab merge changed a lot of code)
v4:
- Add the fourth patch to remove HARDENED_USERCOPY_PAGESPAN
v3:
- Remove a now-unused variable
v2:
- Prevent a NULL pointer dereference when a vmalloc-range pointer doesn't have an associated allocation (me)
- Report better offsets than "0" (Kees)
Matthew Wilcox (Oracle) (4):
mm/usercopy: Check kmap addresses properly
mm/usercopy: Detect vmalloc overruns
mm/usercopy: Detect large folio overruns
usercopy: Remove HARDENED_USERCOPY_PAGESPAN
arch/x86/include/asm/highmem.h | 1 + include/linux/highmem-internal.h | 10 ++++ mm/usercopy.c | 97 +++++++++----------------------- security/Kconfig | 13 +---- 4 files changed, 39 insertions(+), 82 deletions(-)
Signature · 1 line
2.33.0