From nobody Sat Mar 21 18:44:54 2026 X-Original-To: dev-commits-src-all@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 4fdSzQ1hz7z6Vs2S for ; Sat, 21 Mar 2026 18:45:06 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fdSzP6F3zz3vch for ; Sat, 21 Mar 2026 18:45:00 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-46808125d28so239814b6e.1 for ; Sat, 21 Mar 2026 11:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1774118695; x=1774723495; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=1XECAvYk5WUmB33ty6FxHNYFSOk3tad86DCBrxHeezQ=; b=GZBOJJEVMuyUb3s1E0OQd/cGYFTjAacyRI84zusuAhZ9VmHDgZgeFsAhgAxfGgE5Bd Gk8ksRbglPvqYHTrGDl2bHZCiyZsqjAM/zypd/KR2eIlAnPskVnLUjAbiZr/BK+VK5nN Jz4exTDl4xzSwdM8CW3mQdyPcwDI4fvGkUXva1kaPh5xLpRAe5c+07uHjOGIRsKFAxTR ANYp0Q81OpWaQ6hnUeIznIbti2rr+EemzzubqMm7hO1goTXMnYbvgYfRtEAbvYVL69wi RhP4/dphjG7gqpUYwx34531s3Jioc7Pm/HSHOt89dueggoYZTXUWLnLsEbdKJYt39YBN EgTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774118695; x=1774723495; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1XECAvYk5WUmB33ty6FxHNYFSOk3tad86DCBrxHeezQ=; b=RIpg9xkhdmxj18JhiTiLs7s7zWGarYZRVfK2bVyyDTUXV235RRsi4J0m2Inwe0IhWK tCFM9Vhgf+sJ7cgfweRf/UBhitXktCFGShg1i+KCRJwT0ePFiZ3h4+Np+gp3UljHlheN HU8TLMcUDPMOdZxfkn/KqPoK1/QpiKiLERfqalZs7ThayznrDwxL4MXG0jjm2qyjrQNm o7ZFTF38Q7G4kNg/3eiDVdHwzLYJ5DnT75TrHyJ6b1YL7hIKggKC0Ak5xUIHmRLvonf7 Eg6A52aPXom8MuzSsiqbq8ulcZgXulgbYHFJTzlGPMhOiiQNDfb744HZTRxMqL+o4qV6 nhvQ== X-Forwarded-Encrypted: i=1; AJvYcCWuMkTXFWnjbPh5RBzehlSyn6nw+06EJ4nFlZGjMufXxmwitYE2G8SGkSLavUSrLJvSHctFkulf6ADPG23o7SgqdZ+e@freebsd.org X-Gm-Message-State: AOJu0YwbMK0jv51KHGrOZDjgkTi6G5LJXHcXi3PzTthghY2ZYZSBywP2 fy+RsrEpkrrF0hbEZZVsdDzp6E5IbziBZ+g6g/z3zhLgGolLd66vkHzbF9mz2VTxrYY= X-Gm-Gg: ATEYQzx2Tagulng8ShisRsnsCp0WGMbe73onxOoNzI21ikWZ13o4VKbupDaJi6cauNp rI9SFsXo3tdysYsztZ/7Us3jmCDlvYulEyPiIbGiF2HYZBlnLKt8Qzf/6P+vCtXd9RXkkyrcqFQ n8KssvwHBFbW7Qs96EFLdMuXmInXS1UJFBs/BagU/9zaT/efV5x/m3vvuMVWfwoHbuI/D6nTVcT NTKCZYNJ6kkYv3AOBynMVLGnuyHLpRBxP7nAs9OBxhKzPlPyx5A36Uje291uyJjyHfEZ3XHyvVE VXuIOBrHMiiYqyd30MABpw3JFILh1clpB08cgGVHE/jIUs1K/eT9c5QDdlgVSiLGstJ9SxhbEM7 EYyw1GOAJOn+UDaVqiANsph6CWBtaQusIg1WA3ybYdCZiKp7IbBSuUaGXSDioj7pP18jZ85zWV3 3lwTAy X-Received: by 2002:a05:6808:1928:b0:467:631:8b89 with SMTP id 5614622812f47-467e5db59f4mr4167886b6e.23.1774118694856; Sat, 21 Mar 2026 11:44:54 -0700 (PDT) Received: from mutt-hbsd ([2001:470:4001:1::95]) by smtp.gmail.com with ESMTPSA id 5614622812f47-467e7ecb194sm3644208b6e.12.2026.03.21.11.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Mar 2026 11:44:54 -0700 (PDT) Date: Sat, 21 Mar 2026 18:44:54 +0000 From: Shawn Webb To: Charlie Li Cc: Warner Losh , A FreeBSD User , Martin Matuska , src-committers , "" , "" Subject: Re: git: 8a62a2a5659d - main - zfs: merge openzfs/zfs@f8e5af53e Message-ID: X-Operating-System: FreeBSD mutt-hbsd 15.0-STABLE-HBSD FreeBSD 15.0-STABLE-HBSD HARDENEDBSD amd64 X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <20260321090444.6f81da15@thor.sb211.local> <5eaaokkdmmkcojky7362jvkandaard6eu26n77f5z5q7lqutu5@kywp5prvxozj> <3f1bdb7c-2812-48de-a329-d34c586cad8b@freebsd.org> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3iavgco5gu5bexo6" Content-Disposition: inline In-Reply-To: <3f1bdb7c-2812-48de-a329-d34c586cad8b@freebsd.org> X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4fdSzP6F3zz3vch X-Spamd-Bar: ---- --3iavgco5gu5bexo6 Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: git: 8a62a2a5659d - main - zfs: merge openzfs/zfs@f8e5af53e MIME-Version: 1.0 On Sat, Mar 21, 2026 at 02:40:27PM -0400, Charlie Li wrote: > Warner Losh wrote: > >=20 > >=20 > > On Sat, Mar 21, 2026 at 9:23=E2=80=AFAM Shawn Webb > > wrote: > >=20 > > On Sat, Mar 21, 2026 at 09:18:20AM -0600, Warner Losh wrote: > > > On Sat, Mar 21, 2026, 9:08=E2=80=AFAM Shawn Webb > > > wr= ote: > > > > > > > On Sat, Mar 21, 2026 at 09:04:17AM +0100, A FreeBSD User wrote: > > > > > Am Tage des Herren Fri, 20 Mar 2026 23:27:20 -0400 > > > > > Charlie Li > > > schrieb: > > > > > > > > > > > Shawn Webb wrote: > > > > > > > On Tue, Mar 17, 2026 at 04:52:16PM +0000, Shawn Webb wro= te: > > > > > > >> On Tue, Mar 17, 2026 at 10:44:59AM -0600, Warner Losh w= rote: > > > > > > >>> On Tue, Mar 17, 2026 at 10:36=E2=80=AFAM Shawn Webb < > > > > shawn.webb@hardenedbsd.org > > > > > > > >>> wrote: > > > > > > >>> > > > > > > >>>> Hey Martin, > > > > > > >>>> > > > > > > >>>> On Sat, Mar 14, 2026 at 01:26:23PM +0000, Martin > > Matuska wrote: > > > > > > >>>>> The branch main has been updated by mm: > > > > > > >>>>> > > > > > > >>>>> URL: > > > > > > >>>> > > > > https://cgit.FreeBSD.org/src/commit/? > > id=3D8a62a2a5659d1839d8799b4274c04469d7f17c78 > cgit.FreeBSD.org/src/commit/? > > id=3D8a62a2a5659d1839d8799b4274c04469d7f17c78> > > > > > > > > > > >>>>> > > > > > > >>>>> commit 8a62a2a5659d1839d8799b4274c04469d7f17c78 > > > > > > >>>>> Merge: f91464171d61 f8e5af53e92f > > > > > > >>>>> Author:=C2=A0 =C2=A0 =C2=A0Martin Matuska > > > > > > >>>>> AuthorDate: 2026-03-14 12:14:56 +0000 > > > > > > >>>>> Commit:=C2=A0 =C2=A0 =C2=A0Martin Matuska > > > > > > >>>>> CommitDate: 2026-03-14 12:14:56 +0000 > > > > > > >>>>> > > > > > > >>>>> [snip for brevity] > > > > > > >>>>> > > > > > > >>>>>=C2=A0 =C2=A0 =C2=A0 Obtained from:=C2=A0 OpenZFS > > > > > > >>>>>=C2=A0 =C2=A0 =C2=A0 OpenZFS commit: > > f8e5af53e92fa7c03393fbd4922cb9c1d0c15920 > > > > > > >>>> > > > > > > >>>> This commit seems to cause issues when building boot > > loader > > > > related > > > > > > >>>> code: > > > > > > >>>> > > > > > > >>>> =3D=3D=3D=3D BEGIN LOG =3D=3D=3D=3D > > > > > > >>>> 114232 bytes available > > > > > > >>>> btxld -v -f aout -e 0x200000 -o loader_simp -l > > > > > > >>>> /usr/obj/usr/src/amd64.amd64/stand/i386/btx/btxldr/ > > btxldr=C2=A0 -b > > > > > > >>>> /usr/obj/usr/src/amd64.amd64/stand/i386/btx/btx/btx > > > > loader_simp.bin > > > > > > >>>> kernel: ver=3D1.02 size=3D690 load=3D9000 entry=3D901= 0 map=3D16M > > pgctl=3D0:58 > > > > > > >>>> client: fmt=3Delf size=3D5e2e8 text=3D57930 data=3D51= 4c > > bss=3D7470 entry=3D0 > > > > > > >>>> output: fmt=3Daout size=3D61000 text=3D1000 data=3D5f= 000 > > org=3D200000 > > > > entry=3D200000 > > > > > > >>>> =3D=3D=3D> stand/i386/pxeldr (all) > > > > > > >>>> -560 bytes available > > > > > > >>>> *** Error code 1 > > > > > > >>>> > > > > > > >>> > > > > > > >>> What all do you have enabled? The defaults aren't even > > close to > > > > running out > > > > > > >>> of space (though I've not looked at this). > > > > > > >> > > > > > > >> Hey Warner, > > > > > > >> > > > > > > >> Thanks for reaching out! I've uploaded `make showconfig` > > here: > > > > > > >> https://hardenedbsd.org/~shawn/2026-03-17_srcconf- > > r01.txt > > > > > > >> > > > > > > >> The following options are specific to HardenedBSD (in no > > particular > > > > > > >> order): > > > > > > >> > > > > > > >> 1. MK_HBSD_UPDATE > > > > > > >> 2. MK_HBSDCONTROL > > > > > > >> 3. MK_PIE > > > > > > >> 4. MK_RELRO > > > > > > >> 5. MK_SHLIBRANDOM > > > > > > >> 6. MK_ZERO_REGS > > > > > > >> 7. MK_SPECTREV1_FIX > > > > > > >> 8. MK_SAFESTACK > > > > > > >> 9. MK_RETPOLINE > > > > > > >> 10. MK_LTOLIB > > > > > > >> 11. MK_CFI > > > > > > > > > > > > > > MK_RETPOLINE was the culprit. Something about this ZFS > > commit causes > > > > > > > LLVM to emit more retpoline entries than before--too many > > for a > > > > little > > > > > > > bootloader. That might be something to investigate later, > > but only to > > > > > > > satisfy a curious mind, not to actuall fix anything > > (since nothing's > > > > > > > actually broken.) > > > > > > > > > > > > > > Since it doesn't really make sense to apply speculative > > execution > > > > > > > mitigations to a bootloader, I disabled retpoline for a > > components > > > > > > > in stand/. > > > > > > > > > > > > > > Good to go. > > > > > > > > > > > > > Also just got bit by this, albeit during the lua loader, > > since I have > > > > > > WITH_RETPOLINE in my src.conf. > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > I do not have WITH_RETPOLINE in my /etc/src.conf, but since I > > got this > > > > mysterious error about > > > > > not enough bytes left, I use WITHOUT_LOADER_PXEBOOT=3D YES (= due > > to issues > > > > with WITH_BEARSSL=3DYES > > > > > also used). > > > > > Despite not using any WITH_RETPOLINE I also catch the error = =2E.. > > > > > > > > Something about this ZFS commit causes the boot laoder to be > > too big. > > > > I guess the first sign of trouble was with retpolines, but > > there seem > > > > to now be additional signs. > > > > > > > > What's the process for filing a bug report against OpenzFS for > > > > something like this? (Not asking you directly, just a general > > question > > > > for the thread.) > > > > > > > > > > That's a good question. We are rapidly aporoaching the day we > > will have to > > > freeze the set of zfs feature that we can boot with the BIOS > > path. There's > > > only so much space. > > > > > > Right now,=C2=A0 there's little to no bootloader testing, let al= one > > analysis > > > done and that will need to change. > >=20 > > Another question might also be: is it worth the time and effort? Are > > people really using a ZFS-enabled traditional MBR BIOS bootloader on > > FreeBSD 16-CURRENT (or eventual 16.0-RELEASE)? From my rather naive > > (and ignorant, since I don't know FreeBSD's userbase well), it seems > > like folks use either loader.efi or u-boot (or both!) > >=20 > >=20 > > Nobody uses MBR BIOS bootloader. It's totally unsupported. They all use= the > > GPT one, which is used for all kinds of things, most recently several > > light-weight > > VM systems that don't have UEFI. BIOS is what imposes the limit, not MB= R. > >=20 > > But there's a huge number of systems that are already in the field that= need > > to be upgradeable, but we will eventually need to draw a line in the > > sand for > > that. > >=20 > The machine where I hit this error on building the lua loader is a BIOS-G= PT > system. I apologize for my incorrect statements. The inclusion of MBR was erroneous. Warner's got it right. :-) I've completely forgotten about gptzfsboot. Been so long and memory's a fuzzy thing. --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Signal Username: shawn_webb.74 Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --3iavgco5gu5bexo6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmm+5x4ACgkQ/y5nonf4 4fq/9Q/9GnHaL8k8sIx5QhehAo+xgDxxXXDmjBBStiiDpmKeXO59MCjCeSgHi2Rm o6FxdduPbL2cu62PiiZmS1NFpnnPg7Clnc+zkeuXEAveGDCek4lfTfDOmNdJa90+ CGo+ajjA2Q7n2O5ml0FqcK+veonzc1H+ytS3LH6LXwGac9Qq5sQy3afkDtlYRBkh eWLzJLHQnGvbJvzOUGREwzE9wzqB3/ZC+q+lJONdrBot54hPsEgVC24EkjxXCt6z C17QJALW4R1sjHW9FohfzMCvh1V6iI3a+Ah9PeWdSF72mXV7j/6xPtKB+RqXBVWE vfAB8axCteSx4x2CVxl8oRVNqNJ+VUNzAHpiiYoNvmWb3yLiFC8gklA8FeE2s9Ng nOt01y3ZTmdDG8IX5ZzGr5cw/WjVvxtUHShaPLFBh1pfCAGebUD+lKV9a290pNUq QtUJcF6K1S8HhDN5unQy2JaTvbTRIssTYN9UdwQoGQXXWARV8rVIonG16Gq8g4IN aDgNzYM+ziv2k9YIZz6UNNLVqVZurfB6gmUHtUgZp2vkOKrBiN1cBRgOZ90PSBv1 1eorv+TqTLTqyyn8UMptQ6egE+X5ZEa2Fo/Jm9gYtabppcmqo1lQA5Fq8odC8DCJ rOTJihnYyapqS7m116Wdq70dGohwp3uCJKVNYZSRwrd0bgMFIHA= =dFvN -----END PGP SIGNATURE----- --3iavgco5gu5bexo6--