From nobody Sun Jan 30 14:40:06 2022 X-Original-To: current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DC053197F1E4 for ; Sun, 30 Jan 2022 14:40:19 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jmv4L5YVYz3KPB for ; Sun, 30 Jan 2022 14:40:18 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-lj1-x232.google.com with SMTP id bx31so4259225ljb.0 for ; Sun, 30 Jan 2022 06:40:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XfdNyMO2BvRfBUOLgNnsMXO+PKuQfGxzZ//KkNF9Z/A=; b=4fRbbueS08Pk0J3LF45CcHro+T15VUCbW3sMofxEKmvm3AV4ZFCGCYIM77EROCgOJV alEKZYqYJVNc2kU1uNNVPl4cGUEefb8jHwErFcNYgm1/XmGaHTHFMkEgzFTbauKZnUrs bS6utcr3UAE3IDDecpqvRChsJH/jxoAoLFYh83MwnALNGIgMtogI1zL0qKinZR/FeYRX 5rB7DsbQ95DnkXEZ/0HQjrRvGia77UnN9MLYUyM9BrhsId14pD9k+tM9xEg0JNQumruh ZKyG6tfjqwmaTd0oaNnoaxaNxR0d4JrTvoIA/dDhC+jj/shGLcgeJDeTFFDIxyzkR4jI zzjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=XfdNyMO2BvRfBUOLgNnsMXO+PKuQfGxzZ//KkNF9Z/A=; b=2tEJHXwr5VrNHkzZ0PsjltDuMnBK60m0bdi23XI0YzBMZqIFi+y/w4XI+sJbyLrPnY caHb5YmANRosbjIFGM5YLOQKi6zYg2IIGKNL1/kYf2HT10sz6hPMVI98f4YYfY98Fw88 My+sgpsVG3A7jw+Av91iNSc69iqGRfsSCvZ/4jDvKfjviR1Ddf3txiNPF5jNq2i2zCZx MoUtiQiYxHFYRtkftRboKVsHBVccaDUqhOqre++ocn2aWKem59sOnTZMJO+DFRAqFELk gklLSEjlfmaBbIZSCA4eY16tfh8/0rH/Z2L3OZCIv73wV9CiBn0LcLXnXtsgTlnIC/6l tuNA== X-Gm-Message-State: AOAM5337bBeiQnNXUSQBF56EFNRKY0BlzoQsg2x3BigKXIgothfIZRum OaA4osTmn8OWJXSqLZAYRlooJ06Za49qYvS7BbZm1fzqcDU= X-Google-Smtp-Source: ABdhPJwy0DSMeMfNRkTebAYwJYr11Nk0xZNOVPYYnoqI05aiwWv/CdFiWbGRdJ5NGypepWyaHLKi/q1KHr4fS3VwGGI= X-Received: by 2002:a2e:80d2:: with SMTP id r18mr6668496ljg.474.1643553611366; Sun, 30 Jan 2022 06:40:11 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <1ec9c802-c8a5-237a-50a3-31885cae917e@plan-b.pwste.edu.pl> <77736438-0211-faf8-926d-2805dd9b40da@plan-b.pwste.edu.pl> In-Reply-To: <77736438-0211-faf8-926d-2805dd9b40da@plan-b.pwste.edu.pl> From: Marcin Wojtas Date: Sun, 30 Jan 2022 15:40:06 +0100 Message-ID: Subject: Re: HEADS-UP: PIE enabled by default on stable/13 To: Marek Zarychta Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Jmv4L5YVYz3KPB X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=4fRbbueS; dmarc=none; spf=none (mx1.freebsd.org: domain of mw@semihalf.com has no SPF policy when checking 2a00:1450:4864:20::232) smtp.mailfrom=mw@semihalf.com X-Spamd-Result: default: False [-1.49 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[semihalf-com.20210112.gappssmtp.com:s=20210112]; FREEFALL_USER(0.00)[mw]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.989]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; DMARC_NA(0.00)[semihalf.com]; NEURAL_SPAM_MEDIUM(0.80)[0.803]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[semihalf-com.20210112.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::232:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[current]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hi, pon., 24 sty 2022 o 20:48 Marek Zarychta napisa=C5=82(a): > > Hello Marcin > W dniu 24.01.2022 o 19:43, Marcin Wojtas pisze: > > Hi Marek, > > > > pon., 24 sty 2022 o 08:17 Marek Zarychta > > napisa=C5=82(a): > >> > >> W dniu 24.01.2022 o 07:42, Marcin Wojtas pisze: > >>> +freebsd-stable@ > >>> > >>> niedz., 23 sty 2022 o 11:36 Marcin Wojtas napisa=C5= =82(a): > >>>> > >>>> Hi, > >>>> > >>>> As of 396e9f259d962 the base system binaries are now built as positi= on-independent executable (PIE) by default, for 64-bit architectures. Thank= s to that enabling ASLR can be done simply > >>>> by sysctls knobs when booting the kernel. > >>>> > >>>> If you track stable/13 and normally build WITHOUT_CLEAN you'll need = to do one initial clean build -- either run `make cleanworld` or set WITH_C= LEAN=3Dyes. > >>>> > >>>> The change is a pure MFC of the changes integrated to -CURRENT early= 2021 and no issues are expected, but in case any problems are observed, pl= ease issue a PR and/or let me know in this thread. > >>>> > >>>> Best regards, > >>>> Marcin > >>> > >> > >> Thanks for enabling this. If I understand it correctly we got some > >> improvements mentioned here[1] and it doesn't imply that ASLR has to b= e > >> enabled, especially kern.elf64.aslr.pie_enable can be still set to 0 ? > >> > > > > Currently it still remains opt-in on stable/13 and is disabled by defau= lt. > > > > Best regards, > > Marcin > > Thanks for the answer. I am not willing to turn ASLR on at this point, > but rather asking if my world, already built with PIE, will bring any > other enhancements or improvements? > If your world is already built with PIE, the MFC'ed patches should make no difference at all. Best regards, Marcin > > > >> > >> [1] https://www.mail-archive.com/freebsd-current@freebsd.org/msg183605= .html > >> > > > With kind regards, > > -- > Marek Zarychta