From patchwork Tue Oct 1 16:06:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak Gupta X-Patchwork-Id: 13818410 Return-Path: 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 0C82CCEACE4 for ; Tue, 1 Oct 2024 16:07:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8D6D42800A2; Tue, 1 Oct 2024 12:07:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 838B4280068; Tue, 1 Oct 2024 12:07:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5EDD02800A2; Tue, 1 Oct 2024 12:07:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 3BE5E280068 for ; Tue, 1 Oct 2024 12:07:21 -0400 (EDT) Received: from smtpin26.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id E66051214C1 for ; Tue, 1 Oct 2024 16:07:20 +0000 (UTC) X-FDA: 82625513040.26.3958295 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by imf17.hostedemail.com (Postfix) with ESMTP id E94354000E for ; Tue, 1 Oct 2024 16:07:18 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=p3Om1PBR; spf=pass (imf17.hostedemail.com: domain of debug@rivosinc.com designates 209.85.214.180 as permitted sender) smtp.mailfrom=debug@rivosinc.com; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727798774; a=rsa-sha256; cv=none; b=1P0yA9vnL69XvSkL/deWLTKBbTfHaxCHB2WD5ZaqWIpHKFQZ+ylRdLQDD/oTmOPG0pqyzg TJ6BAOlr+Tjs4hk47O6T0F8A7XJyY2ieNQ9FdVSQiGhcBuHNsQlqrk0w+Vuw/4SqoyWNI+ jBnZrMw8MU+cq51d3DxhkkK9Jg3yC90= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=p3Om1PBR; spf=pass (imf17.hostedemail.com: domain of debug@rivosinc.com designates 209.85.214.180 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=1727798774; 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=KtNVXjjPkEHV4V6z1fTmchaZwC5pGCKRUL8HB/rDqj8=; b=ZaVXah9GcCa7u7ySv+e6EaveHL8zromMnh0bYiVqYD95sxlInGxkmJf6g5LQbpF4rk7gko LJ5Xb296ZBAfMrweQUd85nemwK139TweOelGXj2jTnBZ9ES4ho7L0DRM88v0iR8GdoEaRi YU3sNGCjcP4PHw/WNmYhgdOj4f67OFM= Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-20bc506347dso910425ad.0 for ; Tue, 01 Oct 2024 09:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1727798838; x=1728403638; 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=KtNVXjjPkEHV4V6z1fTmchaZwC5pGCKRUL8HB/rDqj8=; b=p3Om1PBRinDoq6BCZqTxrVmomcxeJMkpJD28ycxmLmMW+sA7yMVOyCuFEXR0XQKJwJ RNUUunQEkIiyV9OvqYzTZcstXmY+9mnMdCFoiOCHXtoaOYuvoijVm2tS3o7KG7zXnl28 QzxzPTRMy+NNUMcY+FAsA8Z3CudIwhhQZ4WnN2CpObv0MFUSkdh8GhvRacPHz+CCFZZy M64X7SWCj8Pzp48pTJ3nO6Bav1uJKnEpBMNScLaC9lYeOAPXD/ZYW7jrJUJqNnn9bk0g 6gdn+vd+XF9EW5wLiF9Ko5cn5Z3TGUVDzLrDw8kmmCNT9finZhLQWdo6eGRA1xODt679 B37g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727798838; x=1728403638; 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=KtNVXjjPkEHV4V6z1fTmchaZwC5pGCKRUL8HB/rDqj8=; b=oRU7gGkGgZ9Bg5Xt6SNttRdiCViUOrqr1t26jLJUtAHVuFc56n/1mc7v4BKYEQEDPO o0er7eIbHep2lYJKxbtbRadZWmv1lWrT6tonas96Wr4FfTh7DzBHnl2ub6vjsz177Ulb 4WS1Y7qObRBTTOJhKp3PmDwRVYWLPBiFm+nE/zXFFc45wZL7piG6qJDJDwqbvS/+VjGK CM9IYAogH9//fQIozBIKdULZ4feabIp97+4BzfQ/PreauX2fFhhwqmL80mQ3aG/nVM3m 1ZUp+ydWiT35qWTBZSXNTZaui8RaP1jzrEahc7WzAeS3hdadXj1o7QNYQhXlWa9nFlQN UOsA== X-Forwarded-Encrypted: i=1; AJvYcCWO5XORcfgjY8MTxrsnNdbtkG+dZWVpJLnKaCPxvlBgD1KX97GO/ml7eW2QbkztBHyREPTjlU9aJA==@kvack.org X-Gm-Message-State: AOJu0YwLs/fgydAFro/3mESbQkohnJFtQb5bvzsRXOV84AAElKoWF/ay lQQ5DGuyL/NKbIFS8hQsPVhPOH1ePUevP0D180p+SEWJVfw9c2LOt8PCNE3Cnu8= X-Google-Smtp-Source: AGHT+IGUHiuJzYzZ98ttT4VkP6ZUowafZttsMI2A0s9DSSKJP7pFR0E95zO3sMygBlOUl3biGdauQg== X-Received: by 2002:a17:90b:94e:b0:2e0:ab57:51e5 with SMTP id 98e67ed59e1d1-2e1846bc39dmr235253a91.23.1727798837693; Tue, 01 Oct 2024 09:07:17 -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.07.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 09:07:17 -0700 (PDT) From: Deepak Gupta Date: Tue, 01 Oct 2024 09:06:12 -0700 Subject: [PATCH 07/33] riscv: zicfilp / zicfiss in dt-bindings (extensions.yaml) MIME-Version: 1.0 Message-Id: <20241001-v5_user_cfi_series-v1-7-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 , 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 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 X-Mailer: b4 0.14.0 X-Stat-Signature: s48oexgh1fg8g5yi1r6d3bursixbimnb X-Rspamd-Queue-Id: E94354000E X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1727798838-230913 X-HE-Meta: U2FsdGVkX18eorH60NdzVQf3wsP6iDz1VYSOnc/tu3kceB94OmBhXZ4pytrbzoKaD3Y58FrC626CS5zNtW9+5/q7HIxds5RSKYdYQvqR7ic3nHehF5fTZ6G18VejtBTVgN36Mh1Mwqecg2VqKHc3Gw8KvZ1M1a2Mujt7QDOenjXv05aYfaW+KuHXhjD0rNZDAZnVo8dV5mOc+OUIf1b+vi18j2XgDWuxgoDEClLYt7WdF8sjYyGn368eWyiw9L8j8oxnSSfy7Kf/Uxh59lJ+SJI1DfqS9hCExBC5+kjOEpQ7jgNknocWNpEnYI5Cgy0iFaO8aozuEtpIKSIQ7j7qmh8J+wYRbVc3QF7xRnMNdhOmEZ8Z3H1Oc6hOPuHwM0z9e5HosUzQdy9b80ZeGEvNKT6xdqriARTdO6vRvK06LcJQEOI07mp1t8tv8u7OsOnjyyDJxwJkpU+1FjnHRb1WOyzXtGe8XEs2lqfg1EeS8gK4+LPOBQdQ1EEe2TNPVjXngVyOAuZd9EE2RIrxYkrgky0xZORPo2pBWo/DuwvoWxSm3fJVxJOFoVoixmMu+pFkDxblZO/unl+P2oBq5qIrZI0HZ5M0470igWlNuN1iAeIdb48bJ6D6XbkN/6k63eDgp5B42BmdXnVZJz2HsIrQ6I/5/xBkdd6onO71J48dqXcSIOL9Y8WDZ6I/PELxVuq9r1LPYgciAeGnBFN3DqjKOX3cwVScnq7PBG6ZpylITukgxV/QE+YCKxXDr4A3jhepsGxQbekcC/23A5AKkcJTvGR+Pj0A3Mr8sDFTmirYtTkM4s8s9hQdulH2CG2WWRbL4NAbmJh3YyHJdWjTZz88E/GO4l026K8T+abEdabMalvDXISPcApTrnB16djiWMURFOSydv5YyHbakPdDL/ISh/RjtFRaC1b06HgOnoslIjkNaWBeDJf5aHhrV137vU9Wjsp5TfezJhcOW+ywAal LNupgc5T BrDMxiy+2QvIo+fuktESZcRzr1Q+Ws30moKNXS1GIoviCdyyIXLpNxWlwBhp3qLiw2Fo/Gui+cK1GHnwVYxou5QWmEeRCHkb6OeyVJSRz7WuaFhCcLOmh4fOMqflDYygyAku+sJN9Q6m9x8DITZydhTAnNZNvFJqsNrDOLiaJWYzKRM49hyK/f+G13b9V0icFlLjBys+JJ5pyHfRkWBBCcJ3txWqxcoEyBAO1eU0tR65Z/HreQfXjR1VkKExZ3ahfLwy08P983AabDr0c5up42FP7NIkAAo89aj0yXgIkQN5BNsstFYt4g3DNga3hTEbJZOcDyHbtNVvB/d/YBnD9ZoyPbV+APEW9panVHn+yeFQk6AOuynS+3nK7AxPeRy1AqYsWvS/vWibnCvr5ZVpu94H3PllcH7tb48c7OMhjGx/LjVrnURmA3prsuXmDLrK9ufTrlfmkB8nPhHU= 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: List-Subscribe: List-Unsubscribe: Make an entry for cfi extensions in extensions.yaml. Signed-off-by: Deepak Gupta --- Documentation/devicetree/bindings/riscv/extensions.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml index 2cf2026cff57..356c60fd6cc8 100644 --- a/Documentation/devicetree/bindings/riscv/extensions.yaml +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml @@ -368,6 +368,20 @@ properties: The standard Zicboz extension for cache-block zeroing as ratified in commit 3dd606f ("Create cmobase-v1.0.pdf") of riscv-CMOs. + - const: zicfilp + description: | + The standard Zicfilp extension for enforcing forward edge + control-flow integrity as ratified in commit 3f8e450 ("merge + pull request #227 from ved-rivos/0709") of riscv-cfi + github repo. + + - const: zicfiss + description: | + The standard Zicfiss extension for enforcing backward edge + control-flow integrity as ratified in commit 3f8e450 ("merge + pull request #227 from ved-rivos/0709") of riscv-cfi + github repo. + - const: zicntr description: The standard Zicntr extension for base counters and timers, as