Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp551882ybh; Wed, 18 Mar 2020 04:59:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsEhtAgq01zScBhg2/67nOGeocLMIQtMQg0cwluIb2YpJlxc8bOPAITwXnxvwaxe+zImBoM X-Received: by 2002:a05:6808:105:: with SMTP id b5mr892653oie.55.1584532750625; Wed, 18 Mar 2020 04:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584532750; cv=none; d=google.com; s=arc-20160816; b=WikW0N81IhLHNS1r6rj4GFhk2bwZuVRzYlKsnL4XqT9O5fxgrjp692kXoef09pX9mh a5xCe78jX3XnHRPT5aqQqhYfe1CyKA/cEnUVwHF+qXAS4dPPkxok1AGyzzbuK4v4WySh 7ysOUi3oCGq6ZxTqyKdA6bcvuNq1gvddLVYTyLkIJlFxoLnvQy73VcMwEbwRP70Yhq6r CguGHOLQtTENIIufGt/dHOI6iBooryTiW7sTSzECr+UJdytNFKSTaYLp7nRf6yR3XTfH KG5gsqj/M5blJ5nlfkBzPf5w0DjDo07lcX1ls5vrVVOPm0XolsGnDQaIfyV01ZIKILU+ PusA== 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=bOh82Uk9/46BJDQMnoudkSrPB+ziREJStISdGsYdtl0=; b=fB/aFsJxaEYJRRYSpwxe9MjOpHwwH4RNj9QEUjLGlyjHfJVpbNs8l9hr5Q5HxF4TSK zAKwD9zi6NZXV+IsCnTRXBWjzWgRHbc0BXSaZuR4peV2aCWeK4PKQ35vSHNNx2GAXuMX WdJ9cX6msCw/lMXfL16hWQ6E8+Ldls5iTQlrftfTHMWJYsUmgdWs6Gwj5gAfMXU7P5AE Mnj+6lVVI3+lJIFxaqHTnh6ASE7svDgubQD0KDpqgHfVTOtCU3HxYS1hNM+kk6FjAJ/P QXDRIJEaM6U591hAtm4oduZbTBmPvnt0zXntXJwRqb5BZqjKExHgl7F7B8SmZ5Nk5rGJ pJeQ== 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 b11si3129711oii.11.2020.03.18.04.58.58; Wed, 18 Mar 2020 04:59:10 -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 S1726780AbgCRL6N (ORCPT + 99 others); Wed, 18 Mar 2020 07:58:13 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35509 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726619AbgCRL6N (ORCPT ); Wed, 18 Mar 2020 07:58:13 -0400 Received: from ip5f5bf7ec.dynamic.kabel-deutschland.de ([95.91.247.236] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jEXKj-0008RD-8l; Wed, 18 Mar 2020 11:58:01 +0000 Date: Wed, 18 Mar 2020 12:58:00 +0100 From: Christian Brauner To: Cyrill Gorcunov Cc: Adrian Reber , Eric Biederman , Pavel Emelyanov , Oleg Nesterov , Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , linux-kernel@vger.kernel.org, Mike Rapoport , Radostin Stoyanov , Michael Kerrisk , Arnd Bergmann , Thomas Gleixner Subject: Re: [PATCH 1/4] ns: prepare time namespace for clone3() Message-ID: <20200318115800.p4rsqua6tglydulu@wittgenstein> References: <20200317083043.226593-1-areber@redhat.com> <20200317083043.226593-2-areber@redhat.com> <20200318105747.GP27301@uranus> <20200318111726.u2r3ghymexyng5nn@wittgenstein> <20200318112814.GQ27301@uranus> <20200318115731.3vn7cjchunk2bqoe@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200318115731.3vn7cjchunk2bqoe@wittgenstein> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2020 at 12:57:32PM +0100, Christian Brauner wrote: > On Wed, Mar 18, 2020 at 02:28:14PM +0300, Cyrill Gorcunov wrote: > > On Wed, Mar 18, 2020 at 12:17:26PM +0100, Christian Brauner wrote: > > > On Wed, Mar 18, 2020 at 01:57:47PM +0300, Cyrill Gorcunov wrote: > > > > On Tue, Mar 17, 2020 at 09:30:41AM +0100, Adrian Reber wrote: > > > > ... > > > > > +/* > > > > > + * This structure is used to set the time namespace offset > > > > > + * via /proc as well as via clone3(). > > > > > + */ > > > > > +struct set_timens_offset { > > > > > + int clockid; > > > > > + struct timespec64 val; > > > > > +}; > > > > > + > > > > > > > > I'm sorry, I didn't follow this series much so can't comment right now. > > > > Still this structure made me a bit wonder -- the @val seems to be 8 byte > > > > aligned and I guess we have a useless pad between these members. If so > > > > can we swap them? Or it is already part of api? > > > > > > It's not part of the api yet. We're still arguing about how and what we > > > want to pass down. > > > > I see, thanks for info! So I think we could swap the members. > > Yeah, _if_ we go with a version of this struct we definitely need to > ensure proper padding/alignment! Input/ideas totally welcome of course!