]> git.baikalelectronics.ru Git - 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)
commit98b44af1dc8370ba378f62592eabb766db65b762
tree2a5fc4cc7a219bc896abf999be964d99aea1f24a
parent88e5fb8f43e7554ec51d929ff430a3d7008abc35
parisc: Add HWPOISON page fault handler code

Commit 110c147aec40 ("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