From patchwork Fri Jun 11 16:41:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Hansen X-Patchwork-Id: 12316173 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=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_RED 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 91812C48BD1 for ; Fri, 11 Jun 2021 16:42:03 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0B2ED6100A for ; Fri, 11 Jun 2021 16:42:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0B2ED6100A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6256E6B0036; Fri, 11 Jun 2021 12:42:02 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5D6FB6B006C; Fri, 11 Jun 2021 12:42:02 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 49D556B006E; Fri, 11 Jun 2021 12:42:02 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0047.hostedemail.com [216.40.44.47]) by kanga.kvack.org (Postfix) with ESMTP id 1A6936B0036 for ; Fri, 11 Jun 2021 12:42:02 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id AD0628249980 for ; Fri, 11 Jun 2021 16:42:01 +0000 (UTC) X-FDA: 78242010042.11.CA9081E Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf27.hostedemail.com (Postfix) with ESMTP id 8418A8019358 for ; Fri, 11 Jun 2021 16:41:52 +0000 (UTC) IronPort-SDR: +UnYvChdJ7uyOqirsk/Y7+zJXiC5uvrI+oFyBwlkNXvj/41QHgp2ILlRvEeXyHYQyOw72DowJ+ R+SGj+5ChDfQ== X-IronPort-AV: E=McAfee;i="6200,9189,10012"; a="192872351" X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="192872351" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 09:41:54 -0700 IronPort-SDR: BF46IkfbSUHlYCAFmOz21jprfTjVXYUqOpWqYPeAs+HC3Kx+Nf0IG7Kk/LJHhc+91BBl1a1tKU TJXj7omelRuQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="553464031" Received: from viggo.jf.intel.com (HELO localhost.localdomain) ([10.54.77.144]) by fmsmga001.fm.intel.com with ESMTP; 11 Jun 2021 09:41:54 -0700 Subject: [PATCH 0/4] selftests/vm/pkeys: Bug fixes and a new test To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org,Dave Hansen ,tglx@linutronix.de,linuxram@us.ibm.com,sandipan@linux.ibm.com,akpm@linux-foundation.org,fweimer@redhat.com,desnesn@linux.vnet.ibm.com,mingo@kernel.org,bauerman@linux.ibm.com,aneesh.kumar@linux.ibm.com,mpe@ellerman.id.au,mhocko@kernel.org,msuchanek@suse.de,shuah@kernel.org,x86@kernel.org From: Dave Hansen Date: Fri, 11 Jun 2021 09:41:53 -0700 Message-Id: <20210611164153.91B76FB8@viggo.jf.intel.com> Authentication-Results: imf27.hostedemail.com; dkim=none; spf=none (imf27.hostedemail.com: domain of dave.hansen@linux.intel.com has no SPF policy when checking 134.134.136.126) smtp.mailfrom=dave.hansen@linux.intel.com; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=intel.com (policy=none) X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 8418A8019358 X-Stat-Signature: m1sof48kahyoq5rxb69nd9tryc3xz314 X-HE-Tag: 1623429712-679643 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: There has been a lot of activity on the x86 front around the XSAVE architecture which is used to context-switch processor state (among other things). In addition, AMD has recently joined the protection keys club by adding processor support for PKU. The AMD implementation helped uncover a kernel bug around the PKRU "init state", which actually applied to Intel's implementation but was just harder to hit. This series adds a test which is expected to help find this class of bug both on AMD and Intel. All the work around pkeys on x86 also uncovered a few bugs in the selftest. Any testing of this new code (especially from my powerpc friends) would be appreciated. Cc: Thomas Gleixner Cc: Ram Pai Cc: Sandipan Das Cc: Andrew Morton Cc: Florian Weimer Cc: "Desnes A. Nunes do Rosario" Cc: Ingo Molnar Cc: Thiago Jung Bauermann Cc: "Aneesh Kumar K.V" Cc: Michael Ellerman Cc: Michal Hocko Cc: Michal Suchanek Cc: Shuah Khan Cc: x86@kernel.org Tested-by: Aneesh Kumar K.V