From owner-freebsd-arch@FreeBSD.ORG Thu Aug 14 23:22:54 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C399E4F for ; Thu, 14 Aug 2014 23:22:54 +0000 (UTC) Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62D71201C for ; Thu, 14 Aug 2014 23:22:53 +0000 (UTC) Received: by mail-ig0-f169.google.com with SMTP id r2so947307igi.0 for ; Thu, 14 Aug 2014 16:22:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:content-type:subject:message-id:date :to:mime-version; bh=Z3vkO9BUeCsY0IxK7dABhEgC6Fp4JXmGu/WUQjA1+ow=; b=QXfhb4WmRe+NRG1QSI9/tZl+jTBElESHcnhX5R4ky3FaLwpCN1UsKOsO+cYlNYfPeA H4aKWhso3dXmcSqDXcXHvahoUkZTKUEZ8CEvJmPzklZPvUaBe5g4YlpRhYz7rM9J3zV2 IEQjo/JwbcHymhoJKx4r367oavTFicHkyetS4T6LlZCoqMWXu2eeyN/34qucAE0auk0R 1NJgNm6WhYNx56glw1btWVSby8bijx7g+V3nDbXL+V4FvWmgVhHo2xT8cXpoJ/5LPwsZ ASNta+EQmm+aaGQDWVmZy35qgtkV8g+7tipW/Fgp0nNthA8fyuyEML6sT6YdOg2VCD9S wdOQ== X-Gm-Message-State: ALoCoQmH3qf9B/nxGr7TC2Bv58cqwJTA7v4v6mE54HvApOSj2LWxMosNIOfLR9bGC32350ZkWa5j X-Received: by 10.50.32.73 with SMTP id g9mr63907841igi.31.1408058572670; Thu, 14 Aug 2014 16:22:52 -0700 (PDT) Received: from netflix-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id b8sm928530igl.5.2014.08.14.16.22.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Aug 2014 16:22:52 -0700 (PDT) Sender: Warner Losh From: Warner Losh X-Google-Original-From: Warner Losh Content-Type: multipart/signed; boundary="Apple-Mail=_34F8677D-C137-4C06-A051-240664178A51"; protocol="application/pgp-signature"; micalg=pgp-sha512 Subject: MD Elf header filtering Message-Id: Date: Thu, 14 Aug 2014 17:22:50 -0600 To: "freebsd-arch@freebsd.org" Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2014 23:22:54 -0000 --Apple-Mail=_34F8677D-C137-4C06-A051-240664178A51 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Greetings I=92ve implemented a per-arch filtering mechanism for elf headers. why = would you need this? Because we don=92t have a kernel that can run both = EABI and OABI binaries on arm. OABI binaries can lead to crashes when = run on an EABI kernel. To prevent that, I=92ve created a new function = elfXX_check_header_md() which interested architectures can implement to = filter out binaries they know won=92t work and use it to filter out EABI = binaries on an OABI kernel and vice versa on arm. I=92ve also created a = weak default version for those architectures that don=92t that accepts = everything... https://reviews.freebsd.org/D609 Comments? Warner --Apple-Mail=_34F8677D-C137-4C06-A051-240664178A51 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJT7UTLAAoJEGwc0Sh9sBEA4JIP/3BMgYuH5UXgmg5oBV1pPoZZ Kz3adbLtTNTlTfWzLJRtbT06SEEhoSgws4bwOWHl818YdA7yCS3i10mnLUQuC9lD nNm7ZHIHw5FB4aYNLD30kh0w275TnzoI2AD7hClQfsjlEQ+X2KJ+73SrSN64Bd/u Hyj5nhOIXQS6M+bnWhLW2BpCST+gFpMgRDo3wtnwb1ZqiCpQ969jK9UmSBLzpO1p KTFpkB1NZJK48Nk9IPDO5GY8OMyLnKpayDhZTHmpWeQGyEUByVpUT9vzVgSTFpj7 cA1G1KKG66gYckPOoM/Y7LwXgwUoEGoFfzvss3qV5G1H6zLip46WfhxgloJT8XOV Th/yd0ZQHuWDMGN4Emu0I+7ybTZGJGuuDosoIfhor58a9UmbKA0H5lsDDFkr3F9d jBkuvla85AGjA97bdH5UknjVOMKeFRxWvyOiaQUvnRNhSzTz0plI3e427ltKub+I s7/euSgYPW6UhLpSZ3xqmSZTmOtJhFXARwk6tHDHT1C0f3e1J1Tl5xt9zte5YYmz tI/4VMtMy8hDnYb/zrqrKLLco7mFlebBHVP8LeAKiMpx+y92D30BEaC2m1xYb5cf EWOFYKN8qCPQXicXCZyh535Jxy8zfMqn0RxKbzGfV7v3AzkY474qaZPcANNTX+82 MI/Dr+rAvblqtkfXTkfX =TWVK -----END PGP SIGNATURE----- --Apple-Mail=_34F8677D-C137-4C06-A051-240664178A51--