cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

mangle_pstate_invalid_mode_el1t.c (449B)


      1// SPDX-License-Identifier: GPL-2.0
      2/*
      3 * Copyright (C) 2019 ARM Limited
      4 *
      5 * Try to mangle the ucontext from inside a signal handler, toggling
      6 * the mode bit to escalate exception level: this attempt must be spotted
      7 * by Kernel and the test case is expected to be termninated via SEGV.
      8 */
      9
     10#include "test_signals_utils.h"
     11#include "testcases.h"
     12
     13#include "mangle_pstate_invalid_mode_template.h"
     14
     15DEFINE_TESTCASE_MANGLE_PSTATE_INVALID_MODE(1t);