[patch] restrict amd64_set_{f, g}sbase() to values inside user VA

Peter Wemm peter at wemm.org
Sun Jul 10 01:20:44 GMT 2005


On Saturday 09 July 2005 07:26 am, David Xu wrote:
> I had already post similar patch some days ago to re@
>
> David Xu

For what its worth, I think the patch is ok, but it should be build on 
top of David's diff..  The one here isn't complete - there are other 
ways of setting gsbase besides sysarch().

> Joseph Koshy wrote:
> >Does anyone have objections to the following patch?
> >
> >It restricts the values that can be loaded into the FS.base and
> >GS.base MSRs for user processes to those inside of user VA
> >(0..(1<<47) today).
> >
> >These values are used as the base addresses for FS- and GS-
> >relative addressing, when a FS: or GS: segment override
> >is specified in an instruction.
>
> _______________________________________________
> freebsd-amd64 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-amd64
> To unsubscribe, send any mail to
> "freebsd-amd64-unsubscribe at freebsd.org"

-- 
Peter Wemm - peter at wemm.org; peter at FreeBSD.org; peter at yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5


More information about the freebsd-amd64 mailing list