From patchwork Fri Apr 29 14:21:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 8983301 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D3EC59F46D for ; Fri, 29 Apr 2016 14:25:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1008A201CD for ; Fri, 29 Apr 2016 14:25:03 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E866201C0 for ; Fri, 29 Apr 2016 14:25:02 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw9Id-0005rP-W1; Fri, 29 Apr 2016 14:21:43 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw9Ic-0005r8-Kr for xen-devel@lists.xenproject.org; Fri, 29 Apr 2016 14:21:42 +0000 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id 06/B8-19199-5FD63275; Fri, 29 Apr 2016 14:21:41 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRWlGSWpSXmKPExsXitHRDpO7XXOV wg2Nb1Cy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oxTd9wLHrNXXPl1k72BcTVbFyMnh4SAv8TC Wb9ZQWw2AR2Ji3N3AsU5OEQEVCRu7zXoYuTiYBZoZ5To/HWDHaRGWCBY4vSmNrB6FgFViTcHJ oHFeQVcJP7/WMMKMVNX4uTuTWBxTgFXidUr3rGDzBQCqtm71hmiXFDi5MwnLCA2s4CmROv23+ wQtrxE89bZzCC2kICiRP+8B2DnSAhwS/zttp/AyD8LSfcsJN2zkHQvYGRexahenFpUllqka6S XVJSZnlGSm5iZo2toYKqXm1pcnJiempOYVKyXnJ+7iREYfAxAsIPx+x+nQ4ySHExKorxXdZXD hfiS8lMqMxKLM+KLSnNSiw8xynBwKEnwXssBygkWpaanVqRl5gDjACYtwcGjJMJ7ASTNW1yQm FucmQ6ROsWoy7Hgx+21TEIsefl5qVLivF9AigRAijJK8+BGwGLyEqOslDAvI9BRQjwFqUW5mS Wo8q8YxTkYlYR5P4BM4cnMK4Hb9AroCCagIwQ2KYIcUZKIkJJqYNw67frppQaJB/iELqx/0sZ Z+aPZqfd052Xnkskl/YbNgqY3LTZLfvQ3mrb2TuumAkOuKuFqxbpZNobq7MllTgarOyZ/v+Z7 5nH79xd2VvVhgis/f6sXTKteXT5pofJaddeiLguuFI+gWyomu2x02CfJZAo8bTDKzfzy/YxF1 5fLh+enx706pMRSnJFoqMVcVJwIAFs7VQvEAgAA X-Env-Sender: prvs=9202e7170=roger.pau@citrix.com X-Msg-Ref: server-12.tower-206.messagelabs.com!1461939691!780758!4 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 2666 invoked from network); 29 Apr 2016 14:21:41 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 29 Apr 2016 14:21:41 -0000 X-IronPort-AV: E=Sophos;i="5.24,551,1454976000"; d="scan'208";a="350725924" From: Roger Pau Monne To: Date: Fri, 29 Apr 2016 16:21:20 +0200 Message-ID: <1461939680-32574-5-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.6.4 (Apple Git-63) In-Reply-To: <1461939680-32574-1-git-send-email-roger.pau@citrix.com> References: <1461939680-32574-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ross Lagerwall , Roger Pau Monne Subject: [Xen-devel] [PATCH for-4.7 4/4] xen/xsplice: remove OSABI check when loading a payload X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP FreeBSD linker sets the OS ABI to ELFOSABI_FREEBSD, but the payload can still be loaded without issues. All the ELF OS ABIs follow the System V calling convention, and the OS ABI doesn't really matter because Xen is a standalone kernel. Signed-off-by: Roger Pau Monné --- Cc: Konrad Rzeszutek Wilk Cc: Ross Lagerwall --- xen/common/xsplice_elf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xen/common/xsplice_elf.c b/xen/common/xsplice_elf.c index e403a0e..de68d29 100644 --- a/xen/common/xsplice_elf.c +++ b/xen/common/xsplice_elf.c @@ -397,7 +397,6 @@ static int xsplice_header_check(const struct xsplice_elf *elf) if ( hdr->e_version != EV_CURRENT || hdr->e_ident[EI_VERSION] != EV_CURRENT || hdr->e_ident[EI_ABIVERSION] != 0 || - hdr->e_ident[EI_OSABI] != ELFOSABI_SYSV || hdr->e_type != ET_REL || hdr->e_phnum != 0 ) {