I'm trying to do a vDSO using latest kernel source code. I was following this tutorial https://www.linuxjournal.com/content/creating-vdso-colonels-other-chicken?page=0,0 However I didn't find some functions like update_vsyscall() and vdso directory in linux-4.20.13/arch/x86/vdso. My question is: is there a way to make a virtual syscall, like gettimeofday(), using the new kernel codes?
Is there a way to create a vDSO with the latest kernel?
622 Views Asked by Massimiliano Di Cavio At
2
vdso directory in
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/x86/entry/vdso?h=v4.20.13
For example, add a function directly to vclock_gettime.c, rebuild the kernel, and reboot
Write a test case in user mode
gcc -otest test.c vdso64.so