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

error-inject.c (251B)


      1// SPDX-License-Identifier: GPL-2.0
      2
      3#include <linux/error-injection.h>
      4#include <linux/kprobes.h>
      5
      6void override_function_with_return(struct pt_regs *regs)
      7{
      8	instruction_pointer_set(regs, regs->lr);
      9}
     10NOKPROBE_SYMBOL(override_function_with_return);