Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12122404rwl; Tue, 3 Jan 2023 09:17:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXt28UT8kGqKvOxtjKwXVBD0FVWjo5YxIZAkQGkYyePlHMTkZhlKBboDacUgWvqBix1CvJEr X-Received: by 2002:a05:6a20:3ba7:b0:b2:3174:d2b2 with SMTP id b39-20020a056a203ba700b000b23174d2b2mr47201100pzh.28.1672766250012; Tue, 03 Jan 2023 09:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672766249; cv=none; d=google.com; s=arc-20160816; b=KAbI5hGd6wAFdmwukhq9f8EHujvi+mvB5sYhXe4z1Aa677yjG2SDckmM3gfnyoouME BhvxEIbsgpOOY0sp6NpBAA6lfOTj4iw3qF8wOf/hQ7qiJyYP45N/eyPLF2xDyIpwj/pK Vrqxr5LwlYBMU7nCn+whJVnI5sqjzZ2IO0+o+Uvj3eu9r+NsP15b5UhcETCj/WzThG7D YdvZ8hqJH5OdBC0ir0wioBEgWmOCRYZOXU96tSbAi8eLGatsD2kW7DH8onYi29cu7Ncx i9Qe7T8mpfH0k2iqh2M0RVSxK4m8jVIE+NbutEqCl2DouVws9pKcrUNUbV0znGZQdD5W eXvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature:dkim-filter:secumail-id:dkim-signature; bh=RSewHCetPfFdxso2edtUfJGkvVDQYqG0Ul342gGkzFE=; b=fvM/6DHTGE9bGSxOhmb0499rk2roORxGisW3xzzWc7ivwfu0mrFSpCSs4UhcKUeG7E heEI7dC2kYJAEEbRyHRC9oM8GbSI2Q82hGhEIDOXPCSrg+I27yNtq1X2FfFo6wGN02cZ f3zfy24RxJ//hnyrFV5vtBuKqxn4hZYqADAVywN+c6JXmZjLY6x+02VKlQ194xKxbqka 1xxytZdqPf5mqZov4Gnok4dV6heWnEwC12GG5CIIqLb/lYpB2XynLUchrPlHgRCFJuwi BH4Vcjupc2kvfVGshzRN/UnAxJVlwdmfggPiADnfMoa9NZltCkLt2MYTOmgpE/PmGTb0 VVEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kalray.eu header.s=sec-sig-email header.b=u6bksh6n; dkim=neutral (body hash did not verify) header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=G2qrPCsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il14-20020a17090b164e00b002130053cad7si40474815pjb.7.2023.01.03.09.17.22; Tue, 03 Jan 2023 09:17:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@kalray.eu header.s=sec-sig-email header.b=u6bksh6n; dkim=neutral (body hash did not verify) header.i=@kalray.eu header.s=32AE1B44-9502-11E5-BA35-3734643DEF29 header.b=G2qrPCsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=kalray.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238355AbjACRBM (ORCPT + 60 others); Tue, 3 Jan 2023 12:01:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238244AbjACRAL (ORCPT ); Tue, 3 Jan 2023 12:00:11 -0500 Received: from fx303.security-mail.net (mxout.security-mail.net [85.31.212.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3CAA13CE7 for ; Tue, 3 Jan 2023 09:00:05 -0800 (PST) Received: from localhost (fx303.security-mail.net [127.0.0.1]) by fx303.security-mail.net (Postfix) with ESMTP id 7E76830F77C for ; Tue, 3 Jan 2023 17:44:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kalray.eu; s=sec-sig-email; t=1672764272; bh=Gs8REaqitopWCPCyRfy5HWmRebM2QqqARXlTb0PMHd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=u6bksh6nqs4AOjOsRryjRHuqo3kZybDMh38FI+6yuZTmIVlDsZustwuJAd1nWVX+x BTTVZoH/q3d2pMJb6s9rIVANTmNEhh5u13bx7iT3Al7nCQN+9MTy+AQpOC8FcIGUum xItSCoUEqoR8JLFXKgauCLhtdJRcPp8WSmF3llEE= Received: from fx303 (fx303.security-mail.net [127.0.0.1]) by fx303.security-mail.net (Postfix) with ESMTP id 242F630F757; Tue, 3 Jan 2023 17:44:32 +0100 (CET) Received: from zimbra2.kalray.eu (unknown [217.181.231.53]) by fx303.security-mail.net (Postfix) with ESMTPS id 3C57F30F6D9; Tue, 3 Jan 2023 17:44:31 +0100 (CET) Received: from zimbra2.kalray.eu (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTPS id 1197027E03F6; Tue, 3 Jan 2023 17:44:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra2.kalray.eu (Postfix) with ESMTP id DA1B427E03FD; Tue, 3 Jan 2023 17:44:30 +0100 (CET) Received: from zimbra2.kalray.eu ([127.0.0.1]) by localhost (zimbra2.kalray.eu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5JvnSL-6Jy3z; Tue, 3 Jan 2023 17:44:30 +0100 (CET) Received: from junon.lin.mbt.kalray.eu (unknown [192.168.37.161]) by zimbra2.kalray.eu (Postfix) with ESMTPSA id B500D27E03F8; Tue, 3 Jan 2023 17:44:30 +0100 (CET) X-Virus-Scanned: E-securemail Secumail-id: <10abe.63b45b6f.396d0.0> DKIM-Filter: OpenDKIM Filter v2.10.3 zimbra2.kalray.eu DA1B427E03FD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kalray.eu; s=32AE1B44-9502-11E5-BA35-3734643DEF29; t=1672764270; bh=snAgI5MWleNdCBnv428EB/ZkH3IL2hV0lXCM3Su50Ag=; h=From:To:Date:Message-Id:MIME-Version; b=G2qrPCsD1iMreEqLkH32ZLahM2jIBMFEk7B2h1MBVbIfJlwolsGaPL6UGzjCmLtu2 aPR4Xcp+5lUQpA0exBCO+LpYfHvz9hFq+AucLAaZggsgGs99717Xre4qRkJ8sBUGpe jeE0FEM75hfA2jU7jiQlaIH2OIRUiTEfzipWeFPI= From: Yann Sionneau Cc: Yann Sionneau , Paul Moore , Eric Paris , Eric Biederman , Kees Cook , linux-audit@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Clement Leger Subject: [RFC PATCH 02/25] kvx: Add ELF-related definitions Date: Tue, 3 Jan 2023 17:43:36 +0100 Message-ID: <20230103164359.24347-3-ysionneau@kalray.eu> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230103164359.24347-1-ysionneau@kalray.eu> References: <20230103164359.24347-1-ysionneau@kalray.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 X-ALTERMIMEV2_out: done X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add ELF-related definitions for kvx, including: EM_KVX, AUDIT_ARCH_KVX and NT_KVX_TCA. CC: Paul Moore CC: Eric Paris CC: Eric Biederman CC: Kees Cook CC: linux-audit@redhat.com CC: linux-kernel@vger.kernel.org CC: linux-mm@kvack.org Co-developed-by: Clement Leger Signed-off-by: Clement Leger Signed-off-by: Yann Sionneau --- include/uapi/linux/audit.h | 1 + include/uapi/linux/elf-em.h | 1 + include/uapi/linux/elf.h | 1 + 3 files changed, 3 insertions(+) diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index d676ed2b246e..4db7aa3f84c7 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h @@ -402,6 +402,7 @@ enum { #define AUDIT_ARCH_HEXAGON (EM_HEXAGON) #define AUDIT_ARCH_I386 (EM_386|__AUDIT_ARCH_LE) #define AUDIT_ARCH_IA64 (EM_IA_64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) +#define AUDIT_ARCH_KVX (EM_KVX|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) #define AUDIT_ARCH_M32R (EM_M32R) #define AUDIT_ARCH_M68K (EM_68K) #define AUDIT_ARCH_MICROBLAZE (EM_MICROBLAZE) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index ef38c2bc5ab7..9cc348be7f86 100644 --- a/include/uapi/linux/elf-em.h +++ b/include/uapi/linux/elf-em.h @@ -51,6 +51,7 @@ #define EM_RISCV 243 /* RISC-V */ #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ #define EM_CSKY 252 /* C-SKY */ +#define EM_KVX 256 /* Kalray VLIW Architecture */ #define EM_LOONGARCH 258 /* LoongArch */ #define EM_FRV 0x5441 /* Fujitsu FR-V */ diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h index c7b056af9ef0..49094f3be06c 100644 --- a/include/uapi/linux/elf.h +++ b/include/uapi/linux/elf.h @@ -444,6 +444,7 @@ typedef struct elf64_shdr { #define NT_LOONGARCH_LSX 0xa02 /* LoongArch Loongson SIMD Extension registers */ #define NT_LOONGARCH_LASX 0xa03 /* LoongArch Loongson Advanced SIMD Extension registers */ #define NT_LOONGARCH_LBT 0xa04 /* LoongArch Loongson Binary Translation registers */ +#define NT_KVX_TCA 0x900 /* kvx TCA registers */ /* Note types with note name "GNU" */ #define NT_GNU_PROPERTY_TYPE_0 5 -- 2.37.2