From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 5190B1ACECD for ; Fri, 7 Feb 2025 21:26:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738963616; cv=none; b=LnoS9RzLGUS1AUt6sXkZ4TGJbjH7OnW1VROmkvxvGvZPwg4jhftd6ZT2AGmFq2ErdXHm7L8c1mCZIz2pdsfqahRxPeHjbXTUUHm/My4thLJFXZH/zDV+H/nxo+PTO/Cw7Yey5YxEIjx5/5YA41GyzL3I+y+qjWl09fUFQP7GAOE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738963616; c=relaxed/simple; bh=HVmE+Tt35mu4vWqHOKjrmfxx5g5d6DsZZLA0kmOgFzY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=l5rvMYerzYYPl5DB3wV4eFEliZz/IAHVpQx08UYfiHRoJcxcOYMu7+UbF9dT0TCjB5SuYt15lSyW3GYSN/YAq+h9f/J0Ppoc4W7mSyiEY382S4ibWov9RWdlgr2T0ONO9UH9z6fjjHz2TQRBezKW94OS8xsuBUt+pMfLYswQlm4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=2Zi69OuW; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="2Zi69OuW" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-21661be2c2dso46901195ad.1 for ; Fri, 07 Feb 2025 13:26:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1738963614; x=1739568414; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=HVmE+Tt35mu4vWqHOKjrmfxx5g5d6DsZZLA0kmOgFzY=; b=2Zi69OuWZX0UEjdLx5h7V2aS2lqQrckk3FDmNx05GHs46itAomz4crC74qdpyA1/aO EDpv/V+hCufPH6md+AJjX8dBvJpvI2nXq5QRAdC0FEAplwx4oA/mAL53314IdTNMLaiz Z3oEJ0QfQfYoKs4jRCcSc5rMyUaI6eIiATejMY+99z83i77qvglKsPeZwRBla726fYop PSTgQ5SiRqNy7P0s2LbWOPPnWkA7jU0SOOkIBgWbTQv/vWC8OPJTplulgmJsq2zsIs0u AQ+Zavzfd70CDCuvreBZ9eZ/w0CgBpcS/rskGViakv1aBnSUYnfnrZjwsuraqKhv0PFf 3wTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738963614; x=1739568414; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HVmE+Tt35mu4vWqHOKjrmfxx5g5d6DsZZLA0kmOgFzY=; b=BN0ff0oOLs11AOiJT5OrW+7LmIwT7bXnkh9se1qyhVLVCrMyd0QEEyJhHvZgseeBVd XlFnPIXkpxXZO1JOs/B50dG+3f4GPFRRWeGsZrtxL4Hdp0KW5MxI/igwbCX6XFrZdgoS IWiatvbiO6FFD82t9skug2W58sIapL667RfJXLcXX0XSiYGX5HcOLZCf6QyxoFwSOAcV RNWaIIOH1uTyUrJUbzqw0hqzlJ03085hpOhr93z+IBg5Px+Kn006Gvb/tKSCxO5Tb6nv hneiJ2kG0zXKUNEkRJXHIGM8vXRlpNcJenua5Z3YQ3PtnV4HRWNxCxnGtSebx1pl/iRm vAsQ== X-Forwarded-Encrypted: i=1; AJvYcCWF30vsZesOZ4dxAih4Xj2MI7TZPdv/Q3nYVqlPWrB64OqcrCeVPu50uxdYyr8PxSzX7WEsUiQ/5IsDlVvImEw=@vger.kernel.org X-Gm-Message-State: AOJu0YzontR133xtAxGBTpWv0lwL0IK828kvJsJMo+b8SW+x7n+B1VMT PGrszcvXVTe95y/4hj4i4gjoBl34/cRtwSU7Xk8s3aZkPxR6G1xcyO54L6Iwtts= X-Gm-Gg: ASbGncsagjs4pDXe7SzF0EbpN4AS6QKZVG2MPoDTFXp1VAxQuHkAL52KdDKctWNGfaZ hGjsSKXVeDmFshvsp/9KLUz25N1MIhypeVNYhtt0nSS6JR3jhcHpGXANaaUTXjXvwfHdE+vHvaW IsYaYiKM8eGVGiHT+kJW8vAVLvLuQ0qDdzDMT8fDUxnMAsaENSQpzMGZBKz5mrMVKwpjH5CLCWq YK389/bE6zLDjkjTKeNBFZ0Xik4YGg2MMie2jrOkjXVmJPpx/hg3l7D7bGG+SuMO+QkAuG/Q1q/ +V3q76oobLauerFyzSfQZaE0yQ== X-Google-Smtp-Source: AGHT+IE9Oev0Y7C5Xmqtwl/B+JiwmKuI48iGekPbKSdtVdA99oMBiZeUkT8jvrSGxyy3gXBYBBsXzA== X-Received: by 2002:a17:902:d4cc:b0:21f:6a36:7bf3 with SMTP id d9443c01a7336-21f6a369009mr6855425ad.12.1738963614537; Fri, 07 Feb 2025 13:26:54 -0800 (PST) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21f3683d551sm35131205ad.110.2025.02.07.13.26.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2025 13:26:54 -0800 (PST) Date: Fri, 7 Feb 2025 13:26:50 -0800 From: Deepak Gupta To: =?iso-8859-1?Q?Cl=E9ment_L=E9ger?= Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andrew Morton , "Liam R. Howlett" , Vlastimil Babka , Lorenzo Stoakes , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Christian Brauner , Peter Zijlstra , Oleg Nesterov , Eric Biederman , Kees Cook , Jonathan Corbet , Shuah Khan , Jann Horn , Conor Dooley , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, alistair.francis@wdc.com, richard.henderson@linaro.org, jim.shu@sifive.com, andybnac@gmail.com, kito.cheng@sifive.com, charlie@rivosinc.com, atishp@rivosinc.com, evan@rivosinc.com, alexghiti@rivosinc.com, samitolvanen@google.com, broonie@kernel.org, rick.p.edgecombe@intel.com Subject: Re: [PATCH v9 14/26] riscv/traps: Introduce software check exception Message-ID: References: <20250204-v5_user_cfi_series-v9-0-b37a49c5205c@rivosinc.com> <20250204-v5_user_cfi_series-v9-14-b37a49c5205c@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Clement, Thanks for looking at it. Inline On Thu, Feb 06, 2025 at 02:49:09PM +0100, Clément Léger wrote: > > >On 05/02/2025 02:22, Deepak Gupta wrote: >> zicfiss / zicfilp introduces a new exception to priv isa `software check >> exception` with cause code = 18. This patch implements software check >> exception. > >Hey Deepak, > >While not directly related to this patch, is the exception 18 delegation >documented in the SBI doc ? I mean, should we specify that it is always >delegated when implementing FWFT LANDING_PAD/SHADOW_STACK ? I don't think it's document in SBI spec anywhere. Should it be ? In code, opensbi delegates the exception (SW_CHECK) https://github.com/riscv-software-src/opensbi/commit/110524441a827e026db3547ed03c5723b9c9e211 > >Thanks, > >Clément > >>