Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933051AbbELVjx (ORCPT ); Tue, 12 May 2015 17:39:53 -0400 Received: from casper.infradead.org ([85.118.1.10]:39186 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753915AbbELVi6 (ORCPT ); Tue, 12 May 2015 17:38:58 -0400 Date: Tue, 12 May 2015 23:38:43 +0200 From: Peter Zijlstra To: Andrew Morton Cc: Josh Triplett , Andy Lutomirski , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Linus Torvalds , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCHv2 1/2] clone: Support passing tls argument via C rather than pt_regs magic Message-ID: <20150512213843.GV21418@twins.programming.kicks-ass.net> References: <20150511192918.GA11361@jtriplet-mobl1> <20150512142250.dcb053da81855ae1b5861173@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150512142250.dcb053da81855ae1b5861173@linux-foundation.org> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1755 Lines: 33 On Tue, May 12, 2015 at 02:22:50PM -0700, Andrew Morton wrote: > On Mon, 11 May 2015 12:29:19 -0700 Josh Triplett wrote: > > > Introduce a new CONFIG_HAVE_COPY_THREAD_TLS for architectures to opt > > into, and a new copy_thread_tls that accepts the tls parameter as an > > additional unsigned long (syscall-argument-sized) argument. > > Change sys_clone's tls argument to an unsigned long (which does > > not change the ABI), and pass that down to copy_thread_tls. > > > > Architectures that don't opt into copy_thread_tls will continue to > > ignore the C argument to sys_clone in favor of the pt_regs captured at > > kernel entry, and thus will be unable to introduce new versions of the > > clone syscall. > > What happens quite frequently is that we do something for x86 with the > expectation that other architectures will follow along, but this > doesn't happen. The arch maintainers simply didn't know about it or > nobody nags them. Nothing happens and inconsistencies hang around for > years. eg, http://lkml.iu.edu/hypermail/linux/kernel/1504.2/04993.html > > I'm thinking we should find a way to do this better. One way might be > to maintain a Documentation/arch-todo which identifies each item, has a > little list of what-to-do instructions and perhaps a list of the > not-yet-done architectures. Basically a way for everyone to > communicate at the arch maintainers. If only there was a linux-arch list to which arch maintainers should subscribe... oh wait :-) -- 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/