Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 18 Nov 2002 10:54:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 18 Nov 2002 10:54:07 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:14353 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Mon, 18 Nov 2002 10:54:05 -0500 Date: Mon, 18 Nov 2002 08:00:57 -0800 (PST) From: Linus Torvalds To: Ulrich Drepper cc: Ingo Molnar , Luca Barbieri , Kernel Mailing List Subject: Re: [patch] threading fix, tid-2.5.47-A3 In-Reply-To: <3DD88CB5.5070904@redhat.com> 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: 732 Lines: 21 On Sun, 17 Nov 2002, Ulrich Drepper wrote: > > which works for me. But since in schedule_tail() the code reads > > + if (current->user_tid) > + put_user(current->pid, current->user_tid); > > this enables writing the TID even if CLONE_CHILD_SETTID isn't set. The > question is: how to access the clone flag information in the child? The alternate approach is to just say that using CLEARTID without SETTID is a bug. I think that's the right approach. 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/