From patchwork Thu Sep 6 13:45:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 146089 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp534253ljw; Thu, 6 Sep 2018 06:45:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYr0MDYj0mmiq6yvKV/O0n4JYigX4I05IwqjM4vvmqqXhUiksBzRVjsTm9/8Srv4PDZu3Tf X-Received: by 2002:a63:9e41:: with SMTP id r1-v6mr2754675pgo.362.1536241543359; Thu, 06 Sep 2018 06:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536241543; cv=none; d=google.com; s=arc-20160816; b=lpRZXyoNv6gJL0S0qyN9ZfYPCUn6Nz6PJ7cIJOi0wbVinwbK+No9I8BR3/Qaex/EF6 W44qsRuk8M3NrW08w1d6KVdJ2uSlDB9IU7MpJ4zooh4cxFT7lmT6TCtgYfbZ3Kh9kqwe ijf8erpHdxLoFoI3g/w0AjAPB8wp/zBY9neoZ0rPgQMRJXBSiNbSMcbNC6ZGBuTvre2X if3FNrx/LbgUa8rOMaPicl0+jg2ilRaP+2VbxjU3kVlnrAnYgQLKXKtiE3UGYJDa4PPu b0SoJLiAw1pifKblN107KBRTHl6uwCv49bo05IgMJQVmIkCNrBey3Fj0PsekrT3jyyY4 G8Vw== 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=UeZz8k4AbjyHPxDsX9GPc3yaIpdBRBCC4dvcO8GWH2w=; b=WWsy1REl75aCDP6tKLsei+l7CvYEKKMglICCyoh+vtQye6tq7I6XqNkSNlX63hbx73 WLTzbRdF50HuTUr0Hp5pQQG6Trwy3bbgxROI8Xue3D9eFT7xm0GHIFT4zxKq+uIjhzUg 8/tfmsb/7hfy4IHWe2evKhlTolDUC6vGJvwWhP0otct3NJp8e5kB/yJL+VL2hR5+B+T+ 6PHc9js/PnYNOS+iPMKWJM2lYgIOYgz/TXHHM6852NFfM5oxZ5UeMp/gS8Qk/au023K3 3NCQSExSw/+ZW88OKOnMAGFKmDHRtCgV9m/5/gjgXyDQc6RorO1HgDCcyv5PQALCGKL1 ENZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Cx2lokYz; 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 c2-v6si5499148pgm.236.2018.09.06.06.45.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 06:45:43 -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=Cx2lokYz; 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 769EE21122939; Thu, 6 Sep 2018 06:45:42 -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::544; helo=mail-ed1-x544.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) (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 1CF36209831C6 for ; Thu, 6 Sep 2018 06:45:40 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id l5so8936087edw.9 for ; Thu, 06 Sep 2018 06:45:40 -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=Kw17U6wSatNJg6bOfUyuQnLxMhWrItUPHY7J+9nNziY=; b=Cx2lokYziXR2Yg6PL+4PCntmbNO0o48XNsG9XZRwllFeUzj+92gGtLGa9UM+t2c2OV FD8/sRTYAQfjMtVa9KOKqjLCd6HYqxPTl6F66m89MXzFG6IJig0xGxsWjvGg72uZEQgq UwBaqhGpxjBqsJnoeVNX/Sro/YxyynfWpYPWo= 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=Kw17U6wSatNJg6bOfUyuQnLxMhWrItUPHY7J+9nNziY=; b=RyZ1jAmSurCO3a2Ku6KQI1lbDAEYaLjS38CZ1VaiiUC2xKTZWoKCHcaPD6TiTup/pY EBhvqW2UgBkhwfYbKt/bnTVhsifLeRABs6JiPd3IRTSQUwJcC7U+KrTUQ8FeGbRFj0WD DKKlPMNX7AWfp2HF3ME36zTpT4Jo+UEkcwrtreo7/BJTzKmmBC76dfEFASmEAI4YHFrQ iG6xafHpHbT2MXbgvGWL8LSl8wRTHZyM/lOqG7izjRXBpmGCbJb1f6L9AOSR6GDd+yTm 7/QJGqOg8hmL8dOsadNfIjm8mP/Zsoax9DzIwj/PWpWBUqeHpx40GAQ5H+kpbtlxp+zw CW/g== X-Gm-Message-State: APzg51BS7atejxkwodJBG4HNio7B2CjJ8VnMb8DRenKljMmPrM2HfmPz 4n+cOKhNdcQHKaFFrfLSBE3u0ZyGgK+/umag X-Received: by 2002:a50:fb8f:: with SMTP id e15-v6mr3542329edq.153.1536241538769; Thu, 06 Sep 2018 06:45:38 -0700 (PDT) Received: from rev02.home ([2a02:a212:9283:9800:24b9:e2d6:9acc:50dd]) by smtp.gmail.com with ESMTPSA id l48-v6sm2818764eda.94.2018.09.06.06.45.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 06:45:37 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 6 Sep 2018 15:45:19 +0200 Message-Id: <20180906134523.2036-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.18.0 Subject: [edk2] [PATCH 0/4] remove all 11 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 all 11 (!) 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. 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 (4): 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 EdkCompatibilityPkg: remove PE/COFF header workaround for ELILO on IPF .../Library/BasePeCoffLib/BasePeCoff.c | 60 +++--------------- .../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 ++------ 11 files changed, 47 insertions(+), 313 deletions(-) -- 2.18.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Jiewen Yao