linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC, PATCH] fix verify_write for 80386 support
@ 2003-04-21 20:28 Manfred Spraul
  2003-04-21 20:36 ` Manfred Spraul
  0 siblings, 1 reply; 3+ messages in thread
From: Manfred Spraul @ 2003-04-21 20:28 UTC (permalink / raw)
  To: linux-kernel

Real 80386 cpus have a special feature: they ignore the write-protected 
bit in the page tables if the kernel runs at ring 0. This feature breaks 
COW, the software must manually check the write protected bit before 
writing.

Right now the check happens only in access_ok(VERIFY_WRITE).
This is broken, because:
- some codepaths call access_ok(VERIFY_READ), and then write.
- kswapd might change the page permissions between access_ok and the 
actual write access.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-22  2:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-21 20:28 [RFC, PATCH] fix verify_write for 80386 support Manfred Spraul
2003-04-21 20:36 ` Manfred Spraul
2003-04-22  2:13   ` Brian Gerst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).