Message ID | 20240912231650.3740732-27-debug@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 E16F2EEE270 for <linux-mm@archiver.kernel.org>; Thu, 12 Sep 2024 23:19:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7029A6B00BE; Thu, 12 Sep 2024 19:19:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 68B7C6B00C0; Thu, 12 Sep 2024 19:19:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4B6116B00C1; Thu, 12 Sep 2024 19:19:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 2C8846B00BE for <linux-mm@kvack.org>; Thu, 12 Sep 2024 19:19:03 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E42E9120CA8 for <linux-mm@kvack.org>; Thu, 12 Sep 2024 23:19:02 +0000 (UTC) X-FDA: 82557653724.14.2196D9E Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com [209.85.216.42]) by imf05.hostedemail.com (Postfix) with ESMTP id 25D0B10000C for <linux-mm@kvack.org>; Thu, 12 Sep 2024 23:19:00 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=OBefazCi; dmarc=none; spf=pass (imf05.hostedemail.com: domain of debug@rivosinc.com designates 209.85.216.42 as permitted sender) smtp.mailfrom=debug@rivosinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1726183063; a=rsa-sha256; cv=none; b=OZ6hrE4jwJmK+G//8Ee21ZBG1o7K9Fojd5Aj3LHZNuZf9SYpZyPOwM27zLyUBY7pl8GUqv 0hXO/dzD1hl2/RURaFcqS9Zc3PmL2TleGfyM+BOIt3hixCSNUHzr9CCO2LTCzI5bgm7N7k yVro3tJrucIdu/UjzQf1klYAThhpb10= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=OBefazCi; dmarc=none; spf=pass (imf05.hostedemail.com: domain of debug@rivosinc.com designates 209.85.216.42 as permitted sender) smtp.mailfrom=debug@rivosinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1726183063; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=d4D/20yGykkpsrImg7wGRo0iFbIK8mOpJga3H67yqrM=; b=wwDt/raZRI53LUWmTV/Bzx32wrdQiWQD41vmYVrOfs//KQjuSaP2m93ZpgGwR215hUIuLr BD+AGpF4NdawQY3snQULGV3xrYbERhHZNfvn7K+wfPhRpwSQq1jxOAjRJekiNrG5kG5LGo SDInUQDqW2osnPXBm7/84/U9vube/9s= Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2d877e9054eso1107255a91.3 for <linux-mm@kvack.org>; Thu, 12 Sep 2024 16:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1726183140; x=1726787940; darn=kvack.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=d4D/20yGykkpsrImg7wGRo0iFbIK8mOpJga3H67yqrM=; b=OBefazCisoDvw95BI1A3O5iaBqoiDB/ORUxZYCm6YVJrIePO2T1ilMK7wwFyF83R52 eVcG3Dmj0KevGhhNvW2gXHnU/vowzkqlFBQ6wD13ZP96KuKIzC33j0KTkcg1aBI9V2gd d36iiIZgxYWzWV7p1zcZBBL+bbU+/nUcA+oViwsJ2gQbgXWH1eD9mVUsskngi05iog4w CBqDK5E6GzTyGYNndFor8Bm2c8up6o0SDS2S9oFgRM2ucJSx1OSW85fF35uWwoQ/sESC AnnyweYk5ilNGtlBJgC7OqZIXn8ZQU+mWhvX1fOj4F74Ru7FzkT2V6/O9IAoL6/pGoPk lOnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726183140; x=1726787940; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d4D/20yGykkpsrImg7wGRo0iFbIK8mOpJga3H67yqrM=; b=hm5LM1jM3aUckCjY/mg0JabU3ZCORvT58LsIDH4cZZ60rDJK4sPp/tLcW0nPlEu1eE xkzmaX0wssf+8GyfO5OfZQJZ5DmG+tuyGXBLCq0dF9QaECznAjYcb23lSsbGpzw1cq8W Q+O8NeQ1v8Z2QAjyp7IW7L3x5/VV/GToDiC5xCcmlq02HFp8LBqaOGvb9JnXzNR8pNBH 4CgzUXpanC0CbuPMoozn8C1gBuG5S/INHZs+qNReutdUlrK/1NeGuk2sjS6zHNZZA+W6 9n/tx8cyj81PhtBCGZUQFXdkz97aLk0a4ynxjXwmxv6de9zeiw8OLizdbmuVHmCKmLyg GZvg== X-Forwarded-Encrypted: i=1; AJvYcCVbwJ3FHJgODeu/D/KtB1GpUUljF/iM9UhuCOZnBpBzwsb+s+HQZuDk4jr5tQM65mOpzEKs5kokZg==@kvack.org X-Gm-Message-State: AOJu0Yx/eOpdyxht6K03RAX1wl6pvu0bJ1gxvWW9GNXAIIfGrHn8jt5e fcDBVV8bKgssWS4iB5am6RVqvzTfgL4btTzpNb19k/oFBd1X8PWaU3HMzksTCdQ= X-Google-Smtp-Source: AGHT+IEQ4DyvIPot4wX3TaeOhc9igc9k0ddrlo9rAO0eC0Cbq71JlaUH+P/ak8XpjpWlABFI12/jIA== X-Received: by 2002:a17:90a:4b88:b0:2da:8c28:6561 with SMTP id 98e67ed59e1d1-2db9ffb41ccmr4730379a91.22.1726183139830; Thu, 12 Sep 2024 16:18:59 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2db6c1ac69asm3157591a91.0.2024.09.12.16.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 16:18:59 -0700 (PDT) From: Deepak Gupta <debug@rivosinc.com> To: paul.walmsley@sifive.com, palmer@sifive.com, conor@kernel.org, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: corbet@lwn.net, palmer@dabbelt.com, aou@eecs.berkeley.edu, robh@kernel.org, krzk+dt@kernel.org, oleg@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, peterz@infradead.org, akpm@linux-foundation.org, arnd@arndb.de, ebiederm@xmission.com, kees@kernel.org, Liam.Howlett@oracle.com, vbabka@suse.cz, lorenzo.stoakes@oracle.com, shuah@kernel.org, brauner@kernel.org, samuel.holland@sifive.com, debug@rivosinc.com, andy.chiu@sifive.com, jerry.shih@sifive.com, greentime.hu@sifive.com, charlie@rivosinc.com, evan@rivosinc.com, cleger@rivosinc.com, xiao.w.wang@intel.com, ajones@ventanamicro.com, anup@brainfault.org, mchitale@ventanamicro.com, atishp@rivosinc.com, sameo@rivosinc.com, bjorn@rivosinc.com, alexghiti@rivosinc.com, david@redhat.com, libang.li@antgroup.com, jszhang@kernel.org, leobras@redhat.com, guoren@kernel.org, samitolvanen@google.com, songshuaishuai@tinylab.org, costa.shul@redhat.com, bhe@redhat.com, zong.li@sifive.com, puranjay@kernel.org, namcaov@gmail.com, antonb@tenstorrent.com, sorear@fastmail.com, quic_bjorande@quicinc.com, ancientmodern4@gmail.com, ben.dooks@codethink.co.uk, quic_zhonhan@quicinc.com, cuiyunhui@bytedance.com, yang.lee@linux.alibaba.com, ke.zhao@shingroup.cn, sunilvl@ventanamicro.com, tanzhasanwork@gmail.com, schwab@suse.de, dawei.li@shingroup.cn, rppt@kernel.org, willy@infradead.org, usama.anjum@collabora.com, osalvador@suse.de, ryan.roberts@arm.com, andrii@kernel.org, alx@kernel.org, catalin.marinas@arm.com, broonie@kernel.org, revest@chromium.org, bgray@linux.ibm.com, deller@gmx.de, zev@bewilderbeest.net Subject: [PATCH v4 26/30] riscv/hwprobe: zicfilp / zicfiss enumeration in hwprobe Date: Thu, 12 Sep 2024 16:16:45 -0700 Message-ID: <20240912231650.3740732-27-debug@rivosinc.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240912231650.3740732-1-debug@rivosinc.com> References: <20240912231650.3740732-1-debug@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 25D0B10000C X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: j57subgonwkw8t1coxddztdscyn6hzqd X-HE-Tag: 1726183140-36785 X-HE-Meta: U2FsdGVkX1+fsrVvLubAcX10TafPDxDd4yEtsKVhhvvFaG6BuphpvXiTMBkk7bjdS7KFNw8kEKQ9T40o5K5dt63Az9f/0OV1P8fFPmcYf9rdfZXMyM0LUS5c3mo9iWpHVq/2Oyg0qnXZ242+J2tfkice2n+FgVzQv2yNuKee5dgU7S0U58DrYkMs1bVO6vh8DiCVYjJwNenQtj7g5m76HS3EEurCqdKXIGSZbzfyO9qfQUbp/bgsO9h+fZmKtTZbBvYZktcm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sKrtnpy1gcZFfBSF6otXZFj3WxOxAkI2UUQ76QZFcDFi9rwkYpR3H3NJ9rg91j5rwxxTjXlWA9ikeLrcSJkRKKNqQxawMho1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, 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(+)