mm/vmalloc: fix vmalloc_dump_obj VA lookup
Status from this message: This series was applied to riscv/linux.git (fixes)
Get series with b4
b4 am [email protected] change-id 20260916-vmalloc_dump_obj-d80908447369Versions newest first
- v4 Latest2 patches 2 repliesApplied 2/2
- v32 patches 1 replySuperseded
- v23 patches 5 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 1 reply | Superseded |
Changes in v4 from the cover letter
- Patch2: Simplify find_vmap_area() to return va directly.
- Patch2: Simplify locked_vn initialization in find_vmap_area_lock().
- Link to v3: https://lore.kernel.org/r/[email protected]
Patches in v4 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/vmalloc: fix vmalloc_dump_obj address alignment for last-page lookupsmm/ | +1 | 0 replies | Applied |
| 2/2 | mm/vmalloc: fix vmalloc_dump_obj cross-zone VA lookupmm/ | +66 | 1 reply | Applied |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Uladzislau Rezki (Sony) |
|---|---|
| 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 v4 0/2] mm/vmalloc: fix vmalloc_dump_obj VA lookup
vmalloc_dump_obj() has two bugs that cause it to miss vmalloc allocations.
1. PAGE_ALIGN() rounds up, pushing last-page addresses to va_end and outside the VA lookup range.
2. The function searches only one vmap node, but allocations larger than 64 KiB may span multiple vmap zones whose VA is stored in a different node's rb-tree.
Patch 1 fixes the alignment, patch 2 fixes the cross-zone search.
---
Changes in v4:
- Patch2: Simplify find_vmap_area() to return va directly.
- Patch2: Simplify locked_vn initialization in find_vmap_area_lock().
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Patch3 drop.
- Patch2 Extract find_vmap_area_lock as a helper to simplify the code.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Use is_vmalloc_or_module_addr() instead of is_vmalloc_addr() to
avoid filtering module/BPF/execmem addresses. (sashiko-bot)
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Ye Liu (2):
mm/vmalloc: fix vmalloc_dump_obj address alignment for last-page lookups mm/vmalloc: fix vmalloc_dump_obj cross-zone VA lookup
mm/vmalloc.c | 110 ++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 67 insertions(+), 43 deletions(-)
---
base-commit: e6e35979777d646fe3c7c94dca7dd32fb25d45f4
change-id: 20260916-vmalloc_dump_obj-d80908447369
Best regards,
Signature · 1 line
Ye Liu <[email protected]>