From patchwork Mon Feb 6 16:24:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 9558341 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 6F361602B1 for ; Mon, 6 Feb 2017 16:25:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61F5226D05 for ; Mon, 6 Feb 2017 16:25:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56BCE27F88; Mon, 6 Feb 2017 16:25:20 +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 8984B26D05 for ; Mon, 6 Feb 2017 16:25:19 +0000 (UTC) Received: (qmail 26096 invoked by uid 550); 6 Feb 2017 16:25:12 -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 26025 invoked from network); 6 Feb 2017 16:25:12 -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=qnHVM4V1r+eH6vhMlXtdkSpexZs9sWalVUbBuzQkkKE=; b=J+vEDk7si5jGJaCv8eDoblMKsEhpiWVw9okueyKatGYUqxLWCVyD5oKdhsTdReLKGA LaxP23DFtOGwqahoToCPV/yLaXBchyV9xlQOFB7dOzxaL/O4gXuQvdVY09pIfAxBVdlc x/8YbMqupWAVVdzNKPxGrp5bOPnoK4+Ixf6VY= 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=qnHVM4V1r+eH6vhMlXtdkSpexZs9sWalVUbBuzQkkKE=; b=UPbvSQdFw3Xb/cQH+Qf5S4T9P+K/Jo2k3EAYc5LeyIFFTlB1BRCl4mcAIl/eLu3BLM H1cW75YNniMrY6JNFT6gL1It/LatI847tFR9dddJH8Bxg993Ui50T5xmubvMkqn09qka M4Rx0GJWy/6YuVkEuUC5Jyu6mJxA56rnsqVD0sI/jYc+UIw445mmtpW3aEhBZK7fO4I4 c0KyBGE6IaABkU43Dx9RdJtNnjqw7lt/W1whDtl/b386tbtjYun44QKGa2G2Aqa8uc3O GZGBj0U1Kedrq2hzliil181ZutZJ+03zY14qzsVdRlmCBmlM6126iCLxW8RImMBfVQrf 8P3A== X-Gm-Message-State: AMke39mhCi2wfI+RAkm0ZnztRsz7AyVE/IgUoG0osapkvuZPmRLHGCG+H4su1NDCy8uk0sq4 X-Received: by 10.28.236.93 with SMTP id k90mr8632199wmh.40.1486398300532; Mon, 06 Feb 2017 08:25:00 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, will.deacon@arm.com, catalin.marinas@arm.com, mark.rutland@arm.com Cc: labbott@fedoraproject.org, kernel-hardening@lists.openwall.com, leif.lindholm@linaro.org, pjones@redhat.com Date: Mon, 6 Feb 2017 16:24:30 +0000 Message-Id: <1486398275-3966-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486398275-3966-1-git-send-email-ard.biesheuvel@linaro.org> References: <1486398275-3966-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [kernel-hardening] [PATCH 2/7] 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 --- 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 {