Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp719235pxj; Fri, 11 Jun 2021 09:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt28OQ1kOLFLUzAJidj+oH3LfMuIC82vjcj3qA30cezRO7U4THwz5/HduKz2tIbaY2eL2e X-Received: by 2002:a17:906:af7b:: with SMTP id os27mr4486670ejb.154.1623429850948; Fri, 11 Jun 2021 09:44:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623429850; cv=none; d=google.com; s=arc-20160816; b=vJpt9NaVqc+Sf5O3KKC0AEil6Y9wWyYXTRkSyhfibgdOFQ/CFmNJ/wfI4XaxW+6tVn eRonhRFjnotsMkwE+jphTnbsrm0wpn2NCnZNeCaSAblhSq25e+zSYJfIcykKeIOwyFdw Ad4xIb1AxJP6rXydJ+Ba+zXLu4oVpbQxESxgex6DrBgA4wmorimGNXu3xHDtIkFCOODG aawmiJUHoJ9J3IudWNrMoj75HCZIshR7GXDZE1xlvdGGE5FI83X1+0kXUmRkMWVCQq6d C+gX3cnPfbL7OevhGiNSMh+opIFMlaZESn2zAVj//KxezH+unClto+pxINUQQjnsHUca RnHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:from:cc:to:subject:ironport-sdr :ironport-sdr; bh=OAYGwfGqx18uyzN036nneJvzpO0O+Qp0pRz8cEkTXjE=; b=ljv8ytXBn1eej/rqlKoAMLn/jwuVhK8Twa7LiSlpBOPBIF2+/bbOqJpDgll+nG/xAu xuZ8AldVAqfAty1n8ys98jWXc3qaoJx91KHTrcOFn3AnzeeJW0UCbeu7/wk1wCUncQQ7 LQEjp6devPF2UFLAOvUCyjVW5R1XJNJSkXfDOvEUHSvgDt3ishMCv1maeNzYlVNBUsG4 u/0G4o8tkVSQdfLkWnSOIx5eRNAHT81du2hTfUG7plPSKbBg4RDaeOx/mXTPiZ08Gxqf CzEAD5yUfpg4X6NPVchjSzKcE04Bsgc/h9xwtRpFBf94ZlCRc/Iz+27Eiuvv4cP/wwt2 PiPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id 24si5125426ejx.746.2021.06.11.09.43.48; Fri, 11 Jun 2021 09:44:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230478AbhFKQny (ORCPT + 99 others); Fri, 11 Jun 2021 12:43:54 -0400 Received: from mga14.intel.com ([192.55.52.115]:56277 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230469AbhFKQny (ORCPT ); Fri, 11 Jun 2021 12:43:54 -0400 IronPort-SDR: pIEo9KD6ot/2CX79EeLZ+10wjZYJLAaADfvWFufvjAjKrQaMyepT5AUTEp9agXjdctqjtmEQL1 pYz0Z8JZ3olw== X-IronPort-AV: E=McAfee;i="6200,9189,10012"; a="205377827" X-IronPort-AV: E=Sophos;i="5.83,265,1616482800"; d="scan'208";a="205377827" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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