Skip to content

Faster page poisoning for security

Ben Hutchings cip-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm/slab: activate debug_pagealloc in SLAB when it is actually enabledmm/slab.c+10 -50 replies
2/5mm/slab: use more appropriate condition check for debug_pageallocmm/slab.c+1 -30 replies
3/5mm/slab: clean up DEBUG_PAGEALLOC processing codeinclude/linux/mm.h mm/slab.c+57 -520 replies
4/5mm/page_poison.c: enable PAGE_POISONING as a separate optionDocumentation/kernel-parameters.txt include/linux/mm.h mm/Kconfig.debug +3 more+89 -140 replies
5/5mm/page_poisoning.c: allow for zero poisoninginclude/linux/mm.h include/linux/poison.h kernel/power/hibernate.c +4 more+60 -50 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchChristoph LameterRafael J. Wysocki
1/5A-b
2/5A-b
3/5
4/5
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [cip-dev] [PATCH 4.4-cip 0/5] Faster page poisoning for security

This is a backport of changes in 4.6 to add new config options to page poisoning. Page poisoning was originally intended a debug feature for finding use-after-free bugs in the kernel, but it can also be a security feature, mitigating the security impact of such bugs. Unfortunately, it normally has a significant performance cost. The new options (CONFIG_PAGE_POISONING_NO_SANITY and CONFIG_PAGE_POISONING_ZERO) can be enabled to reduce the performance cost, though they also reduce the likelihood of detecting when such a bug has been triggered.

Enable CONFIG_PAGE_POISONING plus the new options can make some such bugs harder to exploit, at a small performance cost (you'll need to measure it yourself).

For this and other backports, I'm looking for feedback like:
- Did I miss a follow-up fix or an earlier dependency?
- Does this cause a regression (other than as explained above)?
- Are you likely to use it?
- Are there related features you want in 4.4?

Ben.

Joonsoo Kim (3):
mm/slab: activate debug_pagealloc in SLAB when it is actually enabled mm/slab: use more appropriate condition check for debug_pagealloc mm/slab: clean up DEBUG_PAGEALLOC processing code

Laura Abbott (2):
mm/page_poison.c: enable PAGE_POISONING as a separate option mm/page_poisoning.c: allow for zero poisoning

 Documentation/kernel-parameters.txt     |  5 ++
 include/linux/mm.h                      | 23 ++++++--
 include/linux/poison.h                  |  4 ++
 kernel/power/hibernate.c                | 17 ++++++
 mm/Kconfig.debug                        | 39 ++++++++++++-
 mm/Makefile                             |  2 +-
 mm/page_alloc.c                         | 13 ++++-
 mm/page_ext.c                           | 10 +++-
 mm/{debug-pagealloc.c => page_poison.c} | 67 +++++++++++++++++-----
 mm/slab.c                               | 98 +++++++++++++++++----------------
 10 files changed, 208 insertions(+), 70 deletions(-)
 rename mm/{debug-pagealloc.c => page_poison.c} (64%)
Signature · 6 lines
2.10.2


-- 
Ben Hutchings
Software Developer, Codethink Ltd.