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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 BE61CC10DCE for ; Wed, 18 Mar 2020 11:57:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C80520772 for ; Wed, 18 Mar 2020 11:57:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726845AbgCRL5o (ORCPT ); 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!