Skip to content

RFC HWPOISON incremental fixes

Wu Fengguang linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5HWPOISON: define VM_FAULT_HWPOISON to 0 when feature is disabledarch/x86/mm/fault.c include/linux/mm.h+7 -323 replies
2/5HWPOISON: fix tasklist_lock/anon_vma locking ordermm/memory-failure.c+6 -35 replies
3/5HWPOISON: remove early kill option for nowDocumentation/sysctl/vm.txt include/linux/mm.h include/linux/rmap.h +4 more+3 -3292 replies
4/5HWPOISON: report sticky EIO for poisoned fileinclude/linux/pagemap.h mm/filemap.c mm/memory-failure.c+25 -13 replies
5/5HWPOISON: use the safer invalidate page for possible metadata pagesinclude/linux/mm.h mm/memory-failure.c mm/truncate.c+15 -121 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRik van Riel
1/5A-b
2/5A-b
3/5A-b
4/5A-b
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 [PATCH 0/5] [RFC] HWPOISON incremental fixes

Hi all,

Here are the hwpoison fixes that aims to address Nick and Hugh's concerns. Note that
- the early kill option is dropped for .31. It's obscure option and complex code and is not must have for .31. Maybe Andi also aims this option for notifying KVM, but right now KVM is not ready to handle that.
- It seems that even fsync() processes are not easy to catch, so I abandoned the SIGKILL on fsync() idea. Instead, I choose to fail any attempt to populate the poisoned file with new pages, so that the corrupted page offset won't be repopulated with outdated data. This seems to be a safe way to allow the process to continue running while still be able to promise good (but not complete) data consistency.
- I didn't implement the PANIC-on-corrupted-data option. Instead, I guess sending uevent notification to user space will be a more flexible scheme?

Thanks,
Fengguang

Signature · 5 lines
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>