Received: by 2002:a17:90a:37a3:0:0:0:0 with SMTP id v32csp4122689pjb; Mon, 10 Jun 2019 10:48:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTLGK0nbr1pL+AFeeGuR84Xg7JnJ1+nB1ZeQQrRcBFzu1m6CyojIOozYa2h3ep0cOUW1si X-Received: by 2002:a63:4c14:: with SMTP id z20mr16567877pga.360.1560188922412; Mon, 10 Jun 2019 10:48:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560188922; cv=none; d=google.com; s=arc-20160816; b=jUmhrOlUchn9IDeyTBr3PmI6D8WCtfvRhS26aBRSoRF9LKRWXawK7YJg7rGtLwN7Qk UKdCDqpFETxPTTwTAHEBXBlNEr4csquwnkC6zAO5iQSOx+bTpy7KYseC7f4rS4Ut9daS Hxvm8nfw+vrOyU7k4A7ElJB70AlHV5KQnN7WwNtq13cxHXhHvobsT1ZiTD8p5wQ9Gdx9 vxxskQgjXefSgcoT1vibSjUc9OeDN+hC7dqgjlKZu8FeivCoH6SRxNnykvyhLMKFHPVq bv35IR+Q27kkF36hW5eCFD9YprR405H0oxXvd2fAoQ8GKiNVZkieTkbgwz9GvVG5HoiP mpnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=B+NQK0qQzwriFdGQRKl3qnBuYxHERXIyxTc267JOpl0=; b=eUJ91gRxW1zyTuoz0F3v+024RRUPa5YsQ55UDOZW07vJBMAdslzIP20JntI11d6WU1 ivDaHnvTOC9h2DjQSGZQ/C/5ZtqSmA4ZUzlhZ5jVo3jEo0XC/mdnEXRITphIuppvuwys TKYTsNgj3OnfXC6X090r5Fb0z+XVA0sLSUyKw8UStwIyV6amwVRrlxIIasQoWctKtb1z VfJwkVCtNtayxlccgARj+1H/CjQdJw1c29vVpP75I1Rifk5HvDahHoJz03nj3zYJm1wX igi5ocVGgN5Z3vP4Y6Dw0wP6oAnvEKaatAXwXSrWGHx+fzx25BQtM66jIDSALHOLfX00 4xNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=ddQy0EE+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codeweavers.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si73681pjs.57.2019.06.10.10.48.28; Mon, 10 Jun 2019 10:48:42 -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=fail (test mode) header.i=@codeweavers.com header.s=6377696661 header.b=ddQy0EE+; 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=fail (p=NONE sp=NONE dis=NONE) header.from=codeweavers.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388650AbfFJRr6 (ORCPT + 99 others); Mon, 10 Jun 2019 13:47:58 -0400 Received: from mail.codeweavers.com ([50.203.203.244]:59114 "EHLO mail.codeweavers.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387643AbfFJRr5 (ORCPT ); Mon, 10 Jun 2019 13:47:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codeweavers.com; s=6377696661; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=B+NQK0qQzwriFdGQRKl3qnBuYxHERXIyxTc267JOpl0=; b=ddQy0EE+r/As82BHbGL2enMiF +xSkrfjkaTQ0AJxemttV6by74YhcQ50DLiLC1sA3I03bUdF2mNxbHrY1p4ORkTzfe/rv/xfMgzol2 SI2MK+71N2dyNCMb6kZwrM5MZdJ8KNTla+ziNnIZzH+w52ZzB0PpDi3xi3X39ShZeK5/E=; Received: from merlot.physics.ox.ac.uk ([163.1.241.98] helo=merlot) by mail.codeweavers.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1haOPC-0004C2-Gt; Mon, 10 Jun 2019 12:48:27 -0500 Received: from daviesh by merlot with local (Exim 4.90_1) (envelope-from ) id 1haOOY-0003Rh-VS; Mon, 10 Jun 2019 18:47:47 +0100 Date: Mon, 10 Jun 2019 18:47:46 +0100 From: Huw Davies To: Vincenzo Frascino Cc: Arnd Bergmann , linux-arch , Linux ARM , Linux Kernel Mailing List , linux-mips@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , Catalin Marinas , Will Deacon , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Thomas Gleixner , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes Subject: Re: [PATCH v6 01/19] kernel: Standardize vdso_datapage Message-ID: <20190610174746.GA13224@merlot.physics.ox.ac.uk> References: <20190530141531.43462-1-vincenzo.frascino@arm.com> <20190530141531.43462-2-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Score: -106.0 X-Spam-Report: Spam detection software, running on the system "mail.codeweavers.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Tue, Jun 04, 2019 at 01:05:40PM +0100, Vincenzo Frascino wrote: > On 31/05/2019 09:16, Arnd Bergmann wrote: > > On Thu, May 30, 2019 at 4:15 PM Vincenzo Frascino > > wro [...] Content analysis details: (-106.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -100 USER_IN_WHITELIST From: address is in the user's white-list -6.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 04, 2019 at 01:05:40PM +0100, Vincenzo Frascino wrote: > On 31/05/2019 09:16, Arnd Bergmann wrote: > > On Thu, May 30, 2019 at 4:15 PM Vincenzo Frascino > > wrote: > > > >> + * vdso_data will be accessed by 64 bit and compat code at the same time > >> + * so we should be careful before modifying this structure. > >> + */ > >> +struct vdso_data { > >> + u32 seq; > >> + > >> + s32 clock_mode; > >> + u64 cycle_last; > >> + u64 mask; > >> + u32 mult; > >> + u32 shift; > >> + > >> + struct vdso_timestamp basetime[VDSO_BASES]; > >> + > >> + s32 tz_minuteswest; > >> + s32 tz_dsttime; > >> + u32 hrtimer_res; > >> +}; > > > > The structure contains four padding bytes at the end, which is > > something we try to avoid, at least if this ends up being used as > > an ABI. Maybe add "u32 __unused" at the end? > > > > Agreed, I will fix this in v7. Note that this is also necessary to ensure that CLOCK_MONOTONIC_RAW works in the 32-bit vDSO on x86_64 kernels. Huw.