Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3771453ybl; Mon, 13 Jan 2020 02:18:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyVdK61h7kZXsYFBnpWUH3P2FLjVm1ug4RtbqysPKmBae5cAlLa8XiF/y5X0xJ13326KVEb X-Received: by 2002:aca:d887:: with SMTP id p129mr11874140oig.51.1578910721540; Mon, 13 Jan 2020 02:18:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578910721; cv=none; d=google.com; s=arc-20160816; b=FptIjYzVe3cFPM/Hc439UoUkkGoWylleFecKLlFlAaG1BivMg5dLWwA3an2YsLc8Yx OrJANSQ2bJfhR9Fs/ko/4jnYcBf0qu0bplCFCAA2iMuFJqGcYFaQW2aQ41z3PRqgsZaf Z5jD4k867erFs78G3Gk6GWzF9mk285bQVhcxjEtxflSj6foTV3VvhYWJKSjsetO4bYj4 8w8Jy0BC7o7+m3USBkOZb5bWCZyR9xW6h9YkVUGWKyUGql8/qRwpjzSLpTSaR9Hybk84 Zag64bzRhNXZGtrsCNentij2dawpI9WIG2KaPhWY9OEwnhqyqs4ko8EtBjKcVhfeFtAl fIIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=c+1kXwORJHMQnKs5aqZ5he77Vqw/ZyaUxAzWK550iQI=; b=zhMw1eRn4mtsi4s94uNfhuhXrLJEz+zSv8Sr1Ov2s+3MI/Q5L3onUtGyAfexgiV80H /vwr6hX3rshJgnaUXDkz+mI1uoQBS4oCaeJg9GuNOErshoytrrNsVGqj2YiAgDwicrLh lZPpfl/nV8UZIZHw1tJ1KnpnDdYWNbNs7AUIchpI92s7/oWHkXV5PlOBf3o6wnq3UKRV Nj5slI5fKJhBvfZVMsaD3bP+bN84BDBVTzGtNCqib0cLmf+6OyZJ1WgQ86ESjTNGV1Ly AQqcZcI0KoteVHFnJi1SxakjKtsHa89w6Zl7iCNjLm40UCYY0XLV01JZWxcjM86uGTfH F+BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si5603240oia.232.2020.01.13.02.18.29; Mon, 13 Jan 2020 02:18:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728689AbgAMKRS (ORCPT + 99 others); Mon, 13 Jan 2020 05:17:18 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:36615 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgAMKRS (ORCPT ); Mon, 13 Jan 2020 05:17:18 -0500 Received: from ip5f5bd663.dynamic.kabel-deutschland.de ([95.91.214.99] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iqwmZ-0006e1-T4; Mon, 13 Jan 2020 10:17:16 +0000 Date: Mon, 13 Jan 2020 11:17:15 +0100 From: Christian Brauner To: Geert Uytterhoeven Cc: Kars de Jong , Linux Kernel Mailing List , Linux/m68k , Amanieu d'Antras Subject: Re: [PATCH] m68k: Wire up clone3() syscall Message-ID: <20200113101714.75v5gmg3rb5tlhze@wittgenstein> References: <20191124195225.31230-1-jongk@linux-m68k.org> <20200113091813.zkye72cubpfhemww@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 13, 2020 at 10:34:35AM +0100, Geert Uytterhoeven wrote: > Hi Christian, > > On Mon, Jan 13, 2020 at 10:18 AM Christian Brauner > wrote: > > On Mon, Jan 13, 2020 at 10:10:26AM +0100, Geert Uytterhoeven wrote: > > > On Sun, Jan 12, 2020 at 5:06 PM Geert Uytterhoeven wrote: > > > > On Sun, Nov 24, 2019 at 8:52 PM Kars de Jong wrote: > > > > > Wire up the clone3() syscall for m68k. The special entry point is done in > > > > > assembler as was done for clone() as well. This is needed because all > > > > > registers need to be saved. The C wrapper then calls the generic > > > > > sys_clone3() with the correct arguments. > > > > > > > > > > Tested on A1200 using the simple test program from: > > > > > > > > > > https://lore.kernel.org/lkml/20190716130631.tohj4ub54md25dys@brauner.io/ > > > > > > > > > > Cc: linux-m68k@vger.kernel.org > > > > > Signed-off-by: Kars de Jong > > > > > > > > Thanks, applied and queued for v5.6. > > > > > > Which is now broken because of commit dd499f7a7e342702 ("clone3: ensure > > > copy_thread_tls is implemented") in v5.5-rc6 :-( > > > > Sorry, just for clarification what and how is it broken by > > dd499f7a7e342702 ("clone3: ensure > copy_thread_tls is implemented") > > ? > > Because m68k does not implement copy_thread_tls() yet, and doesn't > select HAVE_COPY_THREAD_TLS yet. Oh right, sorry. I forgot that m68k has a patchset to enable clone3() up for merging. I should've remembered that and warned you that we will have to require copy_thread_tls() going forward. I hope the merge is explanatory enough why we're doing it this way. > > Looking into fixing that... Thank you! Much appreciated! Christian