From nobody Mon Jan 24 18:43:53 2022 X-Original-To: freebsd-stable@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 3033D1981AD8 for ; Mon, 24 Jan 2022 18:44:07 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (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 4JjJmQ2JYbz4wMs for ; Mon, 24 Jan 2022 18:44:06 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-lj1-x22c.google.com with SMTP id j14so11603824lja.3 for ; Mon, 24 Jan 2022 10:44:06 -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=7/hsuAQvHp5R088d0ePX2xN9n+brTYdSiRuntos1n5Q=; b=HqeIV5MUEsgcWL8Ur5VZ2Btj3kC6EBEsJGr91P5NwO5QgTbCYAIN0CaX8FCCTeYpky rw2jol6DqhcBerlBmm4feLi1O8rZ1YKAKtyJbYLhkEZQn5zwoWcX1epDJ+AH+TH3iBuG 8KvhAzo5bu71OBoDEbrJ3ZhtPxUyTXsuevf2p4uJhVnxMakjljj/S9BktDF+1BSOzf1o m947IpQHc0ESbAI7S0ystG3DiErtqLAXCYKkJc6BN/oRlFV2qCIfvDOQqtjlmG3B3Ul9 WNUbDADNHHWNeMIwZZ7WkeUOYQJRF+n3u1TrQBlKc7WiY77fudOOXq9VZeldncQYibhg ED+w== 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=7/hsuAQvHp5R088d0ePX2xN9n+brTYdSiRuntos1n5Q=; b=L63upMvJgf5g226662TWNqh9uL31ahAh9zuL4T3nBMoPNJFpA1wtvk8STHnMbeeyWl iAKrTQ5tmZsvgHesnBxACH0lCM3XvJdJ0wZqDw+V6EbMcI/vIj7YDLZNc9zaIicmN8nA 3jxdMREF7wiVvn76jnHKk0C+uua3FSTTTi3lE9Z9A7dIOdsYlwYGSdUPF6yJm8paAeTh 4Yki3upKsKfq87ydGDp5HnAGCmiMpMgOKJzcZHajXcl2K1JmxuqQoDOAUb2/t/OANLUO 7yD/cXM2S+LQ5PGAP41Ii1Wx6AR0JbmSlm9CLp+o9I2puSNhqbh2bwUKYaF4o+nvnZko aIVA== X-Gm-Message-State: AOAM533FcE3X2Kn9IUd9bynseR3yTD+zgVWanxEri/9vNi4kpPOl/0qM +hEOrrxoYmiZYVEdOAxdzsqBxZ80QOyHWRNGgE4pQA== X-Google-Smtp-Source: ABdhPJzUF6p9clqLeuZnuE3dylICJR4R19xFzvOuNK9/Uf2nlU3IEg70t0IS32Yy1prKjUMpmMe6glf1vvcaOHvKTDQ= X-Received: by 2002:a2e:b889:: with SMTP id r9mr12171917ljp.454.1643049844314; Mon, 24 Jan 2022 10:44:04 -0800 (PST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: <1ec9c802-c8a5-237a-50a3-31885cae917e@plan-b.pwste.edu.pl> In-Reply-To: <1ec9c802-c8a5-237a-50a3-31885cae917e@plan-b.pwste.edu.pl> From: Marcin Wojtas Date: Mon, 24 Jan 2022 19:43:53 +0100 Message-ID: Subject: Re: HEADS-UP: PIE enabled by default on stable/13 To: Marek Zarychta Cc: freebsd-current , freebsd-stable@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4JjJmQ2JYbz4wMs X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=semihalf-com.20210112.gappssmtp.com header.s=20210112 header.b=HqeIV5MU; dmarc=none; spf=none (mx1.freebsd.org: domain of mw@semihalf.com has no SPF policy when checking 2a00:1450:4864:20::22c) smtp.mailfrom=mw@semihalf.com X-Spamd-Result: default: False [-3.30 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[semihalf-com.20210112.gappssmtp.com:s=20210112]; FREEFALL_USER(0.00)[mw]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; DMARC_NA(0.00)[semihalf.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[semihalf-com.20210112.gappssmtp.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22c:from]; MLMMJ_DEST(0.00)[freebsd-stable]; 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 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 position= -independent executable (PIE) by default, for 64-bit architectures. Thanks = 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_CLE= AN=3Dyes. > >> > >> The change is a pure MFC of the changes integrated to -CURRENT early 2= 021 and no issues are expected, but in case any problems are observed, plea= se 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 be > 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 default. Best regards, Marcin > > [1] https://www.mail-archive.com/freebsd-current@freebsd.org/msg183605.ht= ml >