Thread: Disabling VDSO
View Single Post
allnameswereout's Avatar
Posts: 3,397 | Thanked: 1,212 times | Joined on Jul 2008 @ Netherlands
#8
Originally Posted by adhika_rexuss View Post
Thanks a lot Rakia, I forgot that I read that part as well.


I tried looking for /proc/sys/vm/vdso_enabled and /proc/sys/kernel/vdso files but there were no such files.
Is there any particular reason why I cannot see those files?
How can I check if VDSO is enabled now?
Yes, doesn't work anymore. You cannot edit the feature via proc anymore.

On recent kernels by default VDSO32 is enabled on x86-64, and cannot be disabled except boot loader command. So the default is vdso32=1

Therefore, if /proc/cmdline contains
  • Nothing or vdso32=1 then vdso32 is enabled.
  • vdso32=0 vdso32 is disabled.
  • vdso32=2 compat mode is on (don't know if the latter works with Scratchbox version 1)

So can just check if grep vdso32=0 /proc/cmdline returns anything. If it does return the boot loader command then that means vdso32 is disabled (good thing for Scratchbox v1).

Keep in mind vdso= is for 32 bit on 32 bit kernel, and 64 bit on 64 bit kernel. Therefore, don't touch vdso= in relation to this problem, it won't help.
__________________
Goosfraba! All text written by allnameswereout is public domain unless stated otherwise. Thank you for sharing your output!

Last edited by allnameswereout; 2009-10-12 at 20:56.
 

The Following User Says Thank You to allnameswereout For This Useful Post: