From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 9F4A11487CC for ; Wed, 7 Aug 2024 22:34:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723070056; cv=none; b=Vjl/apDeUJW1Y8lZztGIEDXF48eCriFZ39rQJYo1kCn9NxCvdfOYcCB3i+yH2gOx+nYnZd5fsVVqcr7BdDzdO6+Ngs4VnyA2DlxkriqhvRmOOXujWsqnsFXCrejJlMFtpkeCcy2dbwB6H0cCR2+nBvb7NPOMzV/w39cEIXGxbFI= 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.175 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-f175.google.com with SMTP id 41be03b00d2f7-7a18ba4143bso291572a12.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=IuUKW9/pEKOvpRLuHIT15Ri3fenVZo+A+NakPxnqS5t1rdHkcBEQAA48g5LbK3TKj8 WXRpePPzWoPzL07I4HN1ESTxT6aqnwaQnby2ydUGi8xDgO1cRpN1nHPMQ4a9okptnEoy OF7AcVNs3r0edMoojuaoQR++2laTMG+BOyqtI9cjUYVgU3LDtUzYGztnhEeiLl5tq3S4 w+kHKRRBu0z0nc6PWSt1NoQyu6pP9Ra1XrBy8vdevPj9Lns6VSyWRJzkaXnCB9R0jG3c pUEJ+Yvq/cG0NmhInpOPpNYorYve0E8R66u7TG628oeCRZueRlAoeq0XBM6GB+X29ZP9 3hEA== X-Forwarded-Encrypted: i=1; AJvYcCXE7xMMiPaON/9DVgJFSWkhf4I17XVrecTeJuH5Q/BvHWhms7tK4bMM4GU+k0c9XMpWWkR+6ErLOuRW84Nf+hneRnyK+gMsfut2 X-Gm-Message-State: AOJu0YxKUr3EaHAT+YExXQlQ0gw4iYq6FJoptCPVN0Hw3R/v+7Lt3GIp 59XH52RPzNIkBR7omnpKzBfYbNf0Al6U5V6KjKvVt5njRsEQssYu3ZgZ1aJGxdU= 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-doc@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