Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1150225imm; Fri, 29 Jun 2018 12:17:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJyIRMzPeb6UUtxd6Mdp9t6u7eFSowA2t9j1VUoNLjC5TK1QzvJ/hoIhVkfsB/hs9w3qUHO X-Received: by 2002:a17:902:780e:: with SMTP id p14-v6mr16036540pll.239.1530299844412; Fri, 29 Jun 2018 12:17:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530299844; cv=none; d=google.com; s=arc-20160816; b=Brz/XYELc+XFQhWAIy7/Proa2Q5DhKfnxRqqbFyq3acgWuCf9NDxyI9YdnnkYzEtw8 VbEKMuPY+V4Z6roVyGfYw6vrf03+AjprFVg9Rn0Fot8TSAKQxvVg0pidxnfi/Z3ZGIDZ 9CbCZ+FOV12wtCZOE3TXvPa3o2T4Hmd+70FBmqbH2a5lbV3RXNx9OrFppD2w0/V/QNRW Opvmns4piQMshYz2BjRHzBq4IVdaOuMKSE8r4P6TsHMETp3KXBn4qxG95t5AxXxOygyn 53sBQcr317VMsqlWpNaNB+bL/mwVc5jRTicg64R+wZIWN4iVvefZzHBShAUmnxQ8TDyj TiPw== 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:arc-authentication-results; bh=uf/Bh4NlsEUl29SaHQg+PWikZI86pDpd8M66gEYtsco=; b=hFMasPRhSCwCXV0TUahUzABPTzy8fkUP46Kq6uwsRVRycD+9fk+5KnU4GIuA5h54yj 1KzBd9A/oW3UXrebiJ82mz0fEw6ig+QV42/woAFS8GcgfmMZtF6ByNl1QYNsGfqY+4bE KswmkubVRDVQuYcQVOwvtANLLqabcBfTjcCyRN8fAVvTExH1EdhOKzAuJAEl5AC14vnc Ha1UWn7Wjr85xoWgcj5prS0tzxtRaomrgMYzikRzhe7AsoTLFOavqieE7BAwn0uc8h+t uyIuKJw4f0kKN8Piw0PwL19fJHEuc0tJZYmnwfnY1zDy70+bgvImF7rWAFS9pJxB2egK 2qfA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7-v6si8933395pgf.687.2018.06.29.12.17.10; Fri, 29 Jun 2018 12:17:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755297AbeF2TEq (ORCPT + 99 others); Fri, 29 Jun 2018 15:04:46 -0400 Received: from mga17.intel.com ([192.55.52.151]:21610 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753127AbeF2TEp (ORCPT ); Fri, 29 Jun 2018 15:04:45 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jun 2018 12:04:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,287,1526367600"; d="scan'208";a="51547228" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga008.fm.intel.com with ESMTP; 29 Jun 2018 12:04:28 -0700 Date: Fri, 29 Jun 2018 12:03:48 -0700 From: Fenghua Yu To: Thomas Gleixner Cc: Dave Hansen , Fenghua Yu , Ingo Molnar , H Peter Anvin , Ashok Raj , Alan Cox , Peter Zijlstra , Rafael Wysocki , Tony Luck , Ravi V Shankar , linux-kernel , x86 Subject: Re: [PATCH v2 2/4] x86/split_lock: Align x86_capability to unsigned long to avoid split locked access Message-ID: <20180629190346.GO18979@romley-ivt3.sc.intel.com> References: <1530282807-66555-1-git-send-email-fenghua.yu@intel.com> <1530282807-66555-3-git-send-email-fenghua.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 29, 2018 at 06:35:39PM +0200, Thomas Gleixner wrote: > On Fri, 29 Jun 2018, Dave Hansen wrote: > > Plus what enforces proper alignment for the other capability related > u32 arrays? Do you want me to enforce unsigned long alignment for all that are used by locked BTS/BTR? There are quite a few/many those places. x86_capability is one that is found in boot time. I tried to find split lock issues in (very limited) tests; but so far only find the issue in x86_capability in the tests. Or you think we can push the patches upstream to allow broad test to find and fix the issues? Thanks. -Fenghua