mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
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 <[email protected]>. Acked-by: John Sperbeck <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
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
|
|
|