From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 579E8C432C3 for ; Thu, 14 Nov 2019 08:32:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B34620715 for ; Thu, 14 Nov 2019 08:32:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbfKNIco (ORCPT ); Thu, 14 Nov 2019 03:32:44 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:60739 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbfKNIcn (ORCPT ); Thu, 14 Nov 2019 03:32:43 -0500 Received: from [213.220.153.21] (helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iVAYE-00080a-ET; Thu, 14 Nov 2019 08:32:26 +0000 Date: Thu, 14 Nov 2019 09:32:25 +0100 From: Christian Brauner To: Adrian Reber Cc: Eric Biederman , Pavel Emelyanov , Jann Horn , Oleg Nesterov , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , linux-kernel@vger.kernel.org, Andrei Vagin , Mike Rapoport , Radostin Stoyanov Subject: Re: [PATCH v9 1/2] fork: extend clone3() to support setting a PID Message-ID: <20191114083224.hiphdnb2fy4ezia2@wittgenstein> References: <20191114070709.1504202-1-areber@redhat.com> <20191114081359.axnoioa25grf3ffv@wittgenstein> <20191114082209.GE1252861@dcbz.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191114082209.GE1252861@dcbz.redhat.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 14, 2019 at 09:22:09AM +0100, Adrian Reber wrote: > On Thu, Nov 14, 2019 at 09:14:00AM +0100, Christian Brauner wrote: > > On Thu, Nov 14, 2019 at 08:07:08AM +0100, Adrian Reber wrote: > > > * The structure is versioned by size and thus extensible. > > > * New struct members must go at the end of the struct and > > > @@ -71,6 +85,8 @@ struct clone_args { > > > __aligned_u64 stack; > > > __aligned_u64 stack_size; > > > __aligned_u64 tls; > > > + __aligned_u64 set_tid; > > > + __aligned_u64 set_tid_size; > > > > Oh, one thing that is missing is the addition of > > > > +#define CLONE_ARGS_SIZE_VER1 80 /* sizeof second published struct */ > > > > in sched.h. Please add that, when you resend. > > Even if it is unused? Yes, I think so. It's nice for userspace to have these macros for versioning purposes. We already started exposing this versioning with _VER0 to userspace. Christian