Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1222618ybk; Thu, 14 May 2020 03:41:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB6gXfZq3PEM8djDr5f5QUVDgo2tj20/YJQbsoOHadCDWQiRYBH4YZVLuQ1c2WLvY/MaE1 X-Received: by 2002:a17:906:310e:: with SMTP id 14mr3248556ejx.177.1589452906834; Thu, 14 May 2020 03:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589452906; cv=none; d=google.com; s=arc-20160816; b=pOF1NVvB6HjA01Y27oogIdRpKiCPuXm8DpMVJkvhdK9m94sRv+eosJWjghehavg1SG 4tiDNddYXxkyPot7LK43vbK8VQkIUmms+p4MwndyNrJquJGs7Cq8iBOenI8hz315IDUf Rq7bCInJ5cycnyuTxCJGjMK/JqYI0HSF3ffn0Ln7x0E4iTuVCOqhk52xhqtUoc8ofgsZ 8MdJSK8HVPO0pzLl4t/hwY/e0PCJ8PIlfXyAfN2VUHB1yCUJDvLgHXTzgqH2L1pQrUvu XOk/wuWYxh5D+MCq72nBNjjRrzFjAn2/+H8mR0/dC/+EvojVBibbCb2HOaF7LUXTnMAn zZiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=kzpKcAXnML+eiG89jR9v+f52TB68+/zCIVeR2Y2WAnQ=; b=uCW/B914K5tjLoDXo3wq4bRovi8nnYGVc5Ne+JoJW8EjWe8HXhfzdVwMzfp5hVFGbb qpfxqpBQWtDCcguhjhJULRSAmn9luQQXSpGoDGXX7bSdQnAukncD1SKVbG1nnZ9WLogX O8Dn9dhfksQY1xmkLN4V7r6XVo+9yyxrbkwQXWSzCX2vhttUigAVhm3zPxv7W3bMxDOY sOLlI/ER7ftuozx38+jTyU/EgolzOU5ZCDuKAn9IqNg5+nkq2l/mfA0MLUKAUdJbneUf 3+pBQ4rRdWwY/Q+7YV6Y1wkma39C37LC6GXc4Baevx4HX3MWvi1pPJb967s+ojkLq+K9 RYoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss21si1541527ejb.124.2020.05.14.03.41.23; Thu, 14 May 2020 03:41:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726067AbgENKjw (ORCPT + 99 others); Thu, 14 May 2020 06:39:52 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:34763 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgENKjw (ORCPT ); Thu, 14 May 2020 06:39:52 -0400 Received: from ip5f5af183.dynamic.kabel-deutschland.de ([95.90.241.131] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jZBHI-0001Uc-87; Thu, 14 May 2020 10:39:48 +0000 Date: Thu, 14 May 2020 12:39:47 +0200 From: Christian Brauner To: John Paul Adrian Glaubitz Cc: "Luck, Tony" , "Yu, Fenghua" , "linux-ia64@vger.kernel.org" , Al Viro , Arnd Bergmann , Thomas Gleixner , Ingo Molnar , Sebastian Andrzej Siewior , "Peter Zijlstra (Intel)" , Qais Yousef , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ia64: enable HAVE_COPY_THREAD_TLS, switch to kernel_clone_args Message-ID: <20200514103947.w4segr3rvwy4mjnh@wittgenstein> References: <20200514074606.vkc35syhdep23rzh@wittgenstein> <6b298416-1e64-eee7-0bb4-3b1f7f67adc6@physik.fu-berlin.de> <20200514100459.pt7dxq2faghdds2c@wittgenstein> <2e22b0d2-b9ce-420d-48a0-0d9134108a5c@physik.fu-berlin.de> <20200514101540.25hvle74w63t66fs@wittgenstein> <20200514101914.fu7xhgaxtb5fy2ky@wittgenstein> <4aad9ad5-b0e9-12b0-0ad2-ac23fceae87b@physik.fu-berlin.de> <20200514103259.tdfjc5ds4igpmoxj@wittgenstein> <666503de-d8f9-b19c-6924-ab80d36cd446@physik.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <666503de-d8f9-b19c-6924-ab80d36cd446@physik.fu-berlin.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 14, 2020 at 12:35:49PM +0200, John Paul Adrian Glaubitz wrote: > On 5/14/20 12:32 PM, Christian Brauner wrote: > > Do you have a very minimalistic ia64 userspace preferably without systemd where > > you could simply test. That should give us an idea whether things work: > > > > #define _GNU_SOURCE > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > > > #define STACK_SIZE (8 * 1024 * 1024) /* standard stack size for threads in glibc */ > > > > int main(int argc, char *argv[]) > > { > > char *stack; > > pid_t pid; > > > > stack = mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE, > > MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0); > > if (stack == MAP_FAILED) > > exit(EXIT_FAILURE); > > > > /* > > * Note that legacy clone() has different argument ordering on > > * different architectures so this won't work everywhere. > > */ > > pid = syscall(189 /* __NR_clone2 */, SIGCHLD, stack, STACK_SIZE, NULL, NULL); > > if (pid < 0) > > exit(EXIT_FAILURE); > > if (pid == 0) > > exit(EXIT_SUCCESS); > > if (wait(NULL) != pid) > > exit(EXIT_FAILURE); > > > > exit(EXIT_SUCCESS); > > } > > root@titanium:~# gcc systemd_test.c -o systemd_test > root@titanium:~# ./systemd_test > root@titanium:~# echo $? > 1 > root@titanium:~# > > I can also give you access to this machine. Yes please! :) My ssh key should be on https://launchpad.net/~cbrauner Christian