Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3782131ybi; Mon, 29 Jul 2019 12:31:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHjlGW47w5YkClcSbZe85YhDk1MAir33waOlHxCNg0D912T1VjATcVZ0n6QbO/pnqDr+wI X-Received: by 2002:aa7:8e17:: with SMTP id c23mr38328385pfr.227.1564428687533; Mon, 29 Jul 2019 12:31:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564428687; cv=none; d=google.com; s=arc-20160816; b=vshi/oAPiOF1UAUjLL3pS+HYcg9sL3gmvc21vt3UdD0HPPFjST9rpgV1yUBZupQJyh 9qcr1sRIthX9EFmB3dDN40BvV2nXMATL9tbpOmBU5OUZukMS2LOfyTkGHUsTjA4Z3PP9 O/Spqif+9r2mGTqv0yiBQjz+20sRGjjEaMLKSIPxRiiJZGApFpqMd02rXmJJH+9nqNfh VBu4GfY1nhu/FobJdr7YSkKdh+WgQlhwxofmtOqFr9YboVSmNEXugkKue8D48D+Z9fcX 5o8c49Gt8plOxkU/VUPiNCHZahpd/e51khJ1mOtjMNCjXpMSg0vfOnsnpA7Q5exn3Gvc x/Mg== 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:dkim-signature; bh=fkNhqmWyxRYv5Kdfb5HpWhEVzT1gnAMwAelRd/BmI88=; b=YIyYsxj2/scMlfFQmfLoOFzMPHAiqpzdSYs3RfghQIik0H2GefUaztlhdAINb49D6G Icr3xfVtHCYW1hHul6TKvYFkMCLIuA4V0GPLSl0SHDRXFbk1eBNOl4VNAQhY0UQd8AiS VSYmXShecIJ35QYEVHkmqvQS3ykrJAVL5Ekyl0C9JDKqRDjX1DlTLJgVzwoOHcZEGQEH BtoAJV834IySW4PrbA92LnViituyQOUunxaDcxpCkVPswtkCUutbjRzrZFYjdoMyedUN ewbC7TjPaDH0dMTVEX1XpbX4bX+fcgl27+gSQreg7aRfHy7IAQOirC0Ba9lbq1WyHLWR lubw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JRwGlQTb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si24370872pjq.62.2019.07.29.12.31.12; Mon, 29 Jul 2019 12:31:27 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JRwGlQTb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729339AbfG2TSK (ORCPT + 99 others); Mon, 29 Jul 2019 15:18:10 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:36330 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729315AbfG2TSK (ORCPT ); Mon, 29 Jul 2019 15:18:10 -0400 Received: by mail-io1-f68.google.com with SMTP id o9so18949813iom.3 for ; Mon, 29 Jul 2019 12:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fkNhqmWyxRYv5Kdfb5HpWhEVzT1gnAMwAelRd/BmI88=; b=JRwGlQTbHXYqHAf8W32La/6QQeE5VTgq2DtbFa/+2ygIuaZI7jENRSdi5GU9I11yqm C7CybBUDK4Rb5/31p8FYbL9luLdLCLLJ/+80tCnvSxVHp5a9rhlT/sfaHb4pyNqCUk9g MfHaxe22qMlof1s8ExD5ILbRslPUcPi6NJJXX3yZlZ6/FlIXMENgk+QoohcfAY2infu4 8SY5z0MTBqbpI5B65gd3f/kBXBe2WV3Zlpu9RGYcsGiBOrWFboCMS+DH9cvDlP448X/j rL8BZg3qtalU8KG8IkFRer/qIlBPdTcYgkaxvXqhOzaXrNO/r4Bx6enkWweTtxaXoja5 1G4g== 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=fkNhqmWyxRYv5Kdfb5HpWhEVzT1gnAMwAelRd/BmI88=; b=hcBHo0RcUuoLTds7L24B0kOGbkptNvROgdJYlABqCIDmji2GT0lMgkw9CukAI6sX6b 9oqVeVlyry6FpYHTHKfwAFQmDkeXwVDnizADFWwk9ndDUFKSVCn68C0kNCRG0oHxBAnZ PPlHpP/YsSfuhPdKxxgsFsNe6NQM9Q2CLDoJtU2HNEt5IqjZLnq1F7bjjwn5BhRygigW zYGQCmNkKVq7NZQmW9m/i3odDz7rDFLJw4zpYb6WtgJ70//+INXUPhdJ+08vsKnlVoDZ heyVJ/NQYVdaU83IbXplpyc6uI83YCwZpLW2YDuBHKOL6plfMnDz1zif74riD8DYRNOl LMyQ== X-Gm-Message-State: APjAAAWcga2umPbBqaqb9Xj7bh+fHC2Jt3oN1uCSiqMUC5m2RzHIFjjn PJJmWCcN5w0lWt8Fp+cQMQ5c9uEV2zv16Hwycq0= X-Received: by 2002:a5e:de0d:: with SMTP id e13mr3557196iok.144.1564427889720; Mon, 29 Jul 2019 12:18:09 -0700 (PDT) MIME-Version: 1.0 References: <20190729163355.4530-1-areber@redhat.com> In-Reply-To: From: Dmitry Safonov <0x7f454c46@gmail.com> Date: Mon, 29 Jul 2019 20:17:58 +0100 Message-ID: Subject: Re: [PATCH 1/2] fork: extend clone3() to support CLONE_SET_TID To: Adrian Reber Cc: Christian Brauner , Eric Biederman , Pavel Emelianov , Jann Horn , open list , Oleg Nesterov , Andrei Vagin , Mike Rapoport , Radostin Stoyanov 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 Mon, 29 Jul 2019 at 20:12, Dmitry Safonov <0x7f454c46@gmail.com> wrote: > > On Mon, 29 Jul 2019 at 17:52, Adrian Reber wrote: > [..] > > --- a/include/uapi/linux/sched.h > > +++ b/include/uapi/linux/sched.h > > @@ -32,6 +32,7 @@ > > #define CLONE_NEWPID 0x20000000 /* New pid namespace */ > > #define CLONE_NEWNET 0x40000000 /* New network namespace */ > > #define CLONE_IO 0x80000000 /* Clone io context */ > > +#define CLONE_SET_TID 0x100000000ULL /* set if the desired TID is set in set_tid */ > > > > /* > > * Arguments for the clone3 syscall > > @@ -45,6 +46,7 @@ struct clone_args { > > __aligned_u64 stack; > > __aligned_u64 stack_size; > > __aligned_u64 tls; > > + __aligned_u64 set_tid; > > }; > > > > I don't see a change to > : if (unlikely(size < sizeof(struct clone_args))) > : return -EINVAL; > > That seems backwards-incompatible, but I may miss some part.. On the other hand, clone3() was merged in v5.3 window, so probably, it doesn't matter. -- Dmitry