WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] NPTL/TLS segment flipping code problem

To: Nuno Silva <nuno.silva@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] NPTL/TLS segment flipping code problem
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sun, 09 Jan 2005 09:13:02 +0000
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 09 Jan 2005 09:14:10 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: Your message of "Sun, 09 Jan 2005 06:13:36 GMT." <41E0CB90.801@xxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
I don't think that would get us all the way. It would stop ld.so
linking to TLS glibc after booting, but:
 1. GCC can now emit -ve offset accesses directly in application
    binaries. So the problem may not be entirely solvable at
    link-time. 
 2. Still need to deal with linking of 'init' process, which is run
    before you get a chance to set LD_ASSUME_KERNEL. 

Maybe there's a workaround for 2 less invasive than deleting /lib/tls,
but I don't know what it is.

 -- Keir

> 
> Hi!
> 
> Ian Pratt wrote:
> 
> [..]
> 
> > We really need to look into producing a suitably patched glibc
> > rpm. Likewise, we need to prevent gcc from generating -ve offsets
> > for tls as the default.
> 
> You can workaround that in userspace with:
> LD_ASSUME_KERNEL=2.4.9
> 
> Set it in /etc/environment or in your kernel command line. The later 
> depends on your setup: IMMV.
> 
> Regards,
> Nuno Silva
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel