Skip to content

vmalloc fixes and improvements

[email protected] linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mm: vmalloc allocator off by onemm/vmalloc.c+1 -10 replies
2/9mm: vmalloc failure flush fixmm/vmalloc.c+13 -20 replies
3/9mm: vmalloc search restart fixmm/vmalloc.c+2 -20 replies
4/9mm: vmalloc tweak failure printkmm/vmalloc.c+3 -20 replies
5/9mm: vmalloc improve vmallocinfomm/vmalloc.c+8 -40 replies
6/9mm: vmalloc guard fixmm/vmalloc.c+7 -130 replies
7/9mm: vmalloc use mutex for purgemm/vmalloc.c+5 -40 replies
8/9mm: vmalloc make guard configurablemm/vmalloc.c+11 -10 replies
9/9mm: vmalloc make lazy unmapping configurablemm/vmalloc.c+24 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/9] vmalloc fixes and improvements

Hi,

The following patches are a set of fixes and improvements for the vmap layer.

Patches 1-3 fix "[Bug #11903] regression: vmalloc easily fail", and these should go upstream for 2.6.28. They've been tested and shown to fix the problem, and I've tested them here on my XFS stress test as well. The off-by-one bug, I tested and verified in a userspace test harness (it doesn't actually cause any corruption, but just suboptimal use of space).

Patches 4,5 are improvements to information exported to user. Not very risky, but not urgent either.

Patches 6-9 improve locking, guard page scheme, put guard pages under CONFIG_DEBUG_PAGEALLOC, and add a non-lazy-flush mode for CONFIG_DEBUG_PAGEALLOC to catch use-after-free better. These are more intrusive improvements. I'd like to see them merged, but they can happily wait for next merge window.

Andrew, it's probably best if you take care of sending these upstream?

Thanks,
Nick

Signature · 5 lines
--
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>