]> Git Repo - linux.git/commit - mm/memory-failure.c
mm/memory-failure.c: add hwpoison_filter for soft offline
authorzhenwei pi <[email protected]>
Fri, 13 May 2022 03:23:10 +0000 (20:23 -0700)
committerAndrew Morton <[email protected]>
Fri, 13 May 2022 14:20:19 +0000 (07:20 -0700)
commit9113eaf331bf44579882c001867773cf1b3364fd
treedcec5cf0b7be1b60e53c34435b4fb37f0191d244
parentc8bd84f73fd6215d5b8d0b3cfc914a3671b16d1c
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/[email protected]
Signed-off-by: zhenwei pi <[email protected]>
Acked-by: Naoya Horiguchi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/memory-failure.c
This page took 0.052668 seconds and 4 git commands to generate.