Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5759369ybi; Tue, 4 Jun 2019 11:41:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtjaE1MQaIzwVCuCnTHO8ZENB0aD9foJwA7ZO5dTrCMlh4Qf4+ifKz8GmrXzPz3mnqkOqk X-Received: by 2002:a17:902:a5ca:: with SMTP id t10mr35820418plq.98.1559673700228; Tue, 04 Jun 2019 11:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559673700; cv=none; d=google.com; s=arc-20160816; b=wVvDANJ62Dl0s//TU9ydTZa8VDfTR5S7KS31PbolbkjMQq7l33GdQpEtE5DveUowUX Maa6SVAKkPYsmH0OT/G338h2twUetYVhAIENXa0H3Z3+7nwlgABIN/nmVFh02o/ZOjCc LoXjhRiS6Lubb0HM/wW6qjmBWGAcvu2al93OR4MqQA7Nc1fnsnL3kDQATHUFmvEaH4vh jonfMCNAfY0gF1Vu5cFGrxiilFISECdbehyvnxg3wF99XKEZ/NgYapW6/OkNJdiDY62h IINnD9FNUP1GnEmL2qlQHQy9u9EBYc4tIH37/XPQFA3COQRxN0/7njjNsvypmbqCZNjs hBsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=PeTVnVUQ+GONB0rIWZed0hseSmoR8h88XuUzFAPkiyI=; b=PrxOuDGavJuBq7AjRrTDm1T3hKoFASVLJ/eQl0tHiaM9375SLOVLEimhWvWbaY9qu4 ZjyiGV1zm0KV5RhEk4q8lbZp+nhzzwY3JNaoFF+gdZluJpsnX9pUuwRN+daQ1iZKwTdH B+lhdOusoHv5OhAKmsCcfRQ0zrMrqc9ITNk60ElJqj1xxKM+GNanKJfAx9S+W4uA3Xv2 pwgRpwL5OyYr9ChMVWwaYqhQJsJ8i3yF/yHBgKrp7bKbP9X07rwQ8Iud0QgixUEZTfy+ icaqTJl19Z4d+XdKebPbkcaDJaLO3Io4AOZ5/Uh3mivNjpGkFbh8Yyo+1sAbx8H4Ofml 9v/Q== 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 w13si23258812plp.271.2019.06.04.11.41.23; Tue, 04 Jun 2019 11:41:40 -0700 (PDT) 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 S1726555AbfFDSkT (ORCPT + 99 others); Tue, 4 Jun 2019 14:40:19 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:34963 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfFDSkT (ORCPT ); Tue, 4 Jun 2019 14:40:19 -0400 Received: by mail-qk1-f195.google.com with SMTP id l128so3524412qke.2; Tue, 04 Jun 2019 11:40:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PeTVnVUQ+GONB0rIWZed0hseSmoR8h88XuUzFAPkiyI=; b=B9m4urp2qvPlzop1mX1/3zYLXIUxsEUeOz1JO9Qj8Hf3Xl8qb6VVxj3bebfYdMNV5a 7J/tYgwAp8xSn4gIttAIHt1xmaNEP6d2kAczz+bI7VgxmS9O2TIAZoPjv67gbEvQQIkd qTtv+oAOnpLA9ATeCbaxDrEA8C+MNkAa3JHYpd46m6UFf1buyNVu9Iy/y20OzHrNBbM2 H4VYZfRaFPL4svLkrmwZXdrEYWWB30wkb+tRGR9eGA6TFhzKK+D5bEweMOrgiyt44bFN 74uktXXRfJBSsdmdGBbSo2W/fH3RufAo+ZpDIYBtB+5aUodXc2/pMsqUXkoFTsrVJZE1 ksLw== X-Gm-Message-State: APjAAAXKHuWFJLC4xouZPiYBRl67jjCGzv4iQ7TjL9VAaZrE/yhZ4f5R ay134bi+6I99dHJiUlMnF9PTUPWZfNI1H2idg2E= X-Received: by 2002:a05:620a:16c1:: with SMTP id a1mr28265382qkn.269.1559673618266; Tue, 04 Jun 2019 11:40:18 -0700 (PDT) MIME-Version: 1.0 References: <20190604160944.4058-1-christian@brauner.io> <20190604160944.4058-2-christian@brauner.io> In-Reply-To: <20190604160944.4058-2-christian@brauner.io> From: Arnd Bergmann Date: Tue, 4 Jun 2019 20:40:01 +0200 Message-ID: Subject: Re: [PATCH v3 2/2] arch: wire-up clone3() syscall To: Christian Brauner Cc: Al Viro , Linux Kernel Mailing List , Linus Torvalds , Jann Horn , Kees Cook , Florian Weimer , Oleg Nesterov , David Howells , Andrew Morton , Adrian Reber , Linux API , linux-arch , "the arch/x86 maintainers" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 4, 2019 at 6:09 PM Christian Brauner wrote: > > Wire up the clone3() call on all arches that don't require hand-rolled > assembly. > > Some of the arches look like they need special assembly massaging and it is > probably smarter if the appropriate arch maintainers would do the actual > wiring. Arches that are wired-up are: > - x86{_32,64} > - arm{64} > - xtensa The ones you did look good to me. I would hope that we can do all other architectures the same way, even if they have special assembly wrappers for the old clone(). The most interesting cases appear to be ia64, alpha, m68k and sparc, so it would be good if their maintainers could take a look. What do you use for testing? Would it be possible to override the internal clone() function in glibc with an LD_PRELOAD library to quickly test one of the other architectures for regressions? Arnd