Page MenuHomeFreeBSD

netchild (Alexander Leidinger)
User

Projects

User Details

User Since
Jul 25 2015, 10:06 AM (579 w, 2 d)

Recent Activity

Yesterday

netchild committed rGb5dcd8f9d6ae: rc.subr tests: service jail behaviour of run_rc_command (authored by netchild).
rc.subr tests: service jail behaviour of run_rc_command
Sun, Aug 30, 5:45 PM
netchild committed rG6155e17019f6: rc.subr: svcj - send the stop signal from inside the service jail (authored by joneum).
rc.subr: svcj - send the stop signal from inside the service jail
Sun, Aug 30, 5:45 PM
netchild committed rGbe834d62e990: rc.conf.5: note that a negative nice value does not reach a service jail (authored by netchild).
rc.conf.5: note that a negative nice value does not reach a service jail
Sun, Aug 30, 5:45 PM
netchild committed rG9125bc0727db: rc.subr: svcj - add a setaudit option (authored by netchild).
rc.subr: svcj - add a setaudit option
Sun, Aug 30, 5:45 PM
netchild committed rG327dae508105: rc.subr: svcj - run a service's own restart and status methods in its jail (authored by netchild).
rc.subr: svcj - run a service's own restart and status methods in its jail
Sun, Aug 30, 5:45 PM
netchild committed rGa70ca1ebd8ad: rc.subr: svcj - remove the service jail when the service is not running (authored by netchild).
rc.subr: svcj - remove the service jail when the service is not running
Sun, Aug 30, 5:45 PM
netchild committed rG21e53eeaffca: rc.subr: svcj - let svcj_all_enable enable service jails (authored by netchild).
rc.subr: svcj - let svcj_all_enable enable service jails
Sun, Aug 30, 5:44 PM

Sat, Aug 29

netchild added inline comments to D59204: iflib: Require sustained demand for TX watchdog.
Sat, Aug 29, 9:24 AM
netchild added a comment to D59204: iflib: Require sustained demand for TX watchdog.

My build is still running on the old hardware where I can test this.
Quick check, if I get it right:

  • this solves the issue where demand is false on the next period.
  • this does not solve an issue where ~1 packet per period is send while more than one is in the queue (no idea if this is behavior we can see in the real world): growth every period → demand true every period → armed reaches 4 → still resets.
Sat, Aug 29, 9:19 AM

Thu, Aug 27

netchild committed rG8f0789bee7ab: hwpmc tests: the sampling log file (authored by netchild).
hwpmc tests: the sampling log file
Thu, Aug 27, 2:04 PM
netchild committed rGbea7b932b9ee: hwpmc: add credential-transition exec tests (keep and drop) (authored by netchild).
hwpmc: add credential-transition exec tests (keep and drop)
Thu, Aug 27, 2:04 PM
netchild committed rGd00da14532bc: hwpmc tests: process-attachment lifecycle and ownership cases (authored by netchild).
hwpmc tests: process-attachment lifecycle and ownership cases
Thu, Aug 27, 2:04 PM
netchild committed rG17fca802ded1: hwpmc: add tests for handle validation and the privilege boundaries (authored by netchild).
hwpmc: add tests for handle validation and the privilege boundaries
Thu, Aug 27, 2:03 PM
netchild committed rG068957e040f4: hwpmc: add regression tests for a credential-changing exec (authored by netchild).
hwpmc: add regression tests for a credential-changing exec
Thu, Aug 27, 2:03 PM
netchild committed rGdf537ff1520d: hwpmc tests: sort the list of test programs (authored by netchild).
hwpmc tests: sort the list of test programs
Thu, Aug 27, 2:03 PM

Sun, Aug 23

netchild added a comment to D59102: hwpmc: Fix the exec handler.
	if (PMC_SYSTEM_SAMPLING_ACTIVE() || PMC_PROC_IS_USING_PMCS(p)) {
		VOP_UNLOCK(imgp->vp);
-		pe.pm_credentialschanged = credential_changing;
+		pe.pm_credentialschanged = imgp->credential_setid;

filemon already does it this way — filemon_wrapper.c:127-129 pairs the same priv_check_cred(cred, PRIV_DEBUG_DIFFCRED) with imgp->newcred != NULL && imgp->credential_setid.
With this change, my 32 test cases pass (= no regression to what we have right now, except the security issue gone).

Yes, thanks. Probably exec should just be passing imgp directly to these hooks. (HWT has a nearly duplicate hook, but it doesn't seem to check for setuid/setgid switches. OTOH it is currently only usable by privileged users, at least today. Something to fix, but not in this patch.)

Sun, Aug 23, 5:02 PM
netchild committed rG9c8bcdddb35e: hwpmc: build hwpmc_rapl.c into the i386 module (authored by netchild).
hwpmc: build hwpmc_rapl.c into the i386 module
Sun, Aug 23, 8:12 AM
netchild committed rGd2e7fcb6dd79: hwpmc: do not register RAPL when the unit register reads as zero (authored by netchild).
hwpmc: do not register RAPL when the unit register reads as zero
Sun, Aug 23, 8:12 AM
netchild committed rG469727f0637b: hwpmc: probe the RAPL unit MSR instead of faulting on it (authored by netchild).
hwpmc: probe the RAPL unit MSR instead of faulting on it
Sun, Aug 23, 8:12 AM

Sat, Aug 22

netchild added a comment to D59102: hwpmc: Fix the exec handler.

My tests detect a regression:

Sat, Aug 22, 2:23 PM
netchild committed rGfd7171d78f3b: rc.d/bgfsck: use the correct variable name (authored by netchild).
rc.d/bgfsck: use the correct variable name
Sat, Aug 22, 10:44 AM
netchild committed rG0bee17af48dd: etc/rc.subr: svcj - use the filename for services (authored by netchild).
etc/rc.subr: svcj - use the filename for services
Sat, Aug 22, 10:44 AM

Fri, Aug 14

netchild committed rG84d8d2878a6e: rc.d/bgfsck: use the correct variable name (authored by netchild).
rc.d/bgfsck: use the correct variable name
Fri, Aug 14, 8:00 AM
netchild committed rGd0f0a3b89b93: etc/rc.subr: svcj - use the filename for services (authored by netchild).
etc/rc.subr: svcj - use the filename for services
Fri, Aug 14, 8:00 AM

Tue, Aug 4

netchild committed rG65349af4422f: iflib: clear the deferred TX descriptor state when a queue is stopped (authored by netchild).
iflib: clear the deferred TX descriptor state when a queue is stopped
Tue, Aug 4, 5:16 PM
netchild committed rG5da9bc88936a: iflib: remove the unused TX queue state machine (authored by netchild).
iflib: remove the unused TX queue state machine
Tue, Aug 4, 5:16 PM
netchild committed rG69c3e0de01c1: iflib: restore TX watchdog functionality (authored by netchild).
iflib: restore TX watchdog functionality
Tue, Aug 4, 5:15 PM
netchild closed D58282: iflib: remove the unused TX queue state machine.
Tue, Aug 4, 5:15 PM
netchild closed D58266: iflib: restore TX watchdog functionality.
Tue, Aug 4, 5:15 PM

Mon, Aug 3

netchild committed rGf7fd5a57b08c: tests/sys/pmc: only build if MK_PMC != no (authored by ngie).
tests/sys/pmc: only build if MK_PMC != no
Mon, Aug 3, 5:32 PM
netchild committed rG6d85b0a8761f: hwpmc: add regression tests for detaching a live process-mode PMC (authored by netchild).
hwpmc: add regression tests for detaching a live process-mode PMC
Mon, Aug 3, 5:32 PM
netchild committed rGac3d63e50862: hwpmc: add regression tests for counting-PMC counter wraparound (authored by netchild).
hwpmc: add regression tests for counting-PMC counter wraparound
Mon, Aug 3, 5:31 PM
netchild committed rG34afb930b25e: hwpmc: drain a process-mode PMC's runcount when a live target detaches (authored by netchild).
hwpmc: drain a process-mode PMC's runcount when a live target detaches
Mon, Aug 3, 5:31 PM
netchild committed rG4ca8afd1d15c: hwpmc: handle counter wraparound for process-mode counting PMCs (authored by netchild).
hwpmc: handle counter wraparound for process-mode counting PMCs
Mon, Aug 3, 5:31 PM
netchild committed rG7503cd109bff: tests/sys/pmc: only build if MK_PMC != no (authored by ngie).
tests/sys/pmc: only build if MK_PMC != no
Mon, Aug 3, 5:30 PM
netchild committed rGd5e51b56c248: hwpmc: add regression tests for detaching a live process-mode PMC (authored by netchild).
hwpmc: add regression tests for detaching a live process-mode PMC
Mon, Aug 3, 5:30 PM
netchild committed rG6f7bdac868c7: hwpmc: add regression tests for counting-PMC counter wraparound (authored by netchild).
hwpmc: add regression tests for counting-PMC counter wraparound
Mon, Aug 3, 5:30 PM
netchild committed rG48c9e91856c3: hwpmc: drain a process-mode PMC's runcount when a live target detaches (authored by netchild).
hwpmc: drain a process-mode PMC's runcount when a live target detaches
Mon, Aug 3, 5:30 PM
netchild committed rG1e0ae0d055d2: hwpmc: handle counter wraparound for process-mode counting PMCs (authored by netchild).
hwpmc: handle counter wraparound for process-mode counting PMCs
Mon, Aug 3, 5:30 PM

Sun, Aug 2

netchild committed rGa5a16ba5f179: nullfs: close a race when syncing inotify flags from the lower vnode (authored by netchild).
nullfs: close a race when syncing inotify flags from the lower vnode
Sun, Aug 2, 12:13 PM

Aug 1 2026

netchild updated the diff for D58266: iflib: restore TX watchdog functionality.

Comments reworded, a part moved into the commit log. The single (after f6afed726b00 ) goto moved into the one place where it matters.

Aug 1 2026, 7:41 AM

Jul 31 2026

netchild added inline comments to D58266: iflib: restore TX watchdog functionality.
Jul 31 2026, 9:46 PM

Jul 30 2026

netchild updated the diff for D58282: iflib: remove the unused TX queue state machine.

Make the padding explicit.

Jul 30 2026, 12:34 PM
netchild added inline comments to D58266: iflib: restore TX watchdog functionality.
Jul 30 2026, 12:30 PM
netchild updated the diff for D58266: iflib: restore TX watchdog functionality.

Move the variables instruct iflib_txq to a place which causes less padding. Make the existing padding in the struct visible. Checked for amd64, riscv64, arm64, and i386 (only arch where the sizeof() changes, follow-up commit to remove the "old" watchdog parts changes the size back.

Jul 30 2026, 12:29 PM
netchild added inline comments to D58266: iflib: restore TX watchdog functionality.
Jul 30 2026, 12:25 PM

Jul 28 2026

netchild committed rG6afb2b8e2fa7: tests/exterr_test: use ATF_REQUIRE_FEATURE to check exterr_strings (authored by siva).
tests/exterr_test: use ATF_REQUIRE_FEATURE to check exterr_strings
Jul 28 2026, 10:07 AM
netchild committed rG81011ca4c0a8: exterror tests: harden the checks (authored by netchild).
exterror tests: harden the checks
Jul 28 2026, 10:07 AM
netchild committed rGc724b26acd59: exterror: advertise error strings via kern.features.exterr_strings (authored by netchild).
exterror: advertise error strings via kern.features.exterr_strings
Jul 28 2026, 10:07 AM

Jul 27 2026

netchild committed rGd85e97c16f03: rc.d: fix lockd and statd flags processing after scvj (authored by netchild).
rc.d: fix lockd and statd flags processing after scvj
Jul 27 2026, 9:40 AM

Jul 23 2026

netchild accepted D58401: tests/sys/pmc: only build if MK_PMC != no.
Jul 23 2026, 8:21 AM

Jul 21 2026

netchild committed rG1092aba1260c: exterror tests: harden the checks (authored by netchild).
exterror tests: harden the checks
Jul 21 2026, 8:51 PM
netchild committed rGc8db6d4b63f1: exterror: advertise error strings via kern.features.exterr_strings (authored by netchild).
exterror: advertise error strings via kern.features.exterr_strings
Jul 21 2026, 8:51 PM
netchild closed D58322: exterror tests: harden the checks.
Jul 21 2026, 8:51 PM
netchild closed D58321: exterror: advertise error strings via kern.features.exterr_strings.
Jul 21 2026, 8:51 PM

Jul 20 2026

netchild committed rG3c3f886e4bc7: hwpmc: add regression tests for detaching a live process-mode PMC (authored by netchild).
hwpmc: add regression tests for detaching a live process-mode PMC
Jul 20 2026, 10:26 AM
netchild committed rG86fa065f1862: hwpmc: drain a process-mode PMC's runcount when a live target detaches (authored by netchild).
hwpmc: drain a process-mode PMC's runcount when a live target detaches
Jul 20 2026, 10:26 AM
netchild closed D58343: hwpmc: add regression tests for detaching a live process-mode PMC.
Jul 20 2026, 10:26 AM · pmc
netchild closed D58342: hwpmc: drain a process-mode PMC's runcount when a live target detaches.
Jul 20 2026, 10:26 AM · pmc
netchild committed rG2cfd82f747c0: hwpmc: add regression tests for counting-PMC counter wraparound (authored by netchild).
hwpmc: add regression tests for counting-PMC counter wraparound
Jul 20 2026, 10:25 AM
netchild closed D58341: hwpmc: add regression tests for counting-PMC counter wraparound.
Jul 20 2026, 10:25 AM · pmc
netchild committed rGe42703f5c4b2: hwpmc: handle counter wraparound for process-mode counting PMCs (authored by netchild).
hwpmc: handle counter wraparound for process-mode counting PMCs
Jul 20 2026, 10:25 AM
netchild closed D58340: hwpmc: handle counter wraparound for process-mode counting PMCs.
Jul 20 2026, 10:25 AM · pmc
netchild updated the diff for D58322: exterror tests: harden the checks.

full context

Jul 20 2026, 9:55 AM
netchild updated the diff for D58321: exterror: advertise error strings via kern.features.exterr_strings.

full context

Jul 20 2026, 9:54 AM

Jul 19 2026

netchild committed rGd6915bffb7b6: nullfs: close a race when syncing inotify flags from the lower vnode (authored by netchild).
nullfs: close a race when syncing inotify flags from the lower vnode
Jul 19 2026, 3:14 PM
netchild closed D58344: nullfs: close a race when syncing inotify flags from the lower vnode.
Jul 19 2026, 3:14 PM
netchild added a comment to D58266: iflib: restore TX watchdog functionality.

Results from the affected hardware (em0, 82541PI), ~44 h
on a v3 kernel. Summary: 16 watchdog fires, all true positives, 0 false
positives.

Jul 19 2026, 3:05 PM
netchild updated the summary of D58266: iflib: restore TX watchdog functionality.
Jul 19 2026, 2:52 PM
netchild updated the diff for D58266: iflib: restore TX watchdog functionality.

New tested version, on hardware which triggers the watchdog.

Jul 19 2026, 2:37 PM
netchild requested review of D58344: nullfs: close a race when syncing inotify flags from the lower vnode.
Jul 19 2026, 12:30 PM
netchild requested review of D58343: hwpmc: add regression tests for detaching a live process-mode PMC.
Jul 19 2026, 12:26 PM · pmc
netchild requested review of D58342: hwpmc: drain a process-mode PMC's runcount when a live target detaches.
Jul 19 2026, 12:22 PM · pmc
netchild added a reviewer for D58340: hwpmc: handle counter wraparound for process-mode counting PMCs: pmc.
Jul 19 2026, 12:15 PM · pmc
netchild requested review of D58341: hwpmc: add regression tests for counting-PMC counter wraparound.
Jul 19 2026, 12:15 PM · pmc
netchild requested review of D58340: hwpmc: handle counter wraparound for process-mode counting PMCs.
Jul 19 2026, 12:10 PM · pmc
netchild updated the diff for D58322: exterror tests: harden the checks.
Jul 19 2026, 11:24 AM
netchild updated the diff for D58321: exterror: advertise error strings via kern.features.exterr_strings.
Jul 19 2026, 11:16 AM

Jul 18 2026

netchild added a comment to D58321: exterror: advertise error strings via kern.features.exterr_strings.

So you disagree with kern.features.exterror.
Do you also disagree with kern.features.exterr_strings which covers the optional behavior of verbose exterror and is useful in unit tests to differentiate between "fails because something is wrong -> error" and "fails because it does not exist -> intendet -> ok".

Jul 18 2026, 5:40 PM
netchild requested review of D58322: exterror tests: harden the checks.
Jul 18 2026, 1:23 PM
netchild added a comment to D58321: exterror: advertise error strings via kern.features.exterr_strings.

The kern.features.exterror part is for the benefit of userland programs which want to use it (e.g. difference between FreeBSD 14.x and 15.x).
The kern.features.exterr_strings part is for the benefit of unit tests to be able to skip if the verbose strings are not enabled.

Jul 18 2026, 1:21 PM
netchild requested review of D58321: exterror: advertise error strings via kern.features.exterr_strings.
Jul 18 2026, 1:19 PM

Jul 16 2026

netchild added a comment to D58266: iflib: restore TX watchdog functionality.

This fires too often, maybe some false positives. I will rework.

Jul 16 2026, 12:31 PM
netchild requested review of D58282: iflib: remove the unused TX queue state machine.
Jul 16 2026, 11:11 AM
netchild updated the diff for D58266: iflib: restore TX watchdog functionality.

Switch to the mxge way. Mxge seems to harvest the completions
eagerly per interrupt, while iflib seems to reclaim lazy. The
software counter of iflib would get into the watchdog firing
situation on a lightly loaded interface... if I get it correctly.

Jul 16 2026, 11:10 AM

Jul 15 2026

netchild published D58266: iflib: restore TX watchdog functionality for review.
Jul 15 2026, 7:43 PM

Jul 11 2026

netchild committed R11:631b5de7d8ec: audio/lame: Update to 4.0. (authored by netchild).
audio/lame: Update to 4.0.
Jul 11 2026, 6:00 PM

Jul 9 2026

netchild committed R11:ceed65743a03: audio/lame: fix build (missing pkgconfig) (authored by netchild).
audio/lame: fix build (missing pkgconfig)
Jul 9 2026, 4:34 PM
netchild committed R11:350a144f9572: audio/lame: Update to 3.101. (authored by netchild).
audio/lame: Update to 3.101.
Jul 9 2026, 12:48 PM

Jul 5 2026

netchild committed R11:0c8576e93850: ports-mgmt/sccache-overlay: increase prio to fix cargo at configure time (authored by netchild).
ports-mgmt/sccache-overlay: increase prio to fix cargo at configure time
Jul 5 2026, 10:01 AM

Jun 27 2026

netchild committed rGd05d60e958bc: rc.d: fix lockd and statd flags processing after scvj (authored by netchild).
rc.d: fix lockd and statd flags processing after scvj
Jun 27 2026, 1:52 PM

Jun 24 2026

netchild added a comment to D57628: build: raise our FORTIFY_SOURCE default to 2.

When excluding from fortify the ones for which I mailed the error message to you, I have build
Queued: 1338 Inspected: 0 Ignored: 0 Built: 1338 Failed: 0 Skipped: 0 Fetched: 0 Remaining: 0

Jun 24 2026, 1:00 PM

Jun 20 2026

netchild added a comment to D57628: build: raise our FORTIFY_SOURCE default to 2.

All supported releases should have it, but it is also harmless to define any of this when it isn't -- I'd probably avoid complicating it too much.

Sounds sensible.

If you don't object to the ports patch as the maintainer, I'll just go ahead and request an exp-run with both patches applied (with the assignment you noted fixed). I had hoped to land this this week, but I also don't want antoine throwing tomatoes at me if we fundamentally break the ports tree. =-)

I don't object for sure. But I suggest to use this instead:

diff --git Mk/Features/fortify.mk Mk/Features/fortify.mk
index 2e43ca98242..86d149ff68e 100644
--- Mk/Features/fortify.mk
+++ Mk/Features/fortify.mk
@@ -14,5 +14,7 @@ FORTIFY_SOURCE?=2
 FORTIFY_CFLAGS?=       -D_FORTIFY_SOURCE=${FORTIFY_SOURCE}
 CFLAGS+=       ${FORTIFY_CFLAGS}
 CXXFLAGS+=     ${FORTIFY_CFLAGS}
+.  else
+FORTIFY_SOURCE=0
 .  endif
 .endif

That works- it does need an .export FORTIFY_SOURCE line to work, though, otherwise the build will pick up the default in bsd.sys.mk if we aren't adding to C*FLAGS (since the port build would be running in a submake)

Jun 20 2026, 3:59 PM

Jun 19 2026

netchild added a comment to D57628: build: raise our FORTIFY_SOURCE default to 2.

All supported releases should have it, but it is also harmless to define any of this when it isn't -- I'd probably avoid complicating it too much.

Jun 19 2026, 9:08 PM
netchild added a comment to D57628: build: raise our FORTIFY_SOURCE default to 2.

Without doing any build-test, should the UNSAFE part be "=0" instead of "?=0"? We want a hard override in the UNSAFE case, don't we?

Jun 19 2026, 8:02 AM
netchild added a comment to D57628: build: raise our FORTIFY_SOURCE default to 2.

@kevans would it help if I build a known failing port with your ports-patch applied?

Jun 19 2026, 7:50 AM
netchild added a comment to D57628: build: raise our FORTIFY_SOURCE default to 2.

This is what I have, this is historically grown and may or may not be an issue today:

Jun 19 2026, 7:35 AM

Jun 5 2026

netchild committed R11:fda9bb4e1965: net/serviio: update to 2.5 (authored by netchild).
net/serviio: update to 2.5
Jun 5 2026, 1:55 PM

Jun 3 2026

netchild committed R11:281839ef4bfa: mail/roundcube-tls_icon: update to 2.0.0 (authored by netchild).
mail/roundcube-tls_icon: update to 2.0.0
Jun 3 2026, 6:04 PM
netchild committed R11:87fb3c9997cd: mail/roundcube-gravatar: update to 1.7 (authored by netchild).
mail/roundcube-gravatar: update to 1.7
Jun 3 2026, 6:04 PM