3 ms·
> We should have a VDSO for every system call. This doesn't really make sense; the vDSO only works for system calls that do nothing but read a value from the k
by saagarjha 7y ago
> We should have a VDSO for every system call.
This doesn't really make sense; the vDSO only works for system calls that do nothing but read a value from the kernel and return it to userspace.
- quotemstr 7y agoNot the case. Some VDSOs just forward to regular system calls. Try clock_gettime with CLOCK_BOOTTIME sometime. (I need to send a patch to fix this. Maybe over Christmas.) Requiring that every system call go through a VDSO would be great because it would give us a "hook" for changing system behavior before entering the kernel, which is a good thing, because in the age of speculative execution mitigations, entering the kernel is expensive, just like in the days of yore.
- saagarjha 7y agoOn my computer I ended up going through a rdtsc instead of a syscall…