From owner-freebsd-security@freebsd.org Mon May 4 15:15:21 2020 Return-Path: Delivered-To: freebsd-security@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CD1692D28AB for ; Mon, 4 May 2020 15:15:21 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49G5yK0dFhz4Kh2 for ; Mon, 4 May 2020 15:15:20 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io1-f50.google.com with SMTP id f3so12676696ioj.1 for ; Mon, 04 May 2020 08:15:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=25GFtJx8F0wt6mrAedsYDB2iuPbrznW8EsD8y1V5cIo=; b=VFaCMF71jN23c+5KvP438WuaVnZWCv0tUFxnMm9roO2haIf2cBPWSvZ1kQDhsoYmsO EsG0kRvRwpwVLizESiGqiybDyTHbBBNSJqxeRSP2SqFqcT8dwkllwgwvic4kna98EZLy oBf+mUbvjpvXlcM8p/Fs7U3a0JDsX+U298vU1GXv6g+cutRBnETWwpE75fYqELxKg26N Ngb1+yAqWWbI/m9fRBGPDC77qOTze7fRqxTwPkV7HNT8rSsGb88obwG/HR5t5Z6WAkqi LgVibeUTdVpvI/NTCH3nXAUZLBiCJtmd1NfHmaoKPBaB8dBesIGfZdLLOoArHO6axOMx DHrQ== X-Gm-Message-State: AGi0PuYXAgaCMKz0VRsFJg7jsjRS1la6+WiUpcMs3lnrZK0+mcuI02wj cWhR3SNfPxmL9Mj4WpkYpldvbkAA5i4bOzkisCvihF2qTac= X-Google-Smtp-Source: APiQypJjXVwYSVQCzhtHUYMLllczQZ2lg3zUQbHun37natS9CKp3odfS4hQmaqd00EuW9hvIL/HIN21g1BWBorLsjnA= X-Received: by 2002:a05:6602:2208:: with SMTP id n8mr16370842ion.102.1588605320159; Mon, 04 May 2020 08:15:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ed Maste Date: Mon, 4 May 2020 11:15:05 -0400 Message-ID: Subject: Re: ASLR/PIE status in FreeBSD HEAD To: Dewayne Geraghty Cc: freebsd-security@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 49G5yK0dFhz4Kh2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.50 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com X-Spamd-Result: default: False [-3.08 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-security@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[50.166.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-1.08)[ip: (-4.53), ipnet: 209.85.128.0/17(-0.40), asn: 15169(-0.43), country: US(-0.05)]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[50.166.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2020 15:15:21 -0000 On Wed, 22 Apr 2020 at 02:10, Dewayne Geraghty wrote: > > Thank-you for the pointer to elfctl. Unfortunately it looks like I need > to create the section in the image file, due to my: (for example) > > # elfctl -l /usr/bin/ztest > Known features are: > aslr Disable ASLR > protmax Disable implicit PROT_MAX > stackgap Disable stack gap > elfctl: NT_FREEBSD_FEATURE_CTL note not found > > on > FreeBSD 12.1-STABLE #0 r359973M: Thu Apr 16 amd64 1201513 1201513 Ah, yes - r340701 needs to be MFC'd to stable/12 to make this work there.