aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/arm64/signal/testcases/mangle_pstate_invalid_mode_el1t.c
blob: cc222d8a618a2cc0d43597349985587b1ce21552 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2019 ARM Limited
 *
 * Try to mangle the ucontext from inside a signal handler, toggling
 * the mode bit to escalate exception level: this attempt must be spotted
 * by Kernel and the test case is expected to be termninated via SEGV.
 */

#include "test_signals_utils.h"
#include "testcases.h"

#include "mangle_pstate_invalid_mode_template.h"

DEFINE_TESTCASE_MANGLE_PSTATE_INVALID_MODE(1t);