|
|
|
|
|
by jcalvinowens
536 days ago
|
|
The user mapping may be read only, but the kernel will likely use other writable mappings to the same page. Linux for example maintains a big writable linear mapping of all RAM at all times (on 64-bit), you can corrupt read-only user pages through it all day and never fault. Code running in the kernel generlly uses virtual addresses from that mapping. |
|
The kernel has no reason to be trying to bypass page protections; what if you asked it to write to a shared read-only page?