From: Andi Kleen Date: Wed, 16 Sep 2009 09:50:17 +0000 (+0200) Subject: HWPOISON: Add madvise() based injector for hardware poisoned pages v4 X-Git-Tag: v2.6.32-rc1~62^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9893e49d64a4874ea67849ee2cfbf3f3d6817573;p=pandora-kernel.git HWPOISON: Add madvise() based injector for hardware poisoned pages v4 Impact: optional, useful for debugging Add a new madvice sub command to inject poison for some pages in a process' address space. This is useful for testing the poison page handling. This patch can allow root to tie up large amounts of memory. I got feedback from container developers and they didn't see any problem. v2: Use write flag for get_user_pages to make sure to always get a fresh page v3: Don't request write mapping (Fengguang Wu) v4: Move MADV_* number to avoid conflict with KSM (Hugh Dickins) Signed-off-by: Andi Kleen --- Reading git-diff-tree failed