aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hwpoison-inject.c
diff options
context:
space:
mode:
authorzhenwei pi <pizhenwei@bytedance.com>2022-05-12 20:23:10 -0700
committerAndrew Morton <akpm@linux-foundation.org>2022-05-13 07:20:19 -0700
commit9113eaf331bf44579882c001867773cf1b3364fd (patch)
treedcec5cf0b7be1b60e53c34435b4fb37f0191d244 /mm/hwpoison-inject.c
parentmm/memory-failure.c: simplify num_poisoned_pages_dec (diff)
downloadlinux-dev-9113eaf331bf44579882c001867773cf1b3364fd.tar.xz
linux-dev-9113eaf331bf44579882c001867773cf1b3364fd.zip
mm/memory-failure.c: add hwpoison_filter for soft offline
hwpoison_filter is missing in the soft offline path, this leads an issue: after enabling the corrupt filter, the user process still has a chance to inject hwpoison fault by madvise(addr, len, MADV_SOFT_OFFLINE) at PFN which is expected to reject. Also do a minor change in comment of memory_failure(). Link: https://lkml.kernel.org/r/20220509105641.491313-4-pizhenwei@bytedance.com Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/hwpoison-inject.c')
0 files changed, 0 insertions, 0 deletions