Process descriptor pointer doesn't match current macro in Linux Kernel?

This is because at the base of the kernel stack you will find a struct thread_info instance (platform dependent) and not a struct task_struct . The current() macro provides a pointer to the current task_struct .

Finally, I solved this problem. Everything is correct expect for the size of kernel stack. My kernel use 4KB stack instead of 8KB stack.

So I just need to mask low 12 bits of the ESP. Thanks for all the suggestions and answer!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions