Thread (10 messages) 10 messages, 3 authors, 2026-06-29

Re: [PATCH v10 6/6] selftests/mm: add hwpoison-panic destructive test

flat view

From: Mike Rapoport <rppt@kernel.org>
Date: 2026-06-27 07:52:53
Also in: linux-doc, linux-kselftest, linux-mm, lkml

Hi Breno,

On Fri, Jun 26, 2026 at 08:33:20AM -0700, Breno Leitao wrote:
Add a destructive selftest that verifies
vm.panic_on_unrecoverable_memory_failure actually panics when a
hwpoison error hits a kernel-owned page.
+ksft_skip=4
...
quoted hunk ↗ jump to hunk
+ksft_print() { echo "# $*"; }
+ksft_exit_skip() { ksft_print "$*"; exit "$ksft_skip"; }
+ksft_exit_fail() { echo "not ok 1 $*"; exit 1; }
There is tools/testing/selftests/kselftest/ktap_helpers.sh that already
implements this :)

-- 
Sincerely yours,
Mike.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help