Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp551595ybh; Wed, 18 Mar 2020 04:58:45 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsa+TU6F1flOfogTxlKQdgkxDFhX5NXKgDVz6r8RGZ5mQP3TbsSWL0K4SEMv5O/pRcZtozl X-Received: by 2002:aca:e082:: with SMTP id x124mr2860978oig.85.1584532725094; Wed, 18 Mar 2020 04:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584532725; cv=none; d=google.com; s=arc-20160816; b=TMstT94X42Z/xCsTZlwt6dsgXgfjZnWU4sxqeDd+Oz5I1gz3gbbX0dCFmTKaOOQb90 VKvlxmyI5XKmGnAUoeYyq9MK7giS30+cIAbNTzNE/J9yEjckWRTRlIhwbS9KHNT4XpPM r9b1my2TB+jkjBI6ppsGj3ZHypF/zk1nYLJcibTRMG5DDcjbW+W9xAEwYcsVA7HWfP1e 3RrbJpgxPusDP5PaGOvjA8ji3J5ItTu+CI9f7hXirIq2f3AzZ7QLV0aXpeqyD2Gdi9MY +/TmVxKV55kIcPQSvmC9oR1XuujjsFOOEEIkaC1tB7hTShc3pZsqphLWn7tfUHRTx5NU 02UQ== 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=wWxKHzd5skeS4a1fwWb2rMJeu5umDRQLVuCIX2K56I4=; b=v6NW0iy1+0DJJXF4Ivf5dDspgE5AWR0NTct929f5zSAaiR3b6ggK2eUJdPTO9LoVCU bIC7qyNuhbhmpndKJo9HWP0x7UIXOfKHuGolGb1g8/lDjDePhYuDOgHSmOej4j67Si3V pGzu8TaGvWLGo4X/bOmK9K8m6y0eUZnF62BXGFrdUml38Ab243zyFtP+H+n9WTGz6prU 2phWz1Gj74RpFVkscJ8cG3xiIQsC6AYHrKUoFXwNros1CIHypyEGCOUQtpQJmSuHvioE nOhJI5bnnb/sk61cFJXW/jUpHwy8zLOGiVNewVzslUMFkvNRcbRPUwBy8yzNiQpzM7Fr caQw== 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 d12si3134572oic.26.2020.03.18.04.58.33; Wed, 18 Mar 2020 04:58:45 -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 S1726813AbgCRL5o (ORCPT + 99 others); Wed, 18 Mar 2020 07:57:44 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35485 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726473AbgCRL5o (ORCPT ); Wed, 18 Mar 2020 07:57:44 -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 1jEXKG-0008Ne-98; Wed, 18 Mar 2020 11:57:32 +0000 Date: Wed, 18 Mar 2020 12:57:31 +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: <20200318115731.3vn7cjchunk2bqoe@wittgenstein> References: <20200317083043.226593-1-areber@redhat.com> <20200317083043.226593-2-areber@redhat.com> <20200318105747.GP27301@uranus> <20200318111726.u2r3ghymexyng5nn@wittgenstein> <20200318112814.GQ27301@uranus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200318112814.GQ27301@uranus> 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 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!