Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1100210ima; Wed, 24 Oct 2018 14:29:05 -0700 (PDT) X-Google-Smtp-Source: AJdET5cvmBn7KYacCDQbEx9vdzYsnRALjyjduOO9zzYAOwZ4ylixOVicm2j0u/Lenn6keXnXQSx7 X-Received: by 2002:a63:8ac4:: with SMTP id y187mr4046404pgd.446.1540416545788; Wed, 24 Oct 2018 14:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540416545; cv=none; d=google.com; s=arc-20160816; b=uxvwCTIcuLcz7oLsZp3rdMNG7RpC2QDoh7MQTbCCErbhk1bXmecjTARbp/kb11LPTC 2FqajamvlpEw++TC74lr/FW2QRgVByqcv4vddgQEtZVJKeiuyzXfVDi/u6DFy5XZWfm0 a/57fP2F7yB/0SjY5l/uwlt12vffd0Oh1BtCjBy7QbyIcb65iEimSPqAvUkGydpY/aXW 1yuxX1SHq1hjbjahvBRiVD5m5opiOWThIcWv98YUwzz9s6mrBTFlxOG00oRhy3nY/X5r HpVsnY0tTLkdCdy0iB2PCdRCEa473+QIBqyRgWRUhBuMmP5AQj6l5oKwufLruQafU/xU RrwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=u3MMUBgs+lsDZG/eqkLJuq8RYjlBeGZiaHE/yxUCnxI=; b=NuaiMt7odyola9jjwOiI1pGAJr9Kk+m2JZ5vRUoKCen/DPWiMFgqjurVioO55m7WDv LipnURh9GRbWEDPfsMsQZ7BMogGyvaSoJYLAq2mMO7Z/b+IUvhE6OvMszGVc6zbG9Z/d faYPiUruWbJoXTHWFRmcoCr3JaePbgWgMzi7f50U0AuyaSYlySMDhh7jJeHDqBYP40u2 xcI80lql3zzTHwonta7lRA5XJYG795NTObRHkYJeqdT/lfxBBd04VjZs39cYQJkBZARy KFoqOVEcOUSIev6opUUjopvGS574o9/ry1quE1nqycc0eHUmKOmjp6Xr1Tl1UcYq2pCG D+Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YHPG67L2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12-v6si2832977pgl.125.2018.10.24.14.28.49; Wed, 24 Oct 2018 14:29:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YHPG67L2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727176AbeJYFzw (ORCPT + 99 others); Thu, 25 Oct 2018 01:55:52 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:38147 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726674AbeJYFzv (ORCPT ); Thu, 25 Oct 2018 01:55:51 -0400 Received: by mail-yb1-f194.google.com with SMTP id v92-v6so2781878ybi.5 for ; Wed, 24 Oct 2018 14:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=u3MMUBgs+lsDZG/eqkLJuq8RYjlBeGZiaHE/yxUCnxI=; b=YHPG67L2fs6lMYJJ84UmE/Ootbj9PMAkfGP35hu5wykOjfCCDeSGZyM31GpMZ5CESf kwjBR9aAuqE7WhfORbng3AE+67rNFvvteCRmcNhvTOT/VZso4obNtZ7NTeLxw464CQB7 ZwJ1Rb9nfNHJU/xsp0HQMrpDjk1sr9b2w58qc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=u3MMUBgs+lsDZG/eqkLJuq8RYjlBeGZiaHE/yxUCnxI=; b=tTH12c1NwZcqs2TOWK8kknnhQVvxIVMm8soVnmz+xDEWySJGJ7JcA5gM2bsRE3wGjD 6NunfnmYejb+czTstU2RAN6gUAW7mbnSYuVzqdoELzXQY3ZJqaBjYIXaKjeNYAXhWm38 VSDg+WlHCBKAv5ys6xzf88oljUWDGQuEogPU8pKLLzWuuNZzViMkSqJIGKTAsm1K7dkz HIkn629hlbQeXUfeymQorP0HQvB7zhzSdbkjmonE3F8w6ITOpRb6BHD3cqdmpmQOyjve i1p46v/DZftlo5f2WELq7aYBdfjv1PhAJDSCiDKVRDICrM74LSiO8u4hByMBNv/LqyRI TuLw== X-Gm-Message-State: AGRZ1gJI6LvBZh2Q1lB5Q7G9QD042WLyjc2IyBJn12vXlEWfeIiZbA8W loJ3idV11rzWrIWKIiCwGuIPXK/VfzU= X-Received: by 2002:a5b:787:: with SMTP id b7-v6mr3904846ybq.167.1540416368589; Wed, 24 Oct 2018 14:26:08 -0700 (PDT) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id x185-v6sm5319835ywd.40.2018.10.24.14.26.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Oct 2018 14:26:06 -0700 (PDT) Received: by mail-yb1-f177.google.com with SMTP id j9-v6so2781744ybj.6 for ; Wed, 24 Oct 2018 14:26:06 -0700 (PDT) X-Received: by 2002:a25:ac8e:: with SMTP id x14-v6mr4134609ybi.141.1540416365577; Wed, 24 Oct 2018 14:26:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:3990:0:0:0:0:0 with HTTP; Wed, 24 Oct 2018 14:26:05 -0700 (PDT) In-Reply-To: <20181024204036.8799-2-palmer@sifive.com> References: <20181024204036.8799-1-palmer@sifive.com> <20181024204036.8799-2-palmer@sifive.com> From: Kees Cook Date: Wed, 24 Oct 2018 14:26:05 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] Move EM_RISCV into elf-em.h To: Palmer Dabbelt Cc: linux-riscv@lists.infradead.org, Albert Ou , Paul Moore , Eric Paris , Andy Lutomirski , Will Drewry , Wesley Terpstra , David Howells , Thomas Gleixner , Philippe Ombredanne , Greg KH , Kate Stewart , LKML , Linux Audit , david.abdurachmanov@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 24, 2018 at 1:40 PM, Palmer Dabbelt wrote: > This should never have been inside our arch port to begin with, it's > just a relic from when we were maintaining out of tree patches. > > Signed-off-by: Palmer Dabbelt Reviewed-by: Kees Cook -Kees > --- > arch/riscv/include/asm/elf.h | 3 --- > include/uapi/linux/elf-em.h | 1 + > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/arch/riscv/include/asm/elf.h b/arch/riscv/include/asm/elf.h > index a1ef503d616e..697fc23b0d5a 100644 > --- a/arch/riscv/include/asm/elf.h > +++ b/arch/riscv/include/asm/elf.h > @@ -16,9 +16,6 @@ > #include > #include > > -/* TODO: Move definition into include/uapi/linux/elf-em.h */ > -#define EM_RISCV 0xF3 > - > /* > * These are used to set parameters in the core dumps. > */ > diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h > index 31aa10178335..93722e60204c 100644 > --- a/include/uapi/linux/elf-em.h > +++ b/include/uapi/linux/elf-em.h > @@ -41,6 +41,7 @@ > #define EM_TILEPRO 188 /* Tilera TILEPro */ > #define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */ > #define EM_TILEGX 191 /* Tilera TILE-Gx */ > +#define EM_RISCV 243 /* RISC-V */ > #define EM_BPF 247 /* Linux BPF - in-kernel virtual machine */ > #define EM_FRV 0x5441 /* Fujitsu FR-V */ > > -- > 2.18.1 > -- Kees Cook