error-inject.c 251 B

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