The code that I want to run is simply a while loop in a function, starting at $1006D0.
Page table entry before and after the problem happens: $100023 (means: $100000 -> $101000 is read-write-accessed-usermode)
Error code: $5 (means:: read from usermode)
es, gs, fs, es: $23 (my user data segment selectors, kernel is $10)
cs: $1B (my user code segment selector, kernel is $8)
CR2: $1006D0 (that's where the code is)
Why do I get read errors when the memory is readable?
