arm64: hwpoison: add VM_FAULT_HWPOISON[_LARGE] handling
authorJonathan (Zhixiong) Zhang <zjzhang@codeaurora.org>
Thu, 8 Jun 2017 17:25:27 +0000 (18:25 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 12 Jun 2017 15:04:29 +0000 (16:04 +0100)
commite7c600f149b89e06073ab50f4f12e79828d3d2f0
tree145f374e08d9e7207b2de9243227f26b906c0904
parentf02ab08afbe76ee7b0b2a34a9970e7dd200d8b01
arm64: hwpoison: add VM_FAULT_HWPOISON[_LARGE] handling

Add VM_FAULT_HWPOISON[_LARGE] handling to the arm64 page fault
handler. Handling of VM_FAULT_HWPOISON[_LARGE] is very similar
to VM_FAULT_OOM, the only difference is that a different si_code
(BUS_MCEERR_AR) is passed to user space and si_addr_lsb field is
initialized.

Signed-off-by: Jonathan (Zhixiong) Zhang <zjzhang@codeaurora.org>
Signed-off-by: Tyler Baicar <tbaicar@codeaurora.org>
(fix new __do_user_fault call-site)
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
Acked-by: Steve Capper <steve.capper@arm.com>
Tested-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/fault.c