Linux.com

Home Linux Community Forums Programming and Development Kernel Development access user task stack from kernel control path

access user task stack from kernel control path

Link to this post 28 May 10

Hi,

for a research project I need to access the kernel stack of a suspended process from the kernel control path. Furthermore I need to search the user stack of that process. I know that through the SAVE_ALL macro all register values (ss, esp, eflags ... ecx and ebx) are saved on the kernel task stack. Now I need to know how to access the user stack of a process with the combination of ss and esp values if the task is suspended or maybe paged. Can anybody tell me how the address translation is performed using ss and esp? I will appreciate it if anybody can help me.

Best regards

Link to this post 12 Jun 10

are you trying to accomplish this in C or Assembler? I wish I could help you personally, but all of my Assembler experience is in real-mode and generally not helpful to you in this situation. However, if no one else here can come up with an answer, you may want to try asking some of the folks on one of the mailing lists for projects that pertain more directly to the kernel. I wouldn't necessarily engage the kernel developer's mailing list directly, but the guys working on the xen project are elbow deep in the kernel and generally pretty helpful.

good luck.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board