Page MenuHomeFreeBSD

sjg (Simon Gerraty)
User

Projects (1)

User Details

User Since
Apr 9 2015, 9:27 PM (572 w, 2 d)

Recent Activity

Jan 15 2026

sjg committed rG32dd4b31dd9d: bsd.man.mk fix and simplify staging.
Jan 15 2026, 6:35 PM

Jan 11 2026

sjg committed rG9fed072b4422: bsd.man.mk simplify staging.
Jan 11 2026, 3:00 AM
sjg committed rG9cd89fc5aa3c: bsd.man.mk fix staging.
Jan 11 2026, 2:45 AM

Jan 10 2026

sjg committed rGc95f96dea30a: Update to bmake-20251111.
Jan 10 2026, 9:35 PM
sjg committed rG06366a2188a1: Merge bmake-20250804.
Jan 10 2026, 9:35 PM
sjg committed rGa9319c35e816: Merge bmake-20250308.
Jan 10 2026, 9:35 PM
sjg committed rGeb560911563f: Merge bmake-20250618.
Jan 10 2026, 9:35 PM
sjg committed rG44ad87f77a84: Merge bmake-20250707.
Jan 10 2026, 9:35 PM
sjg committed rG8a4277b9667c: Merge bmake-20250414.
Jan 10 2026, 9:35 PM
sjg committed rG812d0cb17de0: Merge bmake-20250125.
Jan 10 2026, 9:35 PM
sjg committed rGfa86ef7f23ae: Merge bmake-20240711.
Jan 10 2026, 9:34 PM
sjg committed rGba508f1da16d: Merge bmake-20240625.
Jan 10 2026, 9:34 PM
sjg committed rG5d3c3f73b69c: Merge bmake-20240520.
Jan 10 2026, 9:34 PM
sjg committed rG1d00ba4aaacf: Merge bmake-20240508.
Jan 10 2026, 9:34 PM
sjg committed rG1166b90143da: Merge bmake-20240430.
Jan 10 2026, 9:34 PM
sjg committed rG72f01a763131: Merge bmake-20240309.
Jan 10 2026, 9:34 PM
sjg committed rGf580ef8a75c1: Merge bmake-20230909.
Jan 10 2026, 9:34 PM
sjg committed rG4b2e33e48152: Update to bmake-20240108.
Jan 10 2026, 9:34 PM
sjg committed rG11aa32794394: Update to bmake-20251111.
Jan 10 2026, 9:14 PM

Dec 19 2025

sjg added inline comments to D54291: Makefile.inc1: Make NO_INSTALLKERNEL less of a hack.
Dec 19 2025, 12:56 AM

Dec 18 2025

sjg added inline comments to D54291: Makefile.inc1: Make NO_INSTALLKERNEL less of a hack.
Dec 18 2025, 9:29 PM

Dec 10 2025

sjg closed D54150: Update share/mk files from bmake.
Dec 10 2025, 5:07 AM
sjg committed rG9bbb08f9055d: Update share/mk files from bmake.
Dec 10 2025, 5:07 AM

Dec 9 2025

sjg updated the diff for D54150: Update share/mk files from bmake.

Fix CVS Ids

Dec 9 2025, 6:31 PM
sjg requested review of D54150: Update share/mk files from bmake.
Dec 9 2025, 7:53 AM

Dec 7 2025

sjg accepted D54106: libsysdecode: Use consistent include path.

Looks fine

Dec 7 2025, 6:10 AM

Dec 3 2025

sjg committed rGc60f6422ffae: Update to bmake-20251111.
Dec 3 2025, 6:18 PM
sjg committed rG638c66de4a0f: Import bmake-20251111.
Dec 3 2025, 5:59 PM

Nov 30 2025

sjg committed R9:fdba6c245b12: Mention bmake update.
Nov 30 2025, 3:16 AM

Nov 26 2025

sjg accepted D53940: libsecureboot: do further checks on files without manifests.
Nov 26 2025, 8:29 PM

Nov 24 2025

sjg accepted D53790: Centralize definition of ZFSTOP.
Nov 24 2025, 1:32 AM

Nov 18 2025

sjg added inline comments to D53790: Centralize definition of ZFSTOP.
Nov 18 2025, 6:35 AM

Nov 1 2025

sjg added a comment to D53429: style.Makefile: document the style for lists.
In D53429#1221417, @jhb wrote:

Eh, I'm not sure this is actually the style we want? Lots of places in the tree fix the diff problem by just using multiple += statements, e.g.:

FOO= foo
FOO+= bar
FOO+= baz
Nov 1 2025, 7:42 PM

Oct 30 2025

sjg committed rGa797702be077: rc.subr set dot_dir and dot_file in dot.
Oct 30 2025, 6:10 PM
sjg closed D53476: rc.subr set dot_dir and dot_file in dot.
Oct 30 2025, 6:09 PM
sjg requested review of D53476: rc.subr set dot_dir and dot_file in dot.
Oct 30 2025, 4:10 PM
sjg accepted D53429: style.Makefile: document the style for lists.
Oct 30 2025, 3:13 AM

Oct 29 2025

sjg added inline comments to D53429: style.Makefile: document the style for lists.
Oct 29 2025, 3:17 PM

Sep 18 2025

sjg added a comment to D52563: bmake: Fix -Wunterminated-string-initialization.

Perfect, thank you. Should I wait for this to find it's way to FreeBSD or apply the change locally?

Sep 18 2025, 8:17 PM

Sep 16 2025

sjg added a comment to D52563: bmake: Fix -Wunterminated-string-initialization.

No need for a comment, I committed the following upstream:

Index: var.c
===================================================================
RCS file: /cvsroot/src/usr.bin/make/var.c,v
retrieving revision 1.1171
diff -u -p -r1.1171 var.c
--- var.c       29 Jun 2025 11:02:17 -0000      1.1171
+++ var.c       16 Sep 2025 15:13:28 -0000
@@ -1850,7 +1850,7 @@ QuoteShell(const char *str, bool quoteDo
 static char *
 Hash(const char *str)
 {
-       static const char hexdigits[16] = "0123456789abcdef";
+       static const char hexdigits[] = "0123456789abcdef";
        const unsigned char *ustr = (const unsigned char *)str;
Sep 16 2025, 3:22 PM

Sep 15 2025

sjg accepted D52420: crypto/openssl: apply polish to new vendor import process.
Sep 15 2025, 10:09 PM

Sep 8 2025

sjg added inline comments to D52420: crypto/openssl: apply polish to new vendor import process.
Sep 8 2025, 5:02 AM

Aug 21 2025

sjg committed rG027be99b1f33: Stub is_tftp when LOADER_NET_SUPPORT is not enabled.
Aug 21 2025, 3:11 PM
sjg closed D52060: Stub is_tftp when LOADER_NET_SUPPORT is not enabled.
Aug 21 2025, 3:11 PM
sjg added a comment to D52060: Stub is_tftp when LOADER_NET_SUPPORT is not enabled.

In case it isn't obvious, we can't stub or #ifdef this in libsa since that is presumably shared by all loaders for a given arch, thus a non-optional src from loader.mk would seem to make sense - misc.c seemed as good as any?

Aug 21 2025, 6:52 AM
sjg requested review of D52060: Stub is_tftp when LOADER_NET_SUPPORT is not enabled.
Aug 21 2025, 6:40 AM

Aug 20 2025

sjg committed rG5bfb3045d25b: Allow secure-netboot.
Aug 20 2025, 10:57 PM
sjg closed D51187: Allow secure-netboot.
Aug 20 2025, 10:56 PM
sjg committed rGb44cc1b479fe: loader: do not try to open directories with TFTP.
Aug 20 2025, 10:49 PM
sjg closed D51447: loader: do not try to mount currdev for TFTP.
Aug 20 2025, 10:48 PM
sjg committed rGaaf65a13c06a: stand: add fs_ops.fs_flag.
Aug 20 2025, 10:47 PM
sjg closed D51684: stand: add fs_ops.fs_flag.
Aug 20 2025, 10:47 PM

Aug 8 2025

sjg accepted D51824: mk: Mark buildenv .NOTMAIN.

Good move

Aug 8 2025, 4:58 PM

Aug 7 2025

sjg committed rG5c4d1c85847d: Replace license with just SPDX BSD-2-Clause.
Aug 7 2025, 10:20 PM

Aug 5 2025

sjg committed rGb4894eca1ade: Merge bmake-20250804.
Aug 5 2025, 10:59 PM
sjg committed rG787302bde4d8: Import bmake-20250804.
Aug 5 2025, 10:33 PM

Aug 1 2025

sjg updated the diff for D51187: Allow secure-netboot.

Split out fs_ops.fs_flag to D51684

Aug 1 2025, 5:39 PM
sjg requested review of D51684: stand: add fs_ops.fs_flag.
Aug 1 2025, 5:35 PM

Jul 30 2025

sjg added a comment to D51443: release/Makefile should not use the host /usr/bin/install command, but the freshly built one.

To make this work in cheribuild I passed INSTALL="sh /path/to/src/tools/install.sh". Doing something automatically here that works would be good, though I'd want confirmation from someone like @sjg that ${.OBJDIR}/.. is definitely going to always be world's ${OBJTOP}.

Jul 30 2025, 5:50 PM · releng

Jul 25 2025

sjg accepted D50149: do not commit - bmake: add a package for bmake and share/mk.

works for me, just one nit above

Jul 25 2025, 10:20 PM
sjg added a comment to D50149: do not commit - bmake: add a package for bmake and share/mk.

Note I would disagree that make isn't needed in a minimal install, I use make and makefiles for all sorts of use-cases that have nothing to do with building src/

Jul 25 2025, 9:45 PM

Jul 24 2025

sjg accepted D51490: bsd.man.mk: add MANGROUPS.

Looks reasonable

Jul 24 2025, 7:09 PM
sjg added inline comments to D51490: bsd.man.mk: add MANGROUPS.
Jul 24 2025, 4:35 PM
sjg added a comment to D51447: loader: do not try to mount currdev for TFTP.
In D51447#1175667, @imp wrote:

I do like this better...

But what we're trying to avoid is setting currdir to tftp://1.2.3.4/mumble and having lots of tftp traffic go as we try to open it a bunch of times to see if each of the filesystems can cope... Can you confirm that's the top of this rabbit hole?

Jul 24 2025, 12:53 AM

Jul 23 2025

sjg updated the diff for D51447: loader: do not try to mount currdev for TFTP.

Rework to avoid opening dirs via TFTP while not breaking diskless
boot with nfs.

Jul 23 2025, 10:57 PM
sjg accepted D51467: security/ossec-hids-local: fix makefile warnings: Invalid character " " in variable name.

I can't approved, but looks sane - I assume it works ;-)

Jul 23 2025, 5:53 AM

Jul 22 2025

sjg added inline comments to D51447: loader: do not try to mount currdev for TFTP.
Jul 22 2025, 10:56 PM

Jul 21 2025

sjg committed rGcae98cf683dd: install: allow ENV in metatags.
Jul 21 2025, 5:15 PM
sjg closed D51446: install: allow ENV in metatags.
Jul 21 2025, 5:15 PM
sjg committed rG3717484168ee: bsd.subdir.mk skip _SUBDIR for DIRDEPS_BUILD.
Jul 21 2025, 4:13 PM
sjg closed D51454: bsd.subdir.mk skip _SUBDIR for DIRDEPS_BUILD.
Jul 21 2025, 4:12 PM
sjg requested review of D51454: bsd.subdir.mk skip _SUBDIR for DIRDEPS_BUILD.
Jul 21 2025, 3:58 PM

Jul 20 2025

sjg updated the diff for D51187: Allow secure-netboot.

Move install.c change to D51446
Move misc.c change to D51447

Jul 20 2025, 11:11 PM
sjg requested review of D51447: loader: do not try to mount currdev for TFTP.
Jul 20 2025, 11:06 PM
sjg requested review of D51446: install: allow ENV in metatags.
Jul 20 2025, 10:35 PM

Jul 19 2025

sjg updated the diff for D51187: Allow secure-netboot.

Mention pkgfs_fsops in libsa.3

Jul 19 2025, 8:58 PM
sjg committed rGa8c56be47166: Merge bmake-20250707.
Jul 19 2025, 5:43 PM
sjg committed rG3d772e596c1a: Import bmake-20250707.
Jul 19 2025, 5:10 PM

Jul 18 2025

sjg updated the diff for D51187: Allow secure-netboot.

Add flag to fs_ops for skipping devopen

Jul 18 2025, 10:32 PM
sjg added inline comments to D51187: Allow secure-netboot.
Jul 18 2025, 10:12 PM
sjg abandoned D51094: Fix secure netboot with UEFI.

This review has been broken up and the open review is D51187

Jul 18 2025, 4:21 PM
sjg updated the diff for D51187: Allow secure-netboot.

Make the code in open() neater

Jul 18 2025, 4:09 PM
sjg updated the diff for D51187: Allow secure-netboot.

Alternative means of skipping devopen for pkgfs

Jul 18 2025, 12:58 AM
sjg added inline comments to D51187: Allow secure-netboot.
Jul 18 2025, 12:17 AM

Jul 17 2025

sjg updated the diff for D51187: Allow secure-netboot.

Rebase after commit DEBUG_PRINTF

Jul 17 2025, 11:54 PM
sjg committed rGe67aef419093: Add DEBUG_PRINTF to stand.h.
Jul 17 2025, 11:38 PM
sjg closed D51269: Add DEBUG_PRINTF to stand.h.
Jul 17 2025, 11:37 PM
sjg added a comment to D51269: Add DEBUG_PRINTF to stand.h.
In D51269#1173596, @imp wrote:

This looks good.

It would be nice if there was a loader command to set the debug level, but that's a separate thing and isn't universally useful since a lot of this code runs before the OK prompt.

Jul 17 2025, 11:36 PM
sjg added a comment to D51094: Fix secure netboot with UEFI.
In D51094#1172979, @imp wrote:

I had a note to follow up on this in a "little while"
Where are we? Is this review done? Or have I overlooked some sub-review that split off?

Jul 17 2025, 12:15 AM

Jul 16 2025

sjg updated the diff for D51269: Add DEBUG_PRINTF to stand.h.

Tweak the #ifdef in stand.h

Jul 16 2025, 12:22 AM

Jul 11 2025

sjg added a comment to D51187: Allow secure-netboot.
In D51187#1170063, @imp wrote:

Can you do the debug level stuff first so we get that out of the way? There's also a lot of different fixes bundled together which makes me super nervous for future bisecting...

Jul 11 2025, 10:38 PM
sjg requested review of D51269: Add DEBUG_PRINTF to stand.h.
Jul 11 2025, 10:36 PM

Jul 10 2025

sjg committed rGd1f0ee548c73: Allow net_cleanup for loader.efi.
Jul 10 2025, 6:18 PM
sjg closed D51186: Allow net_cleanup for loader.efi.
Jul 10 2025, 6:17 PM

Jul 9 2025

sjg updated the diff for D51186: Allow net_cleanup for loader.efi.

Tweak comment as suggested

Jul 9 2025, 11:09 PM
sjg updated the diff for D51186: Allow net_cleanup for loader.efi.

Add a comment about why dev_cleanup needs to be called before bi_load

Jul 9 2025, 6:21 PM

Jul 8 2025

sjg added a comment to D51186: Allow net_cleanup for loader.efi.
In D51186#1169361, @imp wrote:
In D51186#1169123, @sjg wrote:
In D51186#1168883, @imp wrote:

So what happens when bi_load() returns an error? Most devices don't have the 'dv_cleanup()' routines, so it doesn't matter that much... But wouldn't this preclude network working if it does cleanup? I think it might be OK.

It looks like the only case for which bi_load() returns an error - vs panic is failure to find rootdev which seems the sort of thing that could have been done earlier?
If that were extracted to some earlier call, then bi_load() looks like a one way trip to boot or panic

It may be a redunant check. But I'm not sure that bi_load is the right place to do exit boot services since I don't want its callers to know that only panics are possible because that changes over time.

But I think your analysis is flawed, since we have

if (retry == 0) {
        BS->FreePages(addr, pages);
        printf("ExitBootServices error %lu\n", EFI_ERROR_CODE(status));
        return (EINVAL);
}

late in the bi_load.

Jul 8 2025, 11:55 PM
sjg added a comment to D51186: Allow net_cleanup for loader.efi.
In D51186#1168883, @imp wrote:

So what happens when bi_load() returns an error? Most devices don't have the 'dv_cleanup()' routines, so it doesn't matter that much... But wouldn't this preclude network working if it does cleanup? I think it might be OK.

Jul 8 2025, 5:16 PM
sjg added a comment to D51186: Allow net_cleanup for loader.efi.
In D51186#1168883, @imp wrote:

So what happens when bi_load() returns an error? Most devices don't have the 'dv_cleanup()' routines, so it doesn't matter that much... But wouldn't this preclude network working if it does cleanup? I think it might be OK.

Jul 8 2025, 5:02 PM

Jul 6 2025

sjg requested review of D51187: Allow secure-netboot.
Jul 6 2025, 11:54 PM