Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934431Ab2J0Dcp (ORCPT ); Fri, 26 Oct 2012 23:32:45 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57010 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934382Ab2J0Dcn (ORCPT ); Fri, 26 Oct 2012 23:32:43 -0400 Date: Sat, 27 Oct 2012 04:32:22 +0100 From: Al Viro To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Linus Torvalds , Catalin Marinas , Haavard Skinnemoen , Mike Frysinger , Jesper Nilsson , David Howells , Tony Luck , Benjamin Herrenschmidt , Hirokazu Takata , Geert Uytterhoeven , Michal Simek , Jonas Bonn , "James E.J. Bottomley" , Richard Kuo , Martin Schwidefsky , Lennox Wu , "David S. Miller" , Paul Mundt , Chris Zankel , Chris Metcalf , Yoshinori Sato , Guan Xuetao Subject: Re: [update] Re: new execve/kernel_thread design Message-ID: <20121027033222.GT2616@ZenIV.linux.org.uk> References: <20121016223508.GR2616@ZenIV.linux.org.uk> <20121026183107.GQ2616@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121026183107.GQ2616@ZenIV.linux.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2505 Lines: 54 On Fri, Oct 26, 2012 at 07:31:07PM +0100, Al Viro wrote: > The situation got much better by now. More than a half of > architectures are done - alpha arm arm64 c6x hexagon ia64 m68k mips openrisc > parisc sparc tile um unicore32 and x86. > > Two more avait ACKs from maintainers - powerpc and s390. Should work, > AFAICS. > > xtensa - Max was going to repost updated patches; waiting for that > to happen, but essentially it's done and tested. > > microblaze - Michal was debugging kernel_execve side of it the last > time I've heard from him... > > frv, mn10300 - dhowells was going to test those > > sh - Paul Mundt was going to test and send fixes > > avr32, blackfin, cris, h8300, m32r, score - no signs of life from > maintainers. Folks, please show up and at least test the damn patchsets. > Hell knows, they might even work - unicore32 one did, modulo trivial typo, > to my deep surprise... BTW, there's a tangentially related issue: several architectures have very odd clone(2). Namely, blackfin, h8300, no-MMU microblaze and sh64 (==sh5) silently ignore child_tidptr and parent_tidptr arguments. I.e. treat them as NULL - or as if CLONE_PARENT_SETTID/CLONE_CHILD_SETTID/CLONE_CHILD_CLEARTID were never set. With the patchset in the local part of queue it would be trivial to switch to normal semantics; strictly speaking, it's an ABI change. Somebody doing n = 0x69696969; if (clone(CLONE_PARENT_SETTID, 0, &n) > 0) { if (n != 0x69696969) { printf("oh, shit, we are not on blackfin\n"); exit(-1); } } would run into a user-visible behaviour change, but IMO that's in the realm of testing for known architecture-dependent bugs and finding them fixed... Opinions, vetoes? Should we preserve the current behaviour in this case? I would obviously prefer to just go ahead and fix the sucker - the odds of any actual software depending on that behaviour are pretty much nil. Linus, does that cross the boundary between bug fix and ABI breakage? Another curious thing happens on blackfin; there we subtract 12 from usp when it's non-zero (zero == inherit the parent's usp, as always). No idea why is that done; this one definitely has to be preserved, so I'm just wondering about the reasons behind that oddity... Mike? -- 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/