From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77AE412BF02 for ; Wed, 7 Aug 2024 22:34:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723070055; cv=none; b=EPFipjfKPosvlQ+dvsyoXrOIfrF0HLTql29czM0+yluF8PoNPdNeZzt440U8uVyTHA07NDLzqVDstbBMJceGaDAxFKRTvSXE4wMSg53p+G6Jb1DApboGeraqgRQwZez5w9FlqMOF7xYjnBRmcj5UnD8LN7GGbz6vxV1lSX0AhT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723070055; c=relaxed/simple; bh=Hnvwb4GsJ5xhBtc2iD024XC8qkygckvf+U3nq/Qf0EA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=sYxttxji+79YkNbDCulFfbqWDt7XEFCjrvFBd0jPCxa78Xs3KXN+FPqwW0jB/dymB5mBTp29UPijkoOInVxwDyjNj2dFDijqyPjbiRbirsB/uw2GSL2iZPgwA3nG2nX998nsPy+rHmRhrqiwaBPbIIMXwVhoHL+v1332WF8u0Zc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VoagAPr3; arc=none smtp.client-ip=209.85.215.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VoagAPr3" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-7a18ba4143bso291578a12.2 for ; Wed, 07 Aug 2024 15:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723070054; x=1723674854; darn=vger.kernel.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=lfrHG1WH6erSaIaipwT8ciCPWYlneUqYmls1urpaYsI=; b=VoagAPr3LTpvMW/5oFp+Aq4x38SRbqHwYuvwty/A60pg7LqRAv80O2qA+NToFgyw2J 8QxAGA+37onm6+2mr7idMTyRnUfC42r5TAPIs6PhipcMvz87sIFfdTnJIfmSCIkpXi8S w50Ehee+QA93nAcn7FuR52ryY0IQDgCWolKYAMQRyBLqFRfUoDBXDNvYxhssrOgLB9dw syAePxjF0c413lJPvPVrODmNw1R+wtsN94bLIf3u2OWCyWnP64NYyhxQiFXVHr1eZsu3 3ag2MRZ3FQK9ilibwPGdfwbOYt1TbeWherfYSSWz1GRWX3A0kcww6HMBZpyRE4IHQzuN 1C9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723070054; x=1723674854; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lfrHG1WH6erSaIaipwT8ciCPWYlneUqYmls1urpaYsI=; b=THYWibK8LMiIKXUNe2HVBap1HeNPu4wF0mgpc1uGbXHC/zw954eCcB7aKuEUOd2h0D +4izBWEOjWFMACXdRV7H5HWC3onzNdP3tNSW1f0H9C5cgHZvbqB8YxQjxmfRQ2lrceLu pMlZhZcBHhVhG0Wd80VsAvzd+eDsZgtaSxsbdQ+ccXmjwLKoy2EnVG0T2tlNa8H8y7In zaFuxlVKjxUjIFiGF+HlC0suyTpv+yokqOGWEmPgNNByXi4MSbEzN9gtKC5yn1zhlEc5 MYPV0dALkV4rJPnlKst5vpMyvdMQGD1i03aVvaKeWWO8XwpsZTI2yGh9kcP62iyms7Jl eDOg== X-Forwarded-Encrypted: i=1; AJvYcCUasuBGgSq1Zwb68XB7N5UuezciOw1cjegVb1HcuGBEz6pHJkV1/F4Tyu9vQkUOR4dLNYwuQSQT/OcVl6tUo5ZV6UCAm9WpSBj1LFHpwQ== X-Gm-Message-State: AOJu0YzJcbLnLdGraWEgP4Z7lE/PutBxCh6JcPMsN2ygnAgF2O042cwx AVR47ObjCSHVFuMKS0MIH7AYQIxbljHJJRzUbYe+PjYyqJqMUKWZJxf9p0FPbI4= X-Google-Smtp-Source: AGHT+IG39+No54Rw/miCMksXv5QcGuWzil+DCVtmW0Rz/pFwmk6IgrNbAr9fPsdspRzM1slcOMQVlg== X-Received: by 2002:a05:6a20:c21:b0:1c2:912f:ca70 with SMTP id adf61e73a8af0-1c69966e0b6mr16020999637.42.1723070053844; Wed, 07 Aug 2024 15:34:13 -0700 (PDT) Received: from localhost ([2804:14c:87d5:5261:6c30:472f:18a6:cae1]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff59176eb6sm111615725ad.196.2024.08.07.15.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 15:34:13 -0700 (PDT) From: Thiago Jung Bauermann To: Mark Brown Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Arnd Bergmann , Oleg Nesterov , Eric Biederman , Shuah Khan , "Rick P. Edgecombe" , Deepak Gupta , Ard Biesheuvel , Szabolcs Nagy , Kees Cook , "H.J. Lu" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Florian Weimer , Christian Brauner , Ross Burton , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, kvmarm@lists.linux.dev, linux-fsdevel@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v10 36/40] kselftest/arm64: Add test coverage for GCS mode locking In-Reply-To: <20240801-arm64-gcs-v10-36-699e2bd2190b@kernel.org> (Mark Brown's message of "Thu, 01 Aug 2024 13:07:03 +0100") References: <20240801-arm64-gcs-v10-0-699e2bd2190b@kernel.org> <20240801-arm64-gcs-v10-36-699e2bd2190b@kernel.org> Date: Wed, 07 Aug 2024 19:34:11 -0300 Message-ID: <87frrgdkt8.fsf@linaro.org> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Mark Brown writes: > Verify that we can lock individual GCS mode bits, that other modes > aren't affected and as a side effect also that every combination of > modes can be enabled. > > Normally the inability to reenable GCS after disabling it would be an > issue with testing but fortunately the kselftest_harness runs each test > within a fork()ed child. This can be inconvenient for some kinds of > testing but here it means that each test is in a separate thread and > therefore won't be affected by other tests in the suite. > > Once we get toolchains with support for enabling GCS by default we will > need to take care to not do that in the build system but there are no > such toolchains yet so it is not yet an issue. > > Reviewed-by: Thiago Jung Bauermann > Signed-off-by: Mark Brown > --- > tools/testing/selftests/arm64/gcs/.gitignore | 1 + > tools/testing/selftests/arm64/gcs/Makefile | 2 +- > tools/testing/selftests/arm64/gcs/gcs-locking.c | 200 ++++++++++++++++++++++++ > 3 files changed, 202 insertions(+), 1 deletion(-) The gcs-locking test passes on my FVP setup: Tested-by: Thiago Jung Bauermann -- Thiago