Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 13 Aug 2002 15:34:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 13 Aug 2002 15:34:49 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:13828 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Tue, 13 Aug 2002 15:34:49 -0400 Date: Tue, 13 Aug 2002 12:41:03 -0700 (PDT) From: Linus Torvalds To: Ingo Molnar cc: Christoph Hellwig , Subject: Re: [patch] CLONE_SETTLS, CLONE_SETTID, 2.5.31-BK In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 997 Lines: 29 On Tue, 13 Aug 2002, Ingo Molnar wrote: > > > > Except you actually test the CLONE_SETTLS bit.. > > We've tested clone_startup() with real threads on a 2.4-backported version > of yesterday's final TLS API quite extensively, and it works as expected. > (as we've tested earlier incarnations of the TLS API and code as well.) It's still buggy, and you didn't read what I wrote. + /* + * Notify the child of the TID? + */ + if (clone_flags & CLONE_SETTLS) + if (put_user(p->pid, (pid_t *)childregs->edx)) + return -EFAULT; Find the bug. Find the sentence I wrote that pointed it out last time. Notice how your testing did not find it, since you always just set both flags. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/