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

kfunc_call_race.c (283B)


      1// SPDX-License-Identifier: GPL-2.0
      2#include <vmlinux.h>
      3#include <bpf/bpf_helpers.h>
      4
      5extern void bpf_testmod_test_mod_kfunc(int i) __ksym;
      6
      7SEC("tc")
      8int kfunc_call_fail(struct __sk_buff *ctx)
      9{
     10	bpf_testmod_test_mod_kfunc(0);
     11	return 0;
     12}
     13
     14char _license[] SEC("license") = "GPL";