Page MenuHomeFreeBSD

sjg (Simon Gerraty)
User

Projects

User Details

User Since
Apr 9 2015, 9:27 PM (580 w, 5 d)

Recent Activity

Mon, May 18

sjg committed rG701d7be6e4a9: Add test cases for safe_eval.sh (authored by sjg).
Add test cases for safe_eval.sh
Mon, May 18, 5:53 PM
sjg closed D56795: Add test cases for safe_eval.sh.
Mon, May 18, 5:52 PM

Wed, May 13

sjg committed rG1729d2f741a1: Merge bmake-20260508 (authored by sjg).
Merge bmake-20260508
Wed, May 13, 4:32 AM
sjg committed rGef402bba8426: Import bmake-20260508 (authored by sjg).
Import bmake-20260508
Wed, May 13, 4:23 AM

Fri, May 8

sjg added a comment to D54542: release: Build the release media from packages.

make(1) documents - as

-       in compatibility mode causes any non-zero exit status of
        the command line to be ignored.

and is followed by a fuller explanation of behaviour in non-compatibility mode in a paragraph. @sjg to me this implies that - does not ignore non-zero exit status in non-compatibility mode, and ought to be clarified. What about something like - causes any non-zero exit status of the command line to be ignored. The behaviour is slightly different when make is run in compatibility vs jobs mode; see below?

Fri, May 8, 3:23 PM

Thu, May 7

sjg committed rG586838724e40: Remove PROC_CHECK_PRIV macro from sys_process.c (authored by sjg).
Remove PROC_CHECK_PRIV macro from sys_process.c
Thu, May 7, 3:50 AM
sjg closed D56864: Remove PROC_CHECK_PRIV macro from sys_process.c.
Thu, May 7, 3:49 AM
sjg updated the diff for D56864: Remove PROC_CHECK_PRIV macro from sys_process.c.

Check for error != 0

Thu, May 7, 3:15 AM
sjg requested review of D56864: Remove PROC_CHECK_PRIV macro from sys_process.c.
Thu, May 7, 1:27 AM

Tue, May 5

sjg committed rG8334d46162e4: Fix typo in curthread (authored by sjg).
Fix typo in curthread
Tue, May 5, 8:15 PM
sjg updated the diff for D56795: Add test cases for safe_eval.sh.

delete lines containing backtics or $()

Tue, May 5, 6:15 PM
sjg committed rGadad6862228d: mac_veriexec_priv_check block proc_write_*regs* (authored by sjg).
mac_veriexec_priv_check block proc_write_*regs*
Tue, May 5, 5:30 PM
sjg updated the diff for D56795: Add test cases for safe_eval.sh.

Fix comment to match the expected result.

Tue, May 5, 6:01 AM
sjg updated the diff for D56795: Add test cases for safe_eval.sh.

Add quotes around result if we see _ followed by space.

Tue, May 5, 5:59 AM
sjg updated the diff for D56795: Add test cases for safe_eval.sh.

Add $() example

Tue, May 5, 4:32 AM

Mon, May 4

sjg requested review of D56795: Add test cases for safe_eval.sh.
Mon, May 4, 6:33 PM

Tue, Apr 28

sjg accepted D56676: packages: Make create-sets.sh more robust.

fair enough

Tue, Apr 28, 7:30 PM
sjg added inline comments to D56676: packages: Make create-sets.sh more robust.
Tue, Apr 28, 7:20 PM

Apr 22 2026

sjg committed rG566cc005812b: safe_set treat ':' and '#' differently (authored by sjg).
safe_set treat ':' and '#' differently
Apr 22 2026, 4:38 PM
sjg committed rG69cc351c4c91: safe_set ignore leading white-space (authored by sjg).
safe_set ignore leading white-space
Apr 22 2026, 4:16 PM

Apr 15 2026

sjg accepted D56087: packages: Convert world to a subdir build.
Apr 15 2026, 11:38 PM
sjg added inline comments to D56087: packages: Convert world to a subdir build.
Apr 15 2026, 11:10 PM

Apr 13 2026

sjg committed rGe272f4a61e78: Fix default for .MAKE.SAVE_DOLLARS (authored by sjg).
Fix default for .MAKE.SAVE_DOLLARS
Apr 13 2026, 5:39 PM

Apr 10 2026

sjg committed rG35bbdfad2862: Pass severity to vectx_open() rather than vectx_close() (authored by sjg).
Pass severity to vectx_open() rather than vectx_close()
Apr 10 2026, 5:47 PM
sjg closed D56297: Pass severity to vectx_open() rather than vectx_close().
Apr 10 2026, 5:47 PM
sjg committed rGde9fe28ab847: Allow passing xtras to safe_set (authored by sjg).
Allow passing xtras to safe_set
Apr 10 2026, 4:12 PM

Apr 7 2026

sjg updated the diff for D56297: Pass severity to vectx_open() rather than vectx_close().

Fix arg for LOADER_VERIEXEC_TESTING printf

Apr 7 2026, 11:23 PM
sjg added inline comments to D56087: packages: Convert world to a subdir build.
Apr 7 2026, 10:27 PM
sjg requested review of D56297: Pass severity to vectx_open() rather than vectx_close().
Apr 7 2026, 9:33 PM
sjg committed rGa371b008d13f: Add boot_setenv (authored by sjg).
Add boot_setenv
Apr 7 2026, 4:30 PM
sjg closed D56287: Add boot_setenv.
Apr 7 2026, 4:30 PM
sjg added a comment to D56287: Add boot_setenv.
In D56287#1287814, @sjg wrote:
In D56287#1287811, @imp wrote:

I like this, and also @kevans 's suggestion.

So rename it to secure_setenv ?

Apr 7 2026, 3:20 AM
sjg added a comment to D56287: Add boot_setenv.
In D56287#1287811, @imp wrote:

I like this, and also @kevans 's suggestion.

Apr 7 2026, 3:15 AM
sjg added a comment to D56287: Add boot_setenv.

I think the concept is fine, my main nit is: do we want to call this secure_setenv for symmetry with the secure_getenv name we use in libc, for use in security-sensitive getenv() calls?

Apr 7 2026, 1:31 AM
sjg requested review of D56287: Add boot_setenv.
Apr 7 2026, 12:01 AM

Apr 6 2026

sjg committed rGb2751d956e5b: We also get _HOST_OSREL from host-target.mk (authored by sjg).
We also get _HOST_OSREL from host-target.mk
Apr 6 2026, 6:50 PM
sjg committed rG34a3834eadd0: Merge bmake-20260313 (authored by sjg).
Merge bmake-20260313
Apr 6 2026, 6:35 PM
sjg committed rGfe271bdb43cf: Import bmake-20260313 (authored by sjg).
Import bmake-20260313
Apr 6 2026, 6:26 PM

Mar 27 2026

sjg added inline comments to D56087: packages: Convert world to a subdir build.
Mar 27 2026, 8:05 PM

Mar 26 2026

sjg added a comment to D56087: packages: Convert world to a subdir build.
In D56087#1283209, @ivy wrote:

about dirdeps: i'm hoping this will allow us to eventually support a dirdeps build for packages, but that's a long-term plan and not something i'm working on right now. but if there's anything we can change here to make that easier in the future (especially if it changes the developer-facing interface) i can definitely look at doing that now.

Mar 26 2026, 11:01 PM
sjg added a comment to D56087: packages: Convert world to a subdir build.
In D56087#1283196, @ivy wrote:
In D56087#1283195, @sjg wrote:

what is the difference b/w packages/ and release/packages/ ?

originally we only had release/packages, but i've moved the new bits to packages/ because packages aren't really a release thing, they're part of the src build. the remaining files in release/packages will go away when i redo the kernel/dtb and src packages.

Mar 26 2026, 9:58 PM
sjg added a comment to D56087: packages: Convert world to a subdir build.

what is the difference b/w packages/ and release/packages/ ?

Mar 26 2026, 9:17 PM
sjg accepted D56087: packages: Convert world to a subdir build.

I like the overall change. I've at most skimmed the makefile bits, but this seems like a move in the right direction.

Tagging @sjg in case he has any thoughts on this. IIRC he has previously said that driving package creation from individual directories was required to support dirdeps packages so hopefully this is a move in the right direction.

Mar 26 2026, 9:01 PM

Mar 8 2026

sjg accepted D55711: bsd.progs.mk: Fix incremental META_MODE for prog sources.

makes sense

Mar 8 2026, 2:19 AM

Feb 21 2026

sjg accepted D55416: debug.sh: Fix a typo.
Feb 21 2026, 7:05 PM · Contributor Reviews (src), rc

Jan 29 2026

sjg added a comment to D30990: src.sys.obj.mk: Export OBJTOP like OBJROOT.

FWIW this simple .export OBJTOP works ok for buildworld but not for targets like universe where multiple arches try to use the same OBJTOP which quickly ends in tears.
The more elaborate patch in https://reviews.freebsd.org/D54819 blows up in buildworld due to being incompatible with assumptions made by all the *compat* bits, but once that compat stuff is fixed, probably has a hope of working for universe too.

Jan 29 2026, 12:26 AM

Jan 22 2026

sjg added a comment to D54819: src.sys.obj.mk export OBJTOP.

Do we need to worry about $s in OBJROOT?

Jan 22 2026, 4:00 PM
sjg updated the diff for D54819: src.sys.obj.mk export OBJTOP.

Remove all but the last := for OBJTOP

Jan 22 2026, 1:09 AM
sjg added a comment to D30990: src.sys.obj.mk: Export OBJTOP like OBJROOT.

Please see https://reviews.freebsd.org/D54819

Jan 22 2026, 1:04 AM
sjg requested review of D54819: src.sys.obj.mk export OBJTOP.
Jan 22 2026, 1:03 AM

Jan 21 2026

sjg added a comment to D30990: src.sys.obj.mk: Export OBJTOP like OBJROOT.

The patch below, builds buildworld ok, avoids these warnings (due to OBJTOP being empty when evaluatinng MAKEOBJDIR which is set to ${.CURDIR:S,${SRCTOP},${OBJTOP},}

diff --git a/share/mk/src.sys.obj.mk b/share/mk/src.sys.obj.mk
index e4fe3fa9a2aa..67af0b833faa 100644
--- a/share/mk/src.sys.obj.mk
+++ b/share/mk/src.sys.obj.mk
@@ -88,18 +88,22 @@ SB_OBJROOT:= ${OBJROOT}
 # in the source tree.
 .if ${MK_UNIFIED_OBJDIR} == "yes" && ${SRCTOP} != ${OBJROOT:tA}
 .if defined(TARGET) && defined(TARGET_ARCH)
-OBJTOP:=       ${OBJROOT}${TARGET}.${TARGET_ARCH}
+OBJTOP:=       ${OBJROOT}$${TARGET}.$${TARGET_ARCH}
 .elif defined(TARGET) && ${.CURDIR} == ${SRCTOP}
 # Not enough information, just use basic OBJDIR.  This can happen with some
 # 'make universe' targets or if TARGET is not being used as expected.
 OBJTOP:=       ${OBJROOT:H}
 .else
-OBJTOP:=       ${OBJROOT}${MACHINE}.${MACHINE_ARCH}
+OBJTOP:=       ${OBJROOT}$${MACHINE}.$${MACHINE_ARCH}
 .endif
 .else
 # TARGET.TARGET_ARCH handled in OBJROOT already.
 OBJTOP:=       ${OBJROOT:H}
 .endif # ${MK_UNIFIED_OBJDIR} == "yes"
+# export but do not track
+.export-env OBJTOP
+# resolve if needed
+OBJTOP:= ${OBJTOP}
 .endif # empty(OBJTOP)
Jan 21 2026, 7:39 AM

Jan 15 2026

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

Jan 11 2026

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

Jan 10 2026

sjg committed rGc95f96dea30a: Update to bmake-20251111 (authored by sjg).
Update to bmake-20251111
Jan 10 2026, 9:35 PM
sjg committed rG06366a2188a1: Merge bmake-20250804 (authored by sjg).
Merge bmake-20250804
Jan 10 2026, 9:35 PM
sjg committed rGa9319c35e816: Merge bmake-20250308 (authored by sjg).
Merge bmake-20250308
Jan 10 2026, 9:35 PM
sjg committed rGeb560911563f: Merge bmake-20250618 (authored by sjg).
Merge bmake-20250618
Jan 10 2026, 9:35 PM
sjg committed rG44ad87f77a84: Merge bmake-20250707 (authored by sjg).
Merge bmake-20250707
Jan 10 2026, 9:35 PM
sjg committed rG8a4277b9667c: Merge bmake-20250414 (authored by sjg).
Merge bmake-20250414
Jan 10 2026, 9:35 PM
sjg committed rG812d0cb17de0: Merge bmake-20250125 (authored by sjg).
Merge bmake-20250125
Jan 10 2026, 9:35 PM
sjg committed rGfa86ef7f23ae: Merge bmake-20240711 (authored by sjg).
Merge bmake-20240711
Jan 10 2026, 9:34 PM
sjg committed rGba508f1da16d: Merge bmake-20240625 (authored by sjg).
Merge bmake-20240625
Jan 10 2026, 9:34 PM
sjg committed rG5d3c3f73b69c: Merge bmake-20240520 (authored by sjg).
Merge bmake-20240520
Jan 10 2026, 9:34 PM
sjg committed rG1d00ba4aaacf: Merge bmake-20240508 (authored by sjg).
Merge bmake-20240508
Jan 10 2026, 9:34 PM
sjg committed rG1166b90143da: Merge bmake-20240430 (authored by sjg).
Merge bmake-20240430
Jan 10 2026, 9:34 PM
sjg committed rG72f01a763131: Merge bmake-20240309 (authored by sjg).
Merge bmake-20240309
Jan 10 2026, 9:34 PM
sjg committed rGf580ef8a75c1: Merge bmake-20230909 (authored by sjg).
Merge bmake-20230909
Jan 10 2026, 9:34 PM
sjg committed rG4b2e33e48152: Update to bmake-20240108 (authored by sjg).
Update to bmake-20240108
Jan 10 2026, 9:34 PM
sjg committed rG11aa32794394: Update to bmake-20251111 (authored by sjg).
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 (authored by sjg).
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 (authored by sjg).
Update to bmake-20251111
Dec 3 2025, 6:18 PM
sjg committed rG638c66de4a0f: Import bmake-20251111 (authored by sjg).
Import bmake-20251111
Dec 3 2025, 5:59 PM

Nov 30 2025

sjg committed R9:fdba6c245b12: Mention bmake update (authored by sjg).
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 (authored by sjg).
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 (authored by sjg).
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 (authored by sjg).
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 (authored by sjg).
loader: do not try to open directories with TFTP
Aug 20 2025, 10:49 PM