c - In a Linux user space process what is the address of the vsyscall page? -


I would like to get the address of the vsyscall page for my use. I have only two ideas: start this information __ start, or After reading / proc / [pid] / maps, change the compiler to be stored in some known location. I really do not want to read / proc / because it is slow and should not be required. I do not want to make compiler modifications, do anybody have any options? Is there a symbol about which I should know?

This means that I am dividing this functionality into modules in an ioctl call which I have developed as part of this work!

Here's a knife in the dark:

If you can determine If the process stack starts from which address, then you might find the parameters that were provided for __start . You can then access the parameters on the appropriate offset corresponding to the initial stack pointer through pointers of set type.

According to the article, write some instructions before __start initial arguments in a deterministic way before calling __ libc_start_main .

Obviously, any such approach is subject to stage-specific and instability if the change in the implementation of the __start was changed.


Comments

Popular posts from this blog

bytearray - Removing trailing nulls from byte array in C# -

linux - Authenticating GTK app to run with root permissions -

WPF TextBlock Overflow Text to the Left -