6ed361586b
Add a test case of the error code reported when we take a SEGV on a mapped but inaccessible area. We broke this recently. Based on a test case from John Sperbeck <jsperbeck@google.com>. Acked-by: John Sperbeck <jsperbeck@google.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
17 lines
305 B
Makefile
17 lines
305 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
noarg:
|
|
$(MAKE) -C ../
|
|
|
|
TEST_GEN_PROGS := hugetlb_vs_thp_test subpage_prot prot_sao segv_errors
|
|
TEST_GEN_FILES := tempfile
|
|
|
|
include ../../lib.mk
|
|
|
|
$(TEST_GEN_PROGS): ../harness.c
|
|
|
|
$(OUTPUT)/prot_sao: ../utils.c
|
|
|
|
$(OUTPUT)/tempfile:
|
|
dd if=/dev/zero of=$@ bs=64k count=1
|
|
|