How can a driver change the kernel page table?

Posted by Naruto on Super User See other posts from Super User or by Naruto
Published on 2013-09-13T06:46:14Z Indexed on 2014/08/22 22:24 UTC
Read the original article Hit count: 189

Filed under:
|

I am encountering an issue with kernel memory. When my driver finishes running, the other processes in kernel fail to run, for example, I run ls, the command crashes the kernel with error "Corrupted page table" at a specified address. I do not know whether the page table of my driver relates to the page table of other process. How can my driver changes the page table of the other processes? And how the driver of a process relates to the kernel page table?

As I know when the driver runs, it will be switched to kernel context. Kernel has its own page table and the driver has it own one. What is the relation among the kernel page table, the page table of my driver and the page table of the other processes when it runs in kernel context?

© Super User or respective owner

Related posts about linux

Related posts about kernel