Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp218200pxb; Thu, 12 Nov 2020 01:48:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFFh3GOAUmCbJW3ylBrXUdB4ps/HfYvIwKRMFF43IS9jXTk5Fw/MnCedfdDrDQIUAFxobU X-Received: by 2002:a05:6402:79a:: with SMTP id d26mr4131362edy.113.1605174526668; Thu, 12 Nov 2020 01:48:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605174526; cv=none; d=google.com; s=arc-20160816; b=xDiqk0SxP0rO++epGe6LFCPtQoXVRhRq0OuAJjDcKD134Sa7UBh73Jo4jnEkPbgMKp U6oD+I08iqxw/6np1GLLfSW3lAkiDP6EmjCfgGIbbE3qVAV3Ev4euyP3hV2x9Ck5c+SI kMVyoKTFZNNKVQbKlh8nChUmvwOjqZpuzWfkVueBkVrWDqLn0X+R3FHRU9Ia9t12xwoa 0REXJ8AsxqQ2kAcrOx5ZS7jS2zfBTpOvONNBcdlerYZG7dCePu5JK9PjsJx0NgjAti8d YhysdR0mgqOwLTU5ym4gaqhnGZz+KSWVZhSL5Zzi89ANGKDZakPxvotm9LO3MOwjJ/Ds /e2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gicXUzNI/9yhIwbya7ixxl5KwJr3NLoHmLyhcODq5L4=; b=IwDcd0xxQKPjwpU/P3xYf0MdStHfTDbENx2pqZct1rFDJGQZcA5yE8oLUJkgr3lVza 6Xdhui7mH0iKqMhfmlp7YghJetJ+ibxVtIeNYGnPZeVTdNbK8cgHxgWA4reLygfDuGKD rATg0ZQfkFuBUCZtXiFaT/2yrpGcV86pSQ2Un+gZays/bJlPKg2Cf/VqKio0mu41vP7v TARn2LiPSvob7oHhukIv3PkV1WJrIwyBvJtUvp6eMUx4oLP/vImKj+MpAolXqzHcaLPc 2BeFvsgJt3rswwnjmi6TqqjUkTg6ZT38Y6E8eU4hqjl3nzjSGY5KLe1gHWkiQGrEzn2P nn0w== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm21si3461225edb.492.2020.11.12.01.48.23; Thu, 12 Nov 2020 01:48:46 -0800 (PST) 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727047AbgKLJq7 (ORCPT + 99 others); Thu, 12 Nov 2020 04:46:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:41538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbgKLJq7 (ORCPT ); Thu, 12 Nov 2020 04:46:59 -0500 Received: from gaia (unknown [2.26.170.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 946DE21D40; Thu, 12 Nov 2020 09:46:56 +0000 (UTC) Date: Thu, 12 Nov 2020 09:46:54 +0000 From: Catalin Marinas To: Andrey Konovalov Cc: Will Deacon , Vincenzo Frascino , Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Branislav Rankov , Kevin Brodsky , Andrew Morton , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 44/44] kselftest/arm64: Check GCR_EL1 after context switch Message-ID: <20201112094653.GH29613@gaia> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 11:10:41PM +0100, Andrey Konovalov wrote: > From: Vincenzo Frascino > > This test is specific to MTE and verifies that the GCR_EL1 register > is context switched correctly. > > It spawn 1024 processes and each process spawns 5 threads. Each thread > writes a random setting of GCR_EL1 through the prctl() system call and > reads it back verifying that it is the same. If the values are not the > same it reports a failure. > > Note: The test has been extended to verify that even SYNC and ASYNC mode > setting is preserved correctly over context switching. > > Signed-off-by: Vincenzo Frascino > Signed-off-by: Andrey Konovalov Acked-by: Catalin Marinas