]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
parisc: Add HWPOISON page fault handler code
authorHelge Deller <deller@gmx.de>
Thu, 21 Sep 2017 19:52:08 +0000 (21:52 +0200)
committerHelge Deller <deller@gmx.de>
Fri, 22 Sep 2017 17:47:17 +0000 (19:47 +0200)
commit606f95e4255845155f62504a9e1f12665b1853c8
tree2a5fc4cc7a219bc896abf999be964d99aea1f24a
parenta7e6601f70a53957b1d01c321319f0237bba5202
parisc: Add HWPOISON page fault handler code

Commit 24587380f61d ("parisc: Add MADV_HWPOISON and MADV_SOFT_OFFLINE") added
the necessary constants to handle hardware-poisoning. Those were needed to
support the page deallocation feature from firmware.

But I completely missed to add the relevant fault handler code. This now
showed up when I ran the madvise07 testcase from the Linux Test Project,
which failed with a kernel BUG at arch/parisc/mm/fault.c:320.

With this patch the parisc kernel now behaves like other platforms and
gives the same kernel syslog warnings when poisoning pages.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/mm/fault.c