ring3 expectation considered harmful?
Posted: Mon Feb 11, 2008 7:14 pm
By optimizing my kernel I have found a bug, my mouse module, which runs at ring 3 suddenly started "crashing", it gave me a pagefault. That's because its codesize is bigger than one page. All my other modules are less than one page big. So I guess the processor doesn't check the tlb for the first page when iret-ing, expecting the code to be both present and be of the correct ring-space, hence the "considered harmful" famous quote?
As you see, Im just an hobbyist trying figurying things out.
As you see, Im just an hobbyist trying figurying things out.