From patchwork Fri Sep 7 05:41:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 146167 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp750268ljw; Thu, 6 Sep 2018 22:42:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYHiqtiOPZ5IUOFSwjhKGphSaSbIr2O3Ld5flBmJHgnk6Fdu1UAf/HITGeK+y4q/vORXULW X-Received: by 2002:a17:902:59cf:: with SMTP id d15-v6mr6351727plj.184.1536298930431; Thu, 06 Sep 2018 22:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536298930; cv=none; d=google.com; s=arc-20160816; b=YRc0eCKHH4vTHKgx1E2OVf5diuHzJVSrZO0haUBK9QKvciz4hAtX15dhim/60FOpca a9TPCWBF/U2BblmlBYYkKT14IKL53VJ5v7H477XWx3WQKC2sBOi81qdkPQYQGaSJ5UNq l3Y0Z3QKsUghlE39EIjvfCAjBMwJvxIDIFYvEF6vgHj7MvogsTrcV5WP/9lCyYLluntu PlRRug9mmWJ+DurIPa0TaM6ttLhelLoBLdsUt5GJKuKZUjFnbuiL1sEMEH0kI9Bs5qN6 6gYUtyIupfp5L+kp7ev+3uHZJAVyXA2LcQKx7r8m15mnYfTbzlqGwVW3AnGlf3+zaG2Y wbtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=/M3gMUc/MZNv+vx46VTKFiRQDoopNIJf9bFOeyvriA8=; b=tzvY+ANqluLY9sPuveyqSVSNAQdutS8rADcKiRzZPZc+aHf/uqa1WHg+6zVA9UbJ4Y B172DN71iPVy/2AZY8/sUNourRKAte2A9Kintd+9ISQTCoiJUykfOJ7EUkjZv2MUhAAU +Apwes7RgZDzCQPzmKJb6TKm7vb2RVIW2xjxjiiYhtdb6puHLXrPiOIz4R04FAsaKVOE kU5xozG+1+D5XyYrfV4ONClq65AXNuniAIbggZWPYwDI61GCVNe5voNVPQonsSRGs204 vKLidXfn6HVOMWiH3ENTlIQWWxebBCdUj47nTM4ygr3mxwyiLm9gt10CXtwItOWFRhDH n05A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OovU+vnH; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id b1-v6si7424319pli.54.2018.09.06.22.42.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 22:42:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=OovU+vnH; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DA30B21124AE4; Thu, 6 Sep 2018 22:42:09 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::541; helo=mail-ed1-x541.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 31D6021123E36 for ; Thu, 6 Sep 2018 22:42:08 -0700 (PDT) Received: by mail-ed1-x541.google.com with SMTP id d8-v6so10673366edv.0 for ; Thu, 06 Sep 2018 22:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=7Ekb+icvSnK4nPbqhSGd6sw6EH+rW2NhS2NSuu35pcA=; b=OovU+vnHdtk11Hcl9s6cGc7LEikPDyjIrfxZj8CeWDy6kC1ecp/lvANz2Kue/mfxML qhEoQphqTr+A9pxckTJABQiRJj4O7y/bnxvjOxG8reIxoSPuNuzHYursVVGJ5NhuJh6a lbta+yR43O/JnP7b0H9ZBQUskZE20cDN26paQ= 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; bh=7Ekb+icvSnK4nPbqhSGd6sw6EH+rW2NhS2NSuu35pcA=; b=sCq5P/yPCGDo41+mIuHXGA0F7jgeGefBx45YqZtXszOjjtbav0xMCOu5aTSEi7mNho 2FD6Yka5PDO0EAzb/HfgihjL3cq7E8oCk0FTyY3YVxQTufPaHc7LsrF5RzbA+rdBjTWC ojzSUKIplU2tHWVlMj9ubITueRvvpB5M6nTiiQQF5zc/LV8HKtngYni7Rz8KxnwJvV4q 308yXaPJU6Ph2c0yMSnHWpIN0M9gJQgTcDmS668DN4zh/24wB96JWRnpuOe9H8zb3vPw evvgONI3doWKIoXRm5+kesNcg0pjGBN84qqYlQi0fQdTHRZQEZnR84LkTrS4hkOXdHGj tsSQ== X-Gm-Message-State: APzg51Dt2Qj+VxUwMLTYuBUR7vQMd9+s8LC3/kAX5a6qI2YzNWNAUQwf TTjpkCs6AKTzWIMMJvXO/L9Ffef0FQeUUcmM X-Received: by 2002:a50:afc4:: with SMTP id h62-v6mr7040795edd.251.1536298926263; Thu, 06 Sep 2018 22:42:06 -0700 (PDT) Received: from mba13.debuut.local ([2a02:a212:9283:9800:154c:2f23:f4db:9e4b]) by smtp.gmail.com with ESMTPSA id i19-v6sm3460195edg.64.2018.09.06.22.42.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 22:42:05 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Fri, 7 Sep 2018 07:41:59 +0200 Message-Id: <20180907054202.24798-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Subject: [edk2] [PATCH v2 0/3] remove most occurrences of ELILO on IPF PE/COFF header hack X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liming Gao , Jiewen Yao , Star Zeng , Michael D Kinney , Laszlo Ersek , Chao Zhang MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Now that Itanium support has been dropped from EDK2, we can remove most occurrences of the ELILO PE/COFF loader hack from the code base. Note that SecurityPkg appears to have four mostly identical implementations of the PE/COFF measuring routine, so this may be another area for cleanup later. Changes since v1: - fix copy/paste error in patch #3 which went unnoticed due to the fact that SecurityPkg.dsc does not cover the module in question for AARCH64 - drop EdkCompatibilityPkg patch, it is likely to go away soon anyway - add Reviewed-by tags Link: https://bugzilla.tianocore.org/show_bug.cgi?id=816 Cc: Star Zeng Cc: Jian J Wang Cc: Michael D Kinney Cc: Liming Gao Cc: Chao Zhang Cc: Jiewen Yao Cc: Laszlo Ersek Cc: Leif Lindholm Ard Biesheuvel (3): MdeModulePkg: remove PE/COFF header workaround for ELILO on IPF MdePkg/BasePeCoffLib: remove PE/COFF header workaround for ELILO on IPF SecurityPkg: remove PE/COFF header workaround for ELILO on IPF .../Core/Dxe/Mem/MemoryProfileRecord.c | 31 +--------- MdeModulePkg/Core/Dxe/Misc/MemoryProtection.c | 17 +----- MdeModulePkg/Core/Dxe/Misc/PropertiesTable.c | 17 +----- .../Core/PiSmmCore/MemoryAttributesTable.c | 17 +----- .../Core/PiSmmCore/SmramProfileRecord.c | 31 +--------- MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 61 +++---------------- .../DxeImageVerificationLib.c | 47 +++----------- .../DxeTpmMeasureBootLib.c | 27 ++------ SecurityPkg/Tcg/Tcg2Dxe/MeasureBootPeCoff.c | 27 ++------ .../SecureBootConfigImpl.c | 25 ++------ 10 files changed, 39 insertions(+), 261 deletions(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel