All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [PATCH] uml: fix pte_mkread setting page read/write
@ 2007-02-10 17:27 Paolo 'Blaisorblade' Giarrusso
  2007-02-19 17:34 ` Blaisorblade
  0 siblings, 1 reply; 4+ messages in thread
From: Paolo 'Blaisorblade' Giarrusso @ 2007-02-10 17:27 UTC (permalink / raw)
  To: Jeff Dike; +Cc: user-mode-linux-devel

Fix the fact that pte_mkread set _PAGE_RW instead of _PAGE_USER (the logic is
copied from i386 in most place, so it is really as bad as you're thinking).

Thus currently page tables are more permissive than they should.

Such a change may trigger other latent bugs, so be careful with this.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Index: linux-2.6.git/include/asm-um/pgtable.h
===================================================================
--- linux-2.6.git.orig/include/asm-um/pgtable.h
+++ linux-2.6.git/include/asm-um/pgtable.h
@@ -270,7 +270,7 @@ static inline pte_t pte_wrprotect(pte_t 
 
 static inline pte_t pte_mkread(pte_t pte)
 { 
-	pte_set_bits(pte, _PAGE_RW);
+	pte_set_bits(pte, _PAGE_USER);
 	return(pte_mknewprot(pte)); 
 }
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [PATCH] uml: fix pte_mkread setting page read/write
  2007-02-10 17:27 [uml-devel] [PATCH] uml: fix pte_mkread setting page read/write Paolo 'Blaisorblade' Giarrusso
@ 2007-02-19 17:34 ` Blaisorblade
  2007-02-19 19:52   ` Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: Blaisorblade @ 2007-02-19 17:34 UTC (permalink / raw)
  To: Jeff Dike; +Cc: user-mode-linux-devel

On Saturday 10 February 2007 18:27, Paolo 'Blaisorblade' Giarrusso wrote:
> Fix the fact that pte_mkread set _PAGE_RW instead of _PAGE_USER (the logic
> is copied from i386 in most place, so it is really as bad as you're
> thinking).
>
> Thus currently page tables are more permissive than they should.
>
> Such a change may trigger other latent bugs, so be careful with this.
>
> Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Jeff, no answer to this yet? I've just checked and it's not on the patchset 
page either.
-- 
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [PATCH] uml: fix pte_mkread setting page read/write
  2007-02-19 17:34 ` Blaisorblade
@ 2007-02-19 19:52   ` Jeff Dike
  2007-02-19 21:47     ` Blaisorblade
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Dike @ 2007-02-19 19:52 UTC (permalink / raw)
  To: Blaisorblade; +Cc: user-mode-linux-devel

On Mon, Feb 19, 2007 at 06:34:42PM +0100, Blaisorblade wrote:
> Jeff, no answer to this yet? I've just checked and it's not on the patchset 
> page either.

I already had it in my -mm patchset, minus any attribution, so I guess
I cooked it up myself.  I've been running with it for a long time, so it's
fine by me.

I tossed in your description and SOB and I'll get it off to Andrew unless
you want to send it in first.

				Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

* Re: [uml-devel] [PATCH] uml: fix pte_mkread setting page read/write
  2007-02-19 19:52   ` Jeff Dike
@ 2007-02-19 21:47     ` Blaisorblade
  0 siblings, 0 replies; 4+ messages in thread
From: Blaisorblade @ 2007-02-19 21:47 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Jeff Dike

On Monday 19 February 2007 20:52, Jeff Dike wrote:
> On Mon, Feb 19, 2007 at 06:34:42PM +0100, Blaisorblade wrote:
> > Jeff, no answer to this yet? I've just checked and it's not on the
> > patchset page either.

> I already had it in my -mm patchset, minus any attribution, so I guess
> I cooked it up myself.

Possibly - or I already sent it time ago (I've had it for long time).

> I've been running with it for a long time, so it's 
> fine by me.
>
> I tossed in your description and SOB and I'll get it off to Andrew unless
> you want to send it in first.

You can send it to Andrew - since I have less time than in the past, to avoid 
delaying patches until they're perfect I'm going to send more patches through 
your tree. With this patch, I also wanted to test the process, and see if it 
can work for you.
-- 
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
http://www.user-mode-linux.org/~blaisorblade
Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

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

end of thread, other threads:[~2007-02-19 21:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-10 17:27 [uml-devel] [PATCH] uml: fix pte_mkread setting page read/write Paolo 'Blaisorblade' Giarrusso
2007-02-19 17:34 ` Blaisorblade
2007-02-19 19:52   ` Jeff Dike
2007-02-19 21:47     ` Blaisorblade

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.