Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752507AbYB0HjY (ORCPT ); Wed, 27 Feb 2008 02:39:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755620AbYB0Hi7 (ORCPT ); Wed, 27 Feb 2008 02:38:59 -0500 Received: from mx1.redhat.com ([66.187.233.31]:45842 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755279AbYB0Hi6 (ORCPT ); Wed, 27 Feb 2008 02:38:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Ingo Molnar X-Fcc: ~/Mail/linus Cc: Thomas Gleixner , Andrew Morton , Linus Torvalds , linux-kernel@vger.kernel.org, Tomasz Grobelny Subject: Re: [PATCH] x86 tls prevent_tail_call In-Reply-To: Ingo Molnar's message of Wednesday, 27 February 2008 08:26:17 +0100 <20080227072617.GB4638@elte.hu> References: <20080226210018.A031B26F9A4@magilla.localdomain> <20080227072617.GB4638@elte.hu> X-Windows: more than enough rope. Message-Id: <20080227073821.0C34C2700FD@magilla.localdomain> Date: Tue, 26 Feb 2008 23:38:21 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1078 Lines: 28 > i'm wondering, have you seen this happen in practice? We use > sys_set_thread_area() for every new task started up. I guess we havent > seen problems in the field yet because this early during startup tasks > do not normally receive signals? (or if they do they are fatal and no > user signal context is used.) Tomasz saw it. I don't know what compiler or exact options to it he used. > btw., this whole thing of us having to notice such tail-optimization > incidents is totally fragile and unreliable. Shouldnt there be a "dont > tail-optimize me" attribute which we could stick into asmlinkage? I agree. It's come up before. I'll talk to compiler folks about it again. > Perhaps sparse could detect asmlinkage functions that do not do > prevent_tail_call()s? That sounds like a good idea to me. Thanks, Roland -- 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/