diff options
author | 2023-06-15 12:13:25 -0600 | |
---|---|---|
committer | 2023-06-26 07:54:23 -0600 | |
commit | 1ea7ca1b090145519aad998679222f0a14ab8fce (patch) | |
tree | fb2db2940309adf5d9a477fdfe742af55ad710c0 /tools/include/trace | |
parent | Merge branch 'for-6.5/dax-cleanups' into nvdimm-for-next (diff) | |
download | linux-1ea7ca1b090145519aad998679222f0a14ab8fce.tar.gz linux-1ea7ca1b090145519aad998679222f0a14ab8fce.tar.bz2 linux-1ea7ca1b090145519aad998679222f0a14ab8fce.zip |
dax: enable dax fault handler to report VM_FAULT_HWPOISON
When multiple processes mmap() a dax file, then at some point,
a process issues a 'load' and consumes a hwpoison, the process
receives a SIGBUS with si_code = BUS_MCEERR_AR and with si_lsb
set for the poison scope. Soon after, any other process issues
a 'load' to the poisoned page (that is unmapped from the kernel
side by memory_failure), it receives a SIGBUS with
si_code = BUS_ADRERR and without valid si_lsb.
This is confusing to user, and is different from page fault due
to poison in RAM memory, also some helpful information is lost.
Channel dax backend driver's poison detection to the filesystem
such that instead of reporting VM_FAULT_SIGBUS, it could report
VM_FAULT_HWPOISON.
If user level block IO syscalls fail due to poison, the errno will
be converted to EIO to maintain block API consistency.
Signed-off-by: Jane Chu <jane.chu@oracle.com>
Link: https://lore.kernel.org/r/20230615181325.1327259-2-jane.chu@oracle.com
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Diffstat (limited to 'tools/include/trace')
0 files changed, 0 insertions, 0 deletions