From patchwork Wed Feb 8 11:55:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 9562343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A7EBD6047A for ; Wed, 8 Feb 2017 11:56:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ADDA284C9 for ; Wed, 8 Feb 2017 11:56:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E442284CF; Wed, 8 Feb 2017 11:56:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id AB74B284C9 for ; Wed, 8 Feb 2017 11:56:27 +0000 (UTC) Received: (qmail 8012 invoked by uid 550); 8 Feb 2017 11:56:22 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 7660 invoked from network); 8 Feb 2017 11:56:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QdfkNBEiiYaJ5xy2NsClNrboFOb+kCZKahEn/Hd/UY0=; b=Jy/c4O51M2e2UkpHpl5XOFXtlnSb5Ln7JSR2eq3mFHxO6lUyJWAZaR9pQZiZG7ZwkR TM9GtbxP89QtUWbb/F46vGMhqNTHNYUbPZdfp4Wk0tqXuCyCn7QqKeotyHBtWgE7TyDq L+CFlnceuYIDSFdMSbzUuyIqRExoaGzlSOe8A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QdfkNBEiiYaJ5xy2NsClNrboFOb+kCZKahEn/Hd/UY0=; b=M9H3AHhrqZmjEg8uK86hdCyYKL+7YCfWhRCQknvW3ihwrR7veJwY3KnEa3FxBLEEzH rWG8nr2Gol0QuRufKuYR5VBDaqgt0sfUG6IM+nZ3eI2HJzB6rlnbZ/2907xxwxY/Jkx2 oMrXpGhb+s8JZbgMQul5dW5NazP05IX+mMGBTljyv3Duy7O56ZLwX+G5naV84sY4Z7T+ 9Ph2Wq5rOOHIxRbBA79f8eF9XzCGVeW03toZZ6m6Ykklw0UTr4+hrPBP+9ogb3rDXT/U vexsXFzT/hDjY6CxVDkOTXUpO8xOtqE0x7MOb/wucnGvTenzvELt/7J5rSzFxWJ1tYwt usfA== X-Gm-Message-State: AMke39mb3uPD7qDSJ9FMZio7HlsFCCxm3CrexbGkwLOq6FyjhKFDWWr378pbSGHJKjE5zK8y X-Received: by 10.28.170.213 with SMTP id t204mr16328720wme.29.1486554967592; Wed, 08 Feb 2017 03:56:07 -0800 (PST) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, leif.lindholm@linaro.org Cc: catalin.marinas@arm.com, linux@armlinux.org.uk, kernel-hardening@lists.openwall.com, labbott@fedoraproject.org, Ard Biesheuvel Date: Wed, 8 Feb 2017 11:55:35 +0000 Message-Id: <1486554947-3964-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486554947-3964-1-git-send-email-ard.biesheuvel@linaro.org> References: <1486554947-3964-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [kernel-hardening] [PATCH v2 02/14] include: pe.h: add some missing definitions X-Virus-Scanned: ClamAV using ClamSMTP From: Mark Rutland Add the missing IMAGE_FILE_MACHINE_ARM64 and IMAGE_DEBUG_TYPE_CODEVIEW definitions. We'll need them for the arm64 EFI stub... Signed-off-by: Mark Rutland [ardb: add IMAGE_DEBUG_TYPE_CODEVIEW as well] Signed-off-by: Ard Biesheuvel --- include/linux/pe.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/pe.h b/include/linux/pe.h index a8a594117df3..143ce75be5f0 100644 --- a/include/linux/pe.h +++ b/include/linux/pe.h @@ -34,6 +34,7 @@ #define IMAGE_FILE_MACHINE_AMD64 0x8664 #define IMAGE_FILE_MACHINE_ARM 0x01c0 #define IMAGE_FILE_MACHINE_ARMV7 0x01c4 +#define IMAGE_FILE_MACHINE_ARM64 0xaa64 #define IMAGE_FILE_MACHINE_EBC 0x0ebc #define IMAGE_FILE_MACHINE_I386 0x014c #define IMAGE_FILE_MACHINE_IA64 0x0200 @@ -141,6 +142,8 @@ #define IMAGE_SCN_MEM_READ 0x40000000 /* readable */ #define IMAGE_SCN_MEM_WRITE 0x80000000 /* writeable */ +#define IMAGE_DEBUG_TYPE_CODEVIEW 2 + #ifndef __ASSEMBLY__ struct mz_hdr {