From nobody Mon Jan 24 18:43:53 2022 X-Original-To: freebsd-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 0A3A41981C04 for ; Mon, 24 Jan 2022 18:44:07 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) (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 4JjJmQ2JbRz4wVJ for ; Mon, 24 Jan 2022 18:44:06 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-lj1-x231.google.com with SMTP id t7so5218872ljc.10 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=PuSfjS+OS3H46jy1clEam3wL0G9ei6AZCg3QZe8Jd5MxJDeeJOS+lpUG/GiLtCUvPU XtEy8oiEnaQqs3E5KxUpeAbjClKCaCZuNOtnA0q7eLbomLdDuwJo3zrkzi7vmG80/vv1 t6NMYutEZxh7zuVSGsqnTiJBoA8BFia8bNUF0vmvXMnqwS10lRTfYbVNCoJ7E4Dy4fSx 6NYFVH5H81jIZZzEejTl1VaX+NCUe0bB9t3WBVz3+nRrdDV2nX8iCD1KVU3JO7/qdQR0 6ypZqfacFFn8NzMYVq8SEeMODOu0/1VyjqUJBU56I1n5SjqeP74fl1ROJXojtVKrL46q zcZw== X-Gm-Message-State: AOAM531eEl6tl+x6tyLKZixQwKJUUUwjt7cXz1xFDbpXPDatwzEeUlaU jfeuyaz4ZvMSM/ebyF+Yf8drCXEvn7FvN35texyUjSNuRBU= 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: 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> 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: 4JjJmQ2JbRz4wVJ 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::231) 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-current@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::231:from]; MLMMJ_DEST(0.00)[freebsd-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 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 >