Page MenuHomeFreeBSD

netchild (Alexander Leidinger)
User

Projects

User Details

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

Recent Activity

Yesterday

netchild committed R11:34c3b48f8644: security/lua-resty-openssl: Update to 1.9.0 (authored by chris.longros_gmail.com).
security/lua-resty-openssl: Update to 1.9.0
Sun, Sep 6, 6:03 PM
netchild committed rGe48af5f99566: 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, Sep 6, 10:02 AM
netchild committed rG4c84a6a29ce6: rc.subr tests: service jail behaviour of run_rc_command (authored by netchild).
rc.subr tests: service jail behaviour of run_rc_command
Sun, Sep 6, 10:02 AM
netchild committed rGf1cc2f565739: 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, Sep 6, 10:02 AM
netchild committed rGaf97285a6726: rc.subr: svcj - add a setaudit option (authored by netchild).
rc.subr: svcj - add a setaudit option
Sun, Sep 6, 10:02 AM
netchild committed rGf74c4cb8a2ed: 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, Sep 6, 10:01 AM
netchild committed rG37a4bc181810: 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, Sep 6, 10:01 AM
netchild committed rG2c9ed2b6a129: rc.subr: svcj - let svcj_all_enable enable service jails (authored by netchild).
rc.subr: svcj - let svcj_all_enable enable service jails
Sun, Sep 6, 10:01 AM

Sat, Sep 5

netchild added a comment to D59391: if_bridge: count the drops of the fragmentation path.

The bad: label in the previous revision gets called for ether types 0x88e1 (HomePlug AV management frames) and 0x8912 (not named in sys/net/ethernet.h) via the default: case and with net.link.bridge.pfil_onlyip=1. This looks to me like a policy drop and not an error path. As such I removed that part. Correct me if I get this wrong... (447 such packets in 300s doesn't not sound like an error to me).

Sat, Sep 5, 5:27 PM
netchild retitled D59391: if_bridge: count the drops of the fragmentation path from if_bridge: count the packets bridge_pfil() drops on error to if_bridge: count the drops of the fragmentation path.
Sat, Sep 5, 5:23 PM
netchild updated the diff for D59391: if_bridge: count the drops of the fragmentation path.

rework: the bad: counter is removed; only the fragmentation path is counted

Sat, Sep 5, 5:12 PM

Fri, Sep 4

netchild added a comment to D59391: if_bridge: count the drops of the fragmentation path.

The following part may need to get a rework for this change... investigating...

Fri, Sep 4, 8:11 PM
netchild added inline comments to D59332: if_bridge: pull up only the headers bridge_pfil() inspects.
Fri, Sep 4, 7:40 PM
netchild added a comment to D59332: if_bridge: pull up only the headers bridge_pfil() inspects.

There are a couple of other places in if_bridge where we m_copyup() up to max_protohdr bytes. Do we need to fix those as well? m_copyup() doesn't handle extpg mbufs, though it wouldn't be hard to just fix that directly.

Fri, Sep 4, 7:05 PM
netchild added a comment to D59389: ipfw: pull up only the headers ipfw_chk() inspects.

Ok, this mess mostly comes from me. While reviewing this patch I came to alternative that I will post soon.

Fri, Sep 4, 6:53 PM
netchild added a comment to D59332: if_bridge: pull up only the headers bridge_pfil() inspects.

D59389 has a similar fix for ipfw.

Fri, Sep 4, 1:54 PM
netchild published D59391: if_bridge: count the drops of the fragmentation path for review.
Fri, Sep 4, 1:53 PM
netchild published D59390: ipfw tests: cover layer-2 filtering of unmapped mbufs for review.

Unit test for the issue in D59389.

Fri, Sep 4, 1:51 PM
netchild published D59389: ipfw: pull up only the headers ipfw_chk() inspects for review.
Fri, Sep 4, 1:48 PM
netchild retitled D59332: if_bridge: pull up only the headers bridge_pfil() inspects from if_bridge: map unmapped mbufs before filtering to if_bridge: pull up only the headers bridge_pfil() inspects.
Fri, Sep 4, 1:44 PM
netchild updated the diff for D59332: if_bridge: pull up only the headers bridge_pfil() inspects.

Narrowed per markj@: pull up ETHER_HDR_LEN first, the SNAP/LLC header only when the frame is long enough to carry one. No mb_unmapped_to_ext() call. Rebased on current main.

Fri, Sep 4, 1:43 PM

Thu, Sep 3

netchild added inline comments to D59332: if_bridge: pull up only the headers bridge_pfil() inspects.
Thu, Sep 3, 4:09 PM
netchild added a comment to D59332: if_bridge: pull up only the headers bridge_pfil() inspects.
Thu, Sep 3, 12:00 PM
netchild added a comment to D59332: if_bridge: pull up only the headers bridge_pfil() inspects.

After a bit more digging around. This does not seem only to be a particular problem for the bridge, this is a problem for everything pfil related...
ipfw_check_frame_mbuf() seems to have the same bug (depends on net.link.ether.ipfw=1).
pf's ethernet hook seems to be safe at first look (m_copydata()).
if_enc passes the chain without touching, safe.
dummynet: pulls 14 bytes, so probably safe.
ipfilter: no idea, maybe.

Thu, Sep 3, 11:33 AM
netchild published D59333: pf tests: cover filtering of bridged unmapped mbufs for review.

This is a test for the fix in D59332

Thu, Sep 3, 7:02 AM
netchild published D59332: if_bridge: pull up only the headers bridge_pfil() inspects for review.

Unit tests in D59333

Thu, Sep 3, 7:01 AM

Wed, Sep 2

netchild added a comment to D59204: iflib: Require sustained demand for TX watchdog.

The patchset is now running on the host which needs the watchdog to trigger from time to time. It needs a while to run into the issue.

Any idea how long this will take to trigger? I'd really like this patch to be pushed, as my test machines are all delivering spurious WD resets and need this patch merged (and a follow-on of my own to fix the world for ktls as well)

Wed, Sep 2, 7:34 AM
netchild added a comment to D59294: iflib: Do not hold the ifnet lock across registration.

This fixes the hang at boot I've seen.

Wed, Sep 2, 7:31 AM

Tue, Sep 1

netchild added a comment to D59308: rc.subr: serialize service-jail creation to avoid a create-create race.

But don't we want the second one to fail?
Why do I want the second one to succeed?
When I run a non-svc start in parllel, I would want only one to succeed (if we think about nginx, or mysql or such).
What if someone hits ctrl-c after taking the lock?

Tue, Sep 1, 9:09 PM
netchild added a comment to D59204: iflib: Require sustained demand for TX watchdog.

The patchset is now running on the host which needs the watchdog to trigger from time to time. It needs a while to run into the issue.

Tue, Sep 1, 12:30 PM

Sun, Aug 30

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

Aug 4 2026

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
Aug 4 2026, 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
Aug 4 2026, 5:16 PM
netchild committed rG69c3e0de01c1: iflib: restore TX watchdog functionality (authored by netchild).
iflib: restore TX watchdog functionality
Aug 4 2026, 5:15 PM
netchild closed D58282: iflib: remove the unused TX queue state machine.
Aug 4 2026, 5:15 PM
netchild closed D58266: iflib: restore TX watchdog functionality.
Aug 4 2026, 5:15 PM

Aug 3 2026

netchild committed rGf7fd5a57b08c: tests/sys/pmc: only build if MK_PMC != no (authored by ngie).
tests/sys/pmc: only build if MK_PMC != no
Aug 3 2026, 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
Aug 3 2026, 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
Aug 3 2026, 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
Aug 3 2026, 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
Aug 3 2026, 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
Aug 3 2026, 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
Aug 3 2026, 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
Aug 3 2026, 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
Aug 3 2026, 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
Aug 3 2026, 5:30 PM

Aug 2 2026

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
Aug 2 2026, 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