From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 D5A0712D75C for ; Thu, 18 Jul 2024 23:03:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721343827; cv=none; b=V+NZgfgOziex4ZefHH9+1zq0NRz4gqd2BJvk0kBWGOcC2dQ9nG6qNXGpQy4WEw7ARM9M2tdEjJFp0bdJJwWNhUgqg/i51jp/W+pkXSUBUkKw5ol58Jvq9bNYNCtf+ESzlMSUtYH1MIrbT6E9ZSPLGS9ahqpS5BKSyNuE51OeTio= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721343827; c=relaxed/simple; bh=ZlxohWJiVwAqoT9g5IouKqA+eC9Q/GshbQdY1r9is2Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=QUTaCRY/Jkzfzug/XzOXMd+yTi1jC+McGFwjeqOVhdMocHmPmmJJNDT0NbrfVsC/H5DEDOwJAX18KWs1yoSUODM1hkKGW/xvpx1PIJDgud/WdkyaoR3or2Knn3Vd50+6+535CxBcNOXw9kQViAzs+1PmRCsOJYglc4j0HJPyab0= 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=W+PBN2aR; arc=none smtp.client-ip=209.85.214.170 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="W+PBN2aR" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-1fa9ecfb321so11714775ad.0 for ; Thu, 18 Jul 2024 16:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721343825; x=1721948625; 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=pz/gqH3g6k+Tlg5PlSG754DQsZEyo/RAObvbOwwmn1M=; b=W+PBN2aRA4gn0ZHLHAD3l3+rtcOMqbNhBblqTH10seGmxKXSIM/gdGXfqr2NJVCcC/ /TRUnWk77f+K+ZVvbKkg5rquOwN0y4TxqeXNA9O8k3pMEkNdRvodmtYyGgs5bqbfHHKT 2t3c5ue9lwf4FtZA9w8GcIYkJ6AmWgHfOERhM2n4M9l5xieCZQyGj3ewMRYI9DFIGgHJ 6ntB6euLzI6KsDTQpIE2oCqhqxJ9U3gPRfQLOIU3b3ssX+Wk2/+/BBL6/+mi99YQDj4R CAF9uFTz47IQVvxL0BvqD98C9SgIk8j21PmbrDDJccOIFbGzRc+PXxLHLsIVj+HWENAZ 8JnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721343825; x=1721948625; 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=pz/gqH3g6k+Tlg5PlSG754DQsZEyo/RAObvbOwwmn1M=; b=Cs98mzEaEm+C8YrsytqECrUP1RAwAmAy8H6fezm7+M4unxZJNQv/SErx7sExz+C0Ex aTcVlDBLGnx4uwy57ZtgqU7Wt60c/aHYd7IY7D7k4pHOEV/ZyL5HSWOff7J/n/JrVl8T 5ETWRmXhBMqRFHw0/BPvq+F+dWehaSTeJMijawaCWuRC2PUUnhvYYfX56r1G35Ere6Mm MDQXLuHq4j0TcXKQpE51fJPZZiTGUbjhjVnSZI8KMas7z0Tmdcb5PQ16Hho97pfp40jH mfc0VK9Jt9O+SqDlQQ4NLWH6IEmuJrcyCLHxLyrisnZDhqOHHGS4yHmN3/kmn8+YErNf /Emw== X-Forwarded-Encrypted: i=1; AJvYcCWNYUGr/q/yqITiUcWhTrPnRQxEjCIw03CsU/W1rBYiVgmKZtfwAdp5ouEEBSp4v8MOKOe7eLOft+iLxQ1bg77U5D4AE9Ub1/hcLqiUiNsC X-Gm-Message-State: AOJu0YyRe5YnO8Vfvu88PeWELKdVAeudGK6/cwj+AoWn38HiFG4sZvzH vbf3+SfyC8TEOWgaQcXXY9RtEwLbzAu7OCDow+4253f8ZyZYuvBg+y5tEywNA3g= X-Google-Smtp-Source: AGHT+IF1+3P0pRgwkXsR0FAWIIytKywrIML3Fqxwpp1fn6IdRgXx4TsuO6HiuiBf9bLph6vSY6g+qA== X-Received: by 2002:a17:902:d48d:b0:1fb:24ea:fe02 with SMTP id d9443c01a7336-1fc4e16ab7emr52140735ad.18.1721343825147; Thu, 18 Jul 2024 16:03:45 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:15c8:3512:f33c:2f80]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fd64b8693asm1105435ad.72.2024.07.18.16.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 16:03:44 -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 v9 37/39] kselftest/arm64: Add GCS signal tests In-Reply-To: <20240625-arm64-gcs-v9-37-0f634469b8f0@kernel.org> (Mark Brown's message of "Tue, 25 Jun 2024 15:58:05 +0100") References: <20240625-arm64-gcs-v9-0-0f634469b8f0@kernel.org> <20240625-arm64-gcs-v9-37-0f634469b8f0@kernel.org> Date: Thu, 18 Jul 2024 20:03:41 -0300 Message-ID: <87a5iexpyq.fsf@linaro.org> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Mark Brown writes: > Do some testing of the signal handling for GCS, checking that a GCS > frame has the expected information in it and that the expected signals > are delivered with invalid operations. > > Reviewed-by: Thiago Jung Bauermann > Signed-off-by: Mark Brown > --- > tools/testing/selftests/arm64/signal/.gitignore | 1 + > .../selftests/arm64/signal/test_signals_utils.h | 10 +++ > .../arm64/signal/testcases/gcs_exception_fault.c | 62 +++++++++++++++ > .../selftests/arm64/signal/testcases/gcs_frame.c | 88 ++++++++++++++++++++++ > .../arm64/signal/testcases/gcs_write_fault.c | 67 ++++++++++++++++ > 5 files changed, 228 insertions(+) The gcs_write_fault test fails for me, even without THP: $ sudo ./run_kselftest.sh -t arm64:gcs_write_fault TAP version 13 1..1 # timeout set to 45 # selftests: arm64: gcs_write_fault # # GCS write fault :: Normal writes to a GCS segfault # Registered handlers for all signals. # Detected MINSTKSIGSZ:4720 # Required Features: [ GCS ] supported # Incompatible Features: [] absent # Testcase initialized. # Read value 0x0 # SIG_OK -- SP:0xFFFFCF1292D0 si_addr@:0xffffba645000 si_code:10 token@:(nil) offset:-281473808879616 # si_code != SEGV_ACCERR...test is probably broken! # -- RX UNEXPECTED SIGNAL: 6 code -6 address 0xf76 # ==>> completed. FAIL(0) not ok 1 selftests: arm64: gcs_write_fault # exit=1 It also generates an "INVALID GCS" line in dmesg. -- Thiago