Re: repost: patch for 2.1.108 LDT problems

H. Peter Anvin (hpa@transmeta.com)
7 Jul 1998 20:49:22 GMT


Followup to: <35A178A8.EFB8C3FC@star.net>
By author: Bill Hawes <whawes@star.net>
In newsgroup: linux.dev.kernel
>
> This is a multi-part message in MIME format.
> --------------B0307D24247B5DD3740D8097
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> The attached patch is an update for 2.1.108 of the previous patch to fix
> various LDT-related problems.
>
> The patch ensures that each clone task using an LDT gets its own slot in
> the GDT, in case the prior task exits first. It also adds some sanity
> checks when LDT entries are being changed, and improves the register
> dump routine to display additional information.
>
> The patch is well tested and is necessary to avoid easily-triggered
> oopses when running apps that use LDTs.
>

Wouldn't it be better to keep a refcounter on this and let them share
an LDT? Perhaps that should be a CLONE_ flag?

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu