Skip to contentSkip to conversation

about kernel stack FP

DISCUSSION Bob.Wang 1 participant 1 message Jul 18, 2013

lore
Share & tools
lore

Bob.Wang

author
#0 lore raw

Hello everyone

I have meeted a problem with linux kernel 2.6.X.X that my user app wants to get thread kernel stack frame ponter(FP)
from user space by system call or /proc system or any other ways except driver. I do not want to write a driver,) to steal
FP from kernel. I have tried to use ptrace syscall to get FP with command PTRACE_GETREGS, but It returns only user
stack FP rather than kernel stack fp.

would anyone please to give me a hint to solve the problem.

thanks a lot.

regards

Bob Wang