From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 9F401145B31 for ; Wed, 7 Aug 2024 22:34:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723070056; cv=none; b=c6CYi3ogwRIBbv8DyLUiOynNCfCdHoh0E2u1deR0lt554zzuQrCz4tjdf4rDbzd3mxaWlyZnQUC7I9SUD0rDKQkJNdUkm0c9L1xUnM3c6xqzgu7gtEwOdWWMNVvz2vfrEfYY6hVSx4q8yNLESaedHo3yYoaP/t3V+DBOtpWB0A0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723070056; c=relaxed/simple; bh=Hnvwb4GsJ5xhBtc2iD024XC8qkygckvf+U3nq/Qf0EA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=pQIIKHtwVRUIyhgJzJFFD9jE0/7T+/VnCPNa3NWY614sygQ/q8F5hk71Y1rYia8O93uCtGPXBGvn1bi6dKTlQpGHFzLAD1J8cSKT1lUkIJGbjjwEKJqd4RkYddU3cFJVahLmT8pGcEgqGrNXfUAZ657oJ3NakPwutQFSTlODYrE= 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.172 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-f172.google.com with SMTP id 41be03b00d2f7-75a6c290528so257051a12.1 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=xEA6qlBgrc43yYMsd4VzlIz7IECeTx7v9gWWjIN02cVBf8JUufddi+ogd4NIvIXRrh Am8+/z5aSjkbSdJIMS/XzEi8/33ekT8M/A4JWgiFKbaXyqSRaOQltL7hgeZnTlT/pPvW DJOrKBBBTGpt3vx1Ih2HkA7nHj2uwV5WNMpkvFWCxjm/FX6puC8stIv17sheemXS3ptm IsszUlpLK9hsjzAj7XcZITbtb7I4yMn0Kjy6HNx0aIJRszPQglSOaRJqFZDX0aYblZti f0FkSaS3dZw/nG4QfhdVgKEJU8Ez70o78qjObF0ckcXUD8UmuhhpV/EpCA3jYmOYT4+F mSfA== X-Forwarded-Encrypted: i=1; AJvYcCVv6oVVRfwBo9gGPIPYunaCkrqrip9qQ+rdA2MrzPp1d6i3lS/pGYv1Eqv1QL36Ro4VYhsO9we/n7sAWq+kLsFrsBD/qkqV/0VqFGpN X-Gm-Message-State: AOJu0YyhJ+ucWP1hHfJQy/DbhqAa7itzeGFw1i8OIV5K80UsiA+nmOXQ rpT3MZEgFZxsFmkyembo5lEws197OeSt7NeT0BEei7LzIj0xMzMArc5xzAtl4Qo= 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-kernel@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