mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
HWPOISON: add page flags filter
When specified, only poison pages if ((page_flags & mask) == value). - corrupt-filter-flags-mask - corrupt-filter-flags-value This allows stress testing of many kinds of pages. Strictly speaking, the buddy pages requires taking zone lock, to avoid setting PG_hwpoison on a "was buddy but now allocated to someone" page. However we can just do nothing because we set PG_locked in the beginning, this prevents the page allocator from allocating it to someone. (It will BUG() on the unexpected PG_locked, which is fine for hwpoison testing.) [AK: Add select PROC_PAGE_MONITOR to satisfy dependency] CC: Nick Piggin <[email protected]> Signed-off-by: Wu Fengguang <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
parent
1a9b5b7fe0
commit
478c5ffc0b
5 changed files with 43 additions and 0 deletions
|
|
@ -253,6 +253,7 @@ config MEMORY_FAILURE
|
|||
config HWPOISON_INJECT
|
||||
tristate "Poison pages injector"
|
||||
depends on MEMORY_FAILURE && DEBUG_KERNEL
|
||||
select PROC_PAGE_MONITOR
|
||||
|
||||
config NOMMU_INITIAL_TRIM_EXCESS
|
||||
int "Turn on mmap() excess space trimming before booting"
|
||||
|
|
|
|||
Loading…
Reference in a new issue