Message ID | 20241001-v5_user_cfi_series-v1-26-3ba65b6e550f@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 E323BCEACE4 for <linux-mm@archiver.kernel.org>; Tue, 1 Oct 2024 16:08:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5F3012800B5; Tue, 1 Oct 2024 12:08:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 57819280068; Tue, 1 Oct 2024 12:08:13 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3A4EF2800B5; Tue, 1 Oct 2024 12:08:13 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 1B6E9280068 for <linux-mm@kvack.org>; Tue, 1 Oct 2024 12:08:13 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id C28BE1414F0 for <linux-mm@kvack.org>; Tue, 1 Oct 2024 16:08:12 +0000 (UTC) X-FDA: 82625515224.08.4D1F164 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by imf27.hostedemail.com (Postfix) with ESMTP id C15924002C for <linux-mm@kvack.org>; Tue, 1 Oct 2024 16:08:10 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=YDdnBhdl; spf=pass (imf27.hostedemail.com: domain of debug@rivosinc.com designates 209.85.216.47 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=1727798851; 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=IjvUiWFDgNIgR9D1bPvnv0vD2BBeNN4jEZqEwYO5LXU=; b=Dakn8lChoIgdCTKB2bHK3VXKLC6yozEmjKB8rzAfSembRTaitbtD25kUGhIknAnV3iW0PZ WVDNbdxgDRrWIxYlk4PEhp9FaYyn7r+GxBWxyXkI6pNxLpgM/V1RcDMtcAiseFOGa1XiK2 UJP7YPwekupwGBf1YSeh+0nMEG5DgWw= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=YDdnBhdl; spf=pass (imf27.hostedemail.com: domain of debug@rivosinc.com designates 209.85.216.47 as permitted sender) smtp.mailfrom=debug@rivosinc.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727798851; a=rsa-sha256; cv=none; b=BHHUmjb2dhpiINDUdxfeaT8mjoto+MPUiYsC5uuE9Fcn3/CQ6DM7j3D+Z5h+eyG9+19Hnv V3EiHvoMZi6ZPbgzer01J/u6HCZhPqH0wQlUSO5eW8fvdEOWZ+nmJuP7Q0WnY4yc0IQ+K4 c4MgES7Vk9mUOP3ERCe7t6aPiho0LYw= Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2e0894f1b14so4296656a91.1 for <linux-mm@kvack.org>; Tue, 01 Oct 2024 09:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1727798889; x=1728403689; 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=IjvUiWFDgNIgR9D1bPvnv0vD2BBeNN4jEZqEwYO5LXU=; b=YDdnBhdlb/ZLyNyazKsFop3MrwV6Y7W4ZmGe0hQDaIbri8kic+Zo+LJW8ihrJ+6qZP CeMTBvZYhVymNFezCCCMGN2R7jZa/7IpwbGYvz0Pxlj4GESeQ92+n97+vF19tjLZJWzq 7F9Q5ZbHhFVnu5zY2n8sLLHVshA5cH9n9qpX/hC877uGUnOyCBY6EMv8E/dXJ0l/VcMX txhiKy69lylevjzHm40px9OVXYqJYrpwgdsMLTLXjPAl6ZuvHrApFBiqv0N2+6gefCd2 mi59nLay6bpsfuCgrYpFYWw1FNEmrv3ip/5IzR5Ovd4A4zIXSWmpRst0crI57iUJquZF 0p3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727798889; x=1728403689; 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=IjvUiWFDgNIgR9D1bPvnv0vD2BBeNN4jEZqEwYO5LXU=; b=abp6hb43gTfsobM9P5taaFjero9lQpVWDQmqzXj1bOuFNHr20vkzh3khA6ySHdmdk1 70vXEpsju7vz8Wh9pn3T24zZv7SelppcyZCuM6GA3vdwv1dq01p2IyGfqDVjzz8yirN0 K6/dr7uM7yPQ/FEYnVwjATqHkmDvbiAqfqeSrwXHPTkfmPUJeNlHxi5KXTeKwmZDkqfO fSyABt2e/rXXFY9rIVJiw1BlZ0dxbNFvvT1eYDoYK6D79/QXPwnXTF/dbPyywhnOz8k+ Ommw9s35Oi9jUSJU6cf5Knk1qDo53Pmo+J9xDcIJtpQfTRNrVKU330n7ZgH9egvqjUJI e1qA== X-Forwarded-Encrypted: i=1; AJvYcCUwbm62LeJBqOkTxr7YRJRT47hWwR4ZTtx0C0G7DhSPfbK1JJH0VJr4PYpMJBqyOaawgMSnps2MNA==@kvack.org X-Gm-Message-State: AOJu0YyQADD68pkhqLD2q3AM2pc+dgBjbmKb0cnLakUMX0E6fpD8gYcN EX1qoqy6zLVvQ6Rom2LfZ7tnW1ypMAYzQw7SAenOlqnIOZQ0XvcNn9ddVwxiVVo= X-Google-Smtp-Source: AGHT+IEFtkvkf8CeAUwgsAXuKYnO4LfTHDhI++8QoSmmlyNMIGKy49PqXf+MVN7GYY3kXwIYrf7vbw== X-Received: by 2002:a17:90a:7402:b0:2d8:77cc:85e with SMTP id 98e67ed59e1d1-2e18496b9e2mr188291a91.37.1727798889491; Tue, 01 Oct 2024 09:08:09 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e06e1d7d47sm13843973a91.28.2024.10.01.09.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 09:08:09 -0700 (PDT) From: Deepak Gupta <debug@rivosinc.com> Date: Tue, 01 Oct 2024 09:06:31 -0700 Subject: [PATCH 26/33] riscv/hwprobe: zicfilp / zicfiss enumeration in hwprobe MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20241001-v5_user_cfi_series-v1-26-3ba65b6e550f@rivosinc.com> References: <20241001-v5_user_cfi_series-v1-0-3ba65b6e550f@rivosinc.com> In-Reply-To: <20241001-v5_user_cfi_series-v1-0-3ba65b6e550f@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-Rspam-User: X-Stat-Signature: yzgbxex3obh5x9hphqaafi1rxkzq79ma X-Rspamd-Queue-Id: C15924002C X-Rspamd-Server: rspam11 X-HE-Tag: 1727798890-64466 X-HE-Meta: U2FsdGVkX1/nQUkIJgFu+3DFHYqnMwsIb8QhH6XOqRqtZ36It03OjC0l7QajNfgCU7p3aA8A+UVP0wS86sxS4zn2vC77jM+QsiqpIzj+Pii4uKgG6vW32Bub19eqt/QtSVC506B5v8rIs3rTVBugW8uAbduRVdmaaPhtnFAlSjfUZOTpNpIyyOMheeDNGorW94nt2/3dshgMbPfSqoFGMADL1sRoFtCKnIQupt9/ns0Z/n5KCG4d7pMWLlmVs5ktY7hPd+b8Bx68OXFy5tiWLx10mX3rongs7vX7MXp9Ugf27pDp337f0AN42UN4Fzj/aXC4LPTjE44S42GHbxitihT4ad4Jv9R1M9P3ye9DyEfxaG7fG5pMqUGn5qbTxXNhoDV7ZCpTg04mvLIiPHrHThqh1M1LA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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(+)