Message ID | 20241029-v5_user_cfi_series-v7-25-2727ce9936cb@rivosinc.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6572D7494F for <linux-mm@archiver.kernel.org>; Tue, 29 Oct 2024 23:45:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 921C96B007B; Tue, 29 Oct 2024 19:45:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8D0A06B00C2; Tue, 29 Oct 2024 19:45:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7246B6B00C4; Tue, 29 Oct 2024 19:45:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 454766B007B for <linux-mm@kvack.org>; Tue, 29 Oct 2024 19:45:24 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 02279A018B for <linux-mm@kvack.org>; Tue, 29 Oct 2024 23:45:23 +0000 (UTC) X-FDA: 82728272508.03.FE185B2 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by imf15.hostedemail.com (Postfix) with ESMTP id 7E61BA0028 for <linux-mm@kvack.org>; Tue, 29 Oct 2024 23:44:56 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=pp3eXBEV; spf=pass (imf15.hostedemail.com: domain of debug@rivosinc.com designates 209.85.210.169 as permitted sender) smtp.mailfrom=debug@rivosinc.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730245361; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Kn/sn+D1z+93mY85aikbkRt+t3FRvwF0B8Ok3zV+OA0=; b=Tx6OGPrLw6YBEa5zPimS9WBhUb2GouJIY9CpHKK9FeRjWzE2hMVqaU1MJna4rIVn5Bm3o6 86a6vFejFxHqJKXp+eZdXsQi5EK/3bHZKUFIU8F7K2Kh/K9mGaECOuiW/tR4vgd+NeQAJO vcO/hdC5onat7ky815QFEhgtNJTtLq8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730245361; a=rsa-sha256; cv=none; b=g2R/qTuAlNbacE9vksXhNj9eIbM1rXpRBqza8eH5+Aip3AseKgQ2yz5cXHUUQQfwWGqD8e fhCdKb6tDTux+pgLGgmeUQNiVX0ypG9G+5zhf/6QZlIJoXChSiuUlbqjBDnjYla1CGfDbZ 0sm0FoVVYUTX+XsSnhkqrgbGmTy/7hk= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=pp3eXBEV; spf=pass (imf15.hostedemail.com: domain of debug@rivosinc.com designates 209.85.210.169 as permitted sender) smtp.mailfrom=debug@rivosinc.com; dmarc=none Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-71e74900866so4572155b3a.1 for <linux-mm@kvack.org>; Tue, 29 Oct 2024 16:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1730245521; x=1730850321; darn=kvack.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Kn/sn+D1z+93mY85aikbkRt+t3FRvwF0B8Ok3zV+OA0=; b=pp3eXBEVr0tOH1eKVWnYuujDBDQt5BkK5O7d4z4e6OGKQ3dCuC8lpHFNX3yZ8KtXeI kBSkCo1jecU5n52mK1vb11IO5SAKS9gm4odxhS6zreG0kPDGtiojgvzpQaWCj0NirLd3 Ttt//Oc/+gJxPexTi49/hSDMnpZmO79E19Wn6dKHnIYOZxmTzIQdSxlgZJeeQ7WVq2D0 wJBDaFk7XehG2c204WgxmT1780SUbm4vhJtRqrZ7gcYjc3pnW6hcPeYziLV2dpwUmFfc KguwJin3mMeaXBuoVbb5iLATf0TRZqRbhPCDTAl/FqqDuw7tChIs6eNxMpNMngNSCUwZ 7oEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730245521; x=1730850321; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kn/sn+D1z+93mY85aikbkRt+t3FRvwF0B8Ok3zV+OA0=; b=lo0C8SbQ1CjaW1b4OlagnGvQafU2IMfygOym/vX6mEG8bpbboK1EGUNi26Pyk3DevE QCie6Q0AOR6ytl4PTilAFM1Wluqy8PYI4POaEc54QaybmLnRQBSA8GNYS6h12PHRXpN+ FHaVGk/qNE4FRwMuZbWR0bmt2OIr2yWvZGH0GL4d1F+h1OfkBz5DQD3FSeSRNxE+ifr3 HWnrtQetrgjcWT6YFhsRYhnLknjIdnuTK+iFzk7EzUHqBPSScf9qKXJq9icBotK6UyVv 6oTPifj2WafIvJyv3bb8MwRmPwK8nxNkMUVNhWM/mMAXjTQxnVpgOaCee/rqC9zFkwLH t0dA== X-Forwarded-Encrypted: i=1; AJvYcCVUC+Rci+cWve5DaUIRZF4YnSbGWs/NZs2t7AicRXnLswyyzL+I4luLO8Sc0PsI1SyFlpR3TStApQ==@kvack.org X-Gm-Message-State: AOJu0Yy/WRth5VCPCiQPICseZ8oXl6FE8/G7vF03vM/TwbiHn4KYFpXb AN29wsW3P76clmdgazotn+fPJtcEV70vrGWYa439K49qdi9lpdwWbxlDkOtP+mg= X-Google-Smtp-Source: AGHT+IFSRRwDJwzMEik28WuiCu9TazkISCRtSEmteAY39kMNDbrF9hMfjaoxtBbs1QyHM1hw6YiZLw== X-Received: by 2002:a05:6a21:e96:b0:1d2:eaca:4fa8 with SMTP id adf61e73a8af0-1d9a84d9df9mr21491704637.35.1730245520903; Tue, 29 Oct 2024 16:45:20 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72057921863sm8157643b3a.33.2024.10.29.16.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2024 16:45:20 -0700 (PDT) From: Deepak Gupta <debug@rivosinc.com> Date: Tue, 29 Oct 2024 16:44:25 -0700 Subject: [PATCH v7 25/32] riscv/hwprobe: zicfilp / zicfiss enumeration in hwprobe MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241029-v5_user_cfi_series-v7-25-2727ce9936cb@rivosinc.com> References: <20241029-v5_user_cfi_series-v7-0-2727ce9936cb@rivosinc.com> In-Reply-To: <20241029-v5_user_cfi_series-v7-0-2727ce9936cb@rivosinc.com> To: Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>, Andrew Morton <akpm@linux-foundation.org>, "Liam R. Howlett" <Liam.Howlett@oracle.com>, Vlastimil Babka <vbabka@suse.cz>, Lorenzo Stoakes <lorenzo.stoakes@oracle.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Conor Dooley <conor@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Arnd Bergmann <arnd@arndb.de>, Christian Brauner <brauner@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Oleg Nesterov <oleg@redhat.com>, Eric Biederman <ebiederm@xmission.com>, Kees Cook <kees@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Shuah Khan <shuah@kernel.org> Cc: 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, cleger@rivosinc.com, alexghiti@rivosinc.com, samitolvanen@google.com, broonie@kernel.org, rick.p.edgecombe@intel.com, Deepak Gupta <debug@rivosinc.com> X-Mailer: b4 0.14.0 X-Stat-Signature: wweuwo7z56jap3ih7899ef84hkrpddtf X-Rspamd-Queue-Id: 7E61BA0028 X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1730245496-651507 X-HE-Meta: U2FsdGVkX19nXJziYBve7dKwGdxaNbn1ELBfXFbfQNord+InJ4VX1VduALD2TTfjjQByUzhj5iQeDhT/VJOXbOfDRUiu9NAd0ODGkKUuZCFnG46qC894QrHRDbsq13qS4A8Y3BXvHDpoKTOLNqpqf7Wx2+cgoDA2cIGe6rr0YUKkLakiJuH2E3HrtjSTuSwlRGW+SNPxzZ9IUP2hgairG81InAiJnQayVYxNjNyTxvPvuvqs/q2vIV2FJHu6i7MIyUbrm1bqw+DIq4S/XudUBoKhgufnrzHBI4I8VCkEbI+AJGWkPRbzzHGeDHnek0DwPfoNDP4vpRfePN3RPRcsI2AyYT5w5C6oVHBYx5EV4kJJQN8oJSKfISSB3g1QYbOXXvnht/CqFP5s9OikeHY9SuTZ0s0eIEFgVqW9yBfLU1jmiIGSlUoykl3cYdy7iOjAAeF5/rV34Kn4dlXWIU6u3Yf+MLD4Jr54qAGtYxMcr0HP59FGGOZOayL2QrkSU/HpObCpb6eYuBvRq265uYfOpKPrzWsTMQn921kVLoVGDNeiyK9l1voVpQZHBhQv4Uned5AuG5scchRoH8TOdVrjSehJYYO5krMIHNnA+7W8XlMth551VIK8pjnp7i0BlVjERP5NCHdRKmfcKGMmtxhiygxJaEIhzaNgX52sgMoHEVlnupF+CZPwb6k4QMnMP/10Zk8uhsAYfFIZelEsdePJlWqJTI5Xf+z7uInXydYMJIgQKs3f7zYsV1y28m2mZt+q3A2Qf0OS7Hnu0QOn97U0TjCPCc8NSVvBNcepaPPhbuN1Bx/rd7sNFsBjPmUXwCa1s/9gUEfJOltTYltLBynYEGRP6DOPFGad+ZlaPGNZNsWJe1ScbO02bkPTGwfVrmka5sW9kJAYfszdopJZD7sXNIoU961z3ZRfwwSYK6R8vwqrC6qG1caMXMbUtnkLP0HBU0ZpqYa5V9PfSXJ2u6n K5vnTmd7 roT6pORbRqr3D1ckAjPBTVUKBYYf3+LlMPCYmc8b00vGAurGyZRmWXgY851TbKxUuIqpwPGBuuuuilHiBQUxk0oykB2gTHSpz16US4PQtRu3+hQHjLq8zhXZvTzkw+DcTpB0RBw5u5arynTN9A3na1Y9N9IEr70c7F7CllpAfntwR2gnb5Nx83242qZaAMP59Qs2Tb1Od2wjfYWEf2PNZ5gonL8iG5SEABzjYw/o66nkmYjWL7mnCqU2kVIgP8HrcxoyI/+UB+RLXCEQ72gD9UeSHDdhtaVdKngqaIam+RsDsSRtZ3P4gUuB80OEIhjrIYxGmEtsAOFTEK3L8LkQYoJqo4RB5xOarpD2wRt2RWko/P05BNqyRlTBVKPMlewEmffBKv1FSEDVOBKwvfqj9YkrHj5HYA70uhtcaOJrsFLlOt/+pjTY7hGU+rETlyFtVDUrwZzfr0iRv9faITiRVcGMMpQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
riscv control-flow integrity for usermode
|
expand
|
diff --git a/arch/riscv/include/uapi/asm/hwprobe.h b/arch/riscv/include/uapi/asm/hwprobe.h index 1e153cda57db..d5c5dec9ae6c 100644 --- a/arch/riscv/include/uapi/asm/hwprobe.h +++ b/arch/riscv/include/uapi/asm/hwprobe.h @@ -72,6 +72,8 @@ struct riscv_hwprobe { #define RISCV_HWPROBE_EXT_ZCF (1ULL << 46) #define RISCV_HWPROBE_EXT_ZCMOP (1ULL << 47) #define RISCV_HWPROBE_EXT_ZAWRS (1ULL << 48) +#define RISCV_HWPROBE_EXT_ZICFILP (1ULL << 49) +#define RISCV_HWPROBE_EXT_ZICFISS (1ULL << 50) #define RISCV_HWPROBE_KEY_CPUPERF_0 5 #define RISCV_HWPROBE_MISALIGNED_UNKNOWN (0 << 0) #define RISCV_HWPROBE_MISALIGNED_EMULATED (1 << 0) diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprobe.c index cea0ca2bf2a2..98f72ad7124f 100644 --- a/arch/riscv/kernel/sys_hwprobe.c +++ b/arch/riscv/kernel/sys_hwprobe.c @@ -107,6 +107,8 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, EXT_KEY(ZCB); EXT_KEY(ZCMOP); EXT_KEY(ZICBOZ); + EXT_KEY(ZICFILP); + EXT_KEY(ZICFISS); EXT_KEY(ZICOND); EXT_KEY(ZIHINTNTL); EXT_KEY(ZIHINTPAUSE);
Adding enumeration of zicfilp and zicfiss extensions in hwprobe syscall. Signed-off-by: Deepak Gupta <debug@rivosinc.com> --- arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ arch/riscv/kernel/sys_hwprobe.c | 2 ++ 2 files changed, 4 insertions(+)