Page MenuHomeFreeBSD

brooks (Brooks Davis)
User

Projects

User Details

User Since
Jul 1 2014, 6:02 PM (599 w, 21 h)

Recent Activity

Mon, Dec 22

brooks accepted D54290: telnet: Remove usage of ALIGN.
Mon, Dec 22, 10:10 AM

Fri, Dec 19

brooks committed rGa79e2278c58e: ipf: copy{in,out}ptr -> ipf_copy{in,out}_indirect (authored by brooks).
ipf: copy{in,out}ptr -> ipf_copy{in,out}_indirect
Fri, Dec 19, 4:00 PM
brooks closed D54232: ipf: copy{in,out}ptr -> ipf_copy{in,out}_indirect.
Fri, Dec 19, 3:59 PM
brooks abandoned D54266: iwlwifi: Don't compile for clang before 19.

D54301 and D54297 will resolve this issue

Fri, Dec 19, 9:56 AM
brooks accepted D54297: LinuxKPI: bitcount fix gcc and older llvm builds.
Fri, Dec 19, 9:55 AM
brooks accepted D54301: sys/bitcount.h: add __const_bitcount<n>.

LGTM. Out of paranoia, I verified using compiler explorer that it's reliably const enough to use in a macro even at -O0 with an old clang.

Fri, Dec 19, 9:55 AM

Thu, Dec 18

brooks committed R11:1d3dab2c20c0: devel/llvm21: 21.1.8 release (authored by brooks).
devel/llvm21: 21.1.8 release
Thu, Dec 18, 10:53 PM
brooks added a comment to D54266: iwlwifi: Don't compile for clang before 19.

I don't care how it's fixed, but I will commit this pretty soon if a broader fix isn't added. The linuxkpi fix should never have been committed without a fallback.

Thu, Dec 18, 3:40 PM

Wed, Dec 17

brooks updated the diff for D54266: iwlwifi: Don't compile for clang before 19.

Bump compiler version to 19.1.0 since development versions may not
include __builtin_popcountg.

Wed, Dec 17, 11:56 AM
brooks requested review of D54266: iwlwifi: Don't compile for clang before 19.
Wed, Dec 17, 11:53 AM

Tue, Dec 16

brooks updated the diff for D54232: ipf: copy{in,out}ptr -> ipf_copy{in,out}_indirect.

prefix functions with ipf_

Tue, Dec 16, 4:15 PM
brooks retitled D54232: ipf: copy{in,out}ptr -> ipf_copy{in,out}_indirect from ipf: copy{in,out}ptr -> copy{in,out}_indirect to ipf: copy{in,out}ptr -> ipf_copy{in,out}_indirect.
Tue, Dec 16, 4:15 PM

Mon, Dec 15

brooks updated the diff for D54009: sys/_types.h: avoid use of __has_feature().

Switch to checking for SIZEOF_INTCAP. The compiler will define it
if it implements __intcap_t.

Mon, Dec 15, 5:20 PM
brooks added a comment to D54232: ipf: copy{in,out}ptr -> ipf_copy{in,out}_indirect.

These names aren't generic and I'd like to use them for copy{in,out} variants that explicitly preserve pointer provenance as part of the CHERI import (we currently use copy{in,out}cap in CheriBSD to preserved pointer provenance when pointers are implemented as CHERI capabilities, but think it's better to talk about pointers rather than capabilities which have too many meanings even within the tree.)

Mon, Dec 15, 2:11 PM
brooks committed rGc112ad75605c: options: describe WITH_IPFILTER_IPFS (authored by brooks).
options: describe WITH_IPFILTER_IPFS
Mon, Dec 15, 1:54 PM
brooks committed rGb9b1262a8ef9: src.conf.5: regen documenting WITH_IPFILTER_IPFS (authored by brooks).
src.conf.5: regen documenting WITH_IPFILTER_IPFS
Mon, Dec 15, 1:54 PM
brooks requested review of D54232: ipf: copy{in,out}ptr -> ipf_copy{in,out}_indirect.
Mon, Dec 15, 1:50 PM

Wed, Dec 10

brooks committed R11:83c3eed85f56: devel/llvm-{cheri,morello}: new snapshots (authored by brooks).
devel/llvm-{cheri,morello}: new snapshots
Wed, Dec 10, 12:47 PM
brooks committed rG80203a27e964: Add sys/_align.h replacing machine/_align.h (authored by brooks).
Add sys/_align.h replacing machine/_align.h
Wed, Dec 10, 10:58 AM
brooks committed rGcfae62eac076: libcasper: fix warnings when _ALIGN preserves types (authored by brooks).
libcasper: fix warnings when _ALIGN preserves types
Wed, Dec 10, 10:58 AM
brooks committed rGac79e2e025e0: get*ent: be consistant about _ALIGN(p) - p (authored by brooks).
get*ent: be consistant about _ALIGN(p) - p
Wed, Dec 10, 10:58 AM
brooks closed D53947: Add sys/_align.h replacing machine/_align.h.
Wed, Dec 10, 10:58 AM
brooks closed D53946: libcasper: fix warnings when _ALIGN preserves types.
Wed, Dec 10, 10:58 AM
brooks closed D53945: get*ent: be consistant about _ALIGN(p) - p.
Wed, Dec 10, 10:58 AM

Tue, Dec 9

brooks committed R11:128f72b23891: devel/llvm11: don't build gold plugin when disabled (authored by brooks).
devel/llvm11: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:8bdb01cdf3ff: devel/llvm19: don't build gold plugin when disabled (authored by brooks).
devel/llvm19: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:f1de64facbac: devel/llvm11: disable LLDB by default (authored by brooks).
devel/llvm11: disable LLDB by default
Tue, Dec 9, 4:06 PM
brooks committed R11:6fb41863d079: devel/llvm12: don't build gold plugin when disabled (authored by brooks).
devel/llvm12: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:78ffea3bfe2b: devel/llvm13: don't build gold plugin when disabled (authored by brooks).
devel/llvm13: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:4438cc0381fc: devel/llvm15: don't build gold plugin when disabled (authored by brooks).
devel/llvm15: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:6b80b5acae0b: devel/llvm14: don't build gold plugin when disabled (authored by brooks).
devel/llvm14: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:c67ff903ebb7: devel/llvm16: don't build gold plugin when disabled (authored by brooks).
devel/llvm16: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:01d933a4488e: devel/llvm17: don't build gold plugin when disabled (authored by brooks).
devel/llvm17: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:cfedc18cd014: devel/llvm18: don't build gold plugin when disabled (authored by brooks).
devel/llvm18: don't build gold plugin when disabled
Tue, Dec 9, 4:06 PM
brooks committed R11:c181633fc977: devel/llvm20: don't build gold plugin when disabled (authored by brooks).
devel/llvm20: don't build gold plugin when disabled
Tue, Dec 9, 4:05 PM
brooks committed R11:9f9ae975724e: devel/llvm21: 21.1.7 release (authored by brooks).
devel/llvm21: 21.1.7 release
Tue, Dec 9, 4:05 PM
brooks committed R11:4e1881d3af60: devel/llvm21: don't build gold plugin when disabled (authored by brooks).
devel/llvm21: don't build gold plugin when disabled
Tue, Dec 9, 4:05 PM
brooks accepted D54147: zfs: Reuse ZINCDIR variable from kmod.mk.
Tue, Dec 9, 10:11 AM

Wed, Dec 3

brooks added inline comments to D53946: libcasper: fix warnings when _ALIGN preserves types.
Wed, Dec 3, 3:25 PM

Mon, Dec 1

brooks added inline comments to D54009: sys/_types.h: avoid use of __has_feature().
Mon, Dec 1, 11:02 AM
brooks added a reverting change for rG19728f31ae42: sys/_types.h: Unbreak gcc build: D54009: sys/_types.h: avoid use of __has_feature().
Mon, Dec 1, 11:00 AM
brooks requested review of D54009: sys/_types.h: avoid use of __has_feature().
Mon, Dec 1, 10:59 AM
brooks added a reverting change for D53986: sys/_types.h: Actually unbreak gcc build: D54009: sys/_types.h: avoid use of __has_feature().
Mon, Dec 1, 10:59 AM
brooks added a reverting change for D53980: sys/_types.h: Unbreak gcc build: D54009: sys/_types.h: avoid use of __has_feature().
Mon, Dec 1, 10:59 AM
brooks added a reverting change for rG029a09f18032: sys/_types.h: Actually unbreak gcc build: D54009: sys/_types.h: avoid use of __has_feature().
Mon, Dec 1, 10:59 AM
brooks updated the diff for D53947: Add sys/_align.h replacing machine/_align.h.

Clarify why _ALIGN* are obsolete and what should be used instead.

Mon, Dec 1, 9:58 AM
brooks added inline comments to D53946: libcasper: fix warnings when _ALIGN preserves types.
Mon, Dec 1, 9:53 AM

Fri, Nov 28

brooks updated the diff for D53947: Add sys/_align.h replacing machine/_align.h.
  • Attempt to clarity _ALIGN's questionable interface
  • Use __align_up (just wraps the builtin which has is supported on all compilers that support typeof() by a fallback).
Fri, Nov 28, 2:37 PM
brooks updated the summary of D53945: get*ent: be consistant about _ALIGN(p) - p.
Fri, Nov 28, 2:35 PM
brooks updated the diff for D53945: get*ent: be consistant about _ALIGN(p) - p.

Add an inline function to compute the misalignment. To it in nscache.h
rather than libc_private.h as that's also a private header and I don't
want this sort of thing to spread.

Fri, Nov 28, 2:34 PM
brooks added inline comments to D53946: libcasper: fix warnings when _ALIGN preserves types.
Fri, Nov 28, 10:10 AM

Thu, Nov 27

brooks requested review of D53947: Add sys/_align.h replacing machine/_align.h.
Thu, Nov 27, 3:34 PM
brooks requested review of D53946: libcasper: fix warnings when _ALIGN preserves types.
Thu, Nov 27, 3:34 PM
brooks requested review of D53945: get*ent: be consistant about _ALIGN(p) - p.
Thu, Nov 27, 3:33 PM
brooks committed rG4e22cd3bf0b4: add types: (u)int64ptr_t (authored by brooks).
add types: (u)int64ptr_t
Thu, Nov 27, 2:58 PM
brooks closed D53823: add types: (u)int64ptr_t.
Thu, Nov 27, 2:58 PM
brooks committed rG6ebbfe723bd2: sys/_types.h: add __intptr_t to __mbstate_t (authored by brooks).
sys/_types.h: add __intptr_t to __mbstate_t
Thu, Nov 27, 2:57 PM
brooks closed D53822: sys/_types.h: add __intptr_t to __mbstate_t.
Thu, Nov 27, 2:57 PM
brooks committed rG528e70a12ca6: sys/_types.h: add void * to __max_align_t (authored by brooks).
sys/_types.h: add void * to __max_align_t
Thu, Nov 27, 2:57 PM
brooks closed D53821: sys/_types.h: add void * to __max_align_t.
Thu, Nov 27, 2:57 PM
brooks closed D53820: sys/_types.h: define fallback __(u)intcap_t.
Thu, Nov 27, 2:57 PM
brooks closed D53819: sys/_types.h: define __(u)int(f)ptr_t for CHERI.
Thu, Nov 27, 2:57 PM
brooks committed rG85ab981a8e4e: sys/_types.h: define fallback __(u)intcap_t (authored by brooks).
sys/_types.h: define fallback __(u)intcap_t
Thu, Nov 27, 2:57 PM
brooks committed rG96e05e2d1dfc: sys/_types.h: define __(u)int(f)ptr_t for CHERI (authored by brooks).
sys/_types.h: define __(u)int(f)ptr_t for CHERI
Thu, Nov 27, 2:57 PM
brooks closed D53818: sys/_types.h: centralize __vm_offset_t and __vm_size_t definitions.
Thu, Nov 27, 2:57 PM
brooks committed rG6aaba753830e: sys/_types.h: centralize __vm_offset_t and __vm_size_t definitions (authored by brooks).
sys/_types.h: centralize __vm_offset_t and __vm_size_t definitions
Thu, Nov 27, 2:57 PM
brooks closed D53817: new type: ptraddr_t.
Thu, Nov 27, 2:56 PM
brooks committed rGdca634d1544b: new type: ptraddr_t (authored by brooks).
new type: ptraddr_t
Thu, Nov 27, 2:56 PM

Wed, Nov 26

brooks updated subscribers of D53857: 15.0R/relnotes: Add notes on reproducible builds and NO_ROOT builds.
Wed, Nov 26, 4:25 PM · docs
brooks added inline comments to D53857: 15.0R/relnotes: Add notes on reproducible builds and NO_ROOT builds.
Wed, Nov 26, 4:10 PM · docs

Nov 21 2025

brooks accepted D53791: Use ZFSTOP more broadly.

Seems good to me.

Nov 21 2025, 12:30 PM
brooks committed rG747e8427e997: sys/syscallsubr.h: fix some whitespace (authored by brooks).
sys/syscallsubr.h: fix some whitespace
Nov 21 2025, 12:14 PM
brooks committed rG5b3368322b0e: sys/extaddr.h: don't declare struct iovec (authored by brooks).
sys/extaddr.h: don't declare struct iovec
Nov 21 2025, 12:14 PM

Nov 20 2025

brooks committed R11:e8e86edcef65: devel/llvm-devel: fix a plist bug (authored by brooks).
devel/llvm-devel: fix a plist bug
Nov 20 2025, 1:52 PM
brooks updated the diff for D53823: add types: (u)int64ptr_t.

Spelling

Nov 20 2025, 10:42 AM
brooks updated the diff for D53823: add types: (u)int64ptr_t.

Describe the types

Nov 20 2025, 10:41 AM
brooks updated the diff for D53838: .github: support all stable branches.

Actually switch to a pattern

Nov 20 2025, 10:27 AM
brooks updated the diff for D53838: .github: support all stable branches.

Switch to a pattern

Nov 20 2025, 10:26 AM
brooks retitled D53838: .github: support all stable branches from .github: build on push to stable/15 to .github: support all stable branches.
Nov 20 2025, 10:25 AM
brooks updated the diff for D53820: sys/_types.h: define fallback __(u)intcap_t.

Add some advice about (not) using __intcap_t

Nov 20 2025, 10:14 AM
brooks added a comment to D53819: sys/_types.h: define __(u)int(f)ptr_t for CHERI.
In D53819#1229955, @kib wrote:

And where is __intcap_t defined? Is it provided by some MD include, like machine/_types.h?

I do not remember seeing this MD define in the review series. If true, then should __intcap_t added before the use?

Nov 20 2025, 10:06 AM
brooks requested review of D53838: .github: support all stable branches.
Nov 20 2025, 9:59 AM
brooks added a comment to D53830: sys/stdint.h: add C23 _WIDTH macros.

I don't feel super strongly about this, but I'm not entirely convinced we should be defining these from first principles. I believe that compilers we care about define __*_WIDTH__ macros we could use instead and things are likely to go very badly wrong if there's disagreement.

Nov 20 2025, 9:14 AM

Nov 19 2025

brooks updated subscribers of D53817: new type: ptraddr_t.

How should ptraddr_t and vm_offset_t coexist? Are they semantically different, or should we gradually replace uses of vm_offset_t with ptraddr_t, or?

Nov 19 2025, 2:25 PM
brooks added inline comments to D53821: sys/_types.h: add void * to __max_align_t.
Nov 19 2025, 2:09 PM
brooks added a comment to D53817: new type: ptraddr_t.
In D53817#1229542, @kib wrote:

So may be do not expose ptraddr_t yet, until it is finalized? If they choose (slightly) different semantic, we would have a huge problem.

Nov 19 2025, 1:49 PM
brooks committed R11:b1916a4d5f2d: devel/llvm-devel: new snapshot (authored by brooks).
devel/llvm-devel: new snapshot
Nov 19 2025, 12:00 PM
brooks committed R11:bfb451c53aab: devel/llvm21: 21.1.6 Release (authored by brooks).
devel/llvm21: 21.1.6 Release
Nov 19 2025, 12:00 PM
brooks added a comment to D53820: sys/_types.h: define fallback __(u)intcap_t.

On CheriBSD we also include intcap_t and uintcap_t to be friendly, but we're trying to discourage the hybrid programming model so I'd like to stick with __ variants in FreeBSD.

Nov 19 2025, 11:23 AM
brooks added inline comments to D53823: add types: (u)int64ptr_t.
Nov 19 2025, 11:22 AM
brooks requested review of D53823: add types: (u)int64ptr_t.
Nov 19 2025, 11:19 AM
brooks requested review of D53822: sys/_types.h: add __intptr_t to __mbstate_t.
Nov 19 2025, 11:18 AM
brooks requested review of D53821: sys/_types.h: add void * to __max_align_t.
Nov 19 2025, 11:18 AM
brooks requested review of D53820: sys/_types.h: define fallback __(u)intcap_t.
Nov 19 2025, 11:18 AM
brooks requested review of D53819: sys/_types.h: define __(u)int(f)ptr_t for CHERI.
Nov 19 2025, 11:18 AM
brooks requested review of D53818: sys/_types.h: centralize __vm_offset_t and __vm_size_t definitions.
Nov 19 2025, 11:16 AM
brooks requested review of D53817: new type: ptraddr_t.
Nov 19 2025, 11:15 AM
brooks added a comment to D53801: rtld-elf and libsys: remove old forward-compat code for powerpc auxv renumbering.
In D53801#1229342, @kib wrote:

After thinking about this code some more, I realized that it probably should be removed altogether. Basically, it is there to allow to run newer binaries (rtld/libsys) on older (pre-AT_ renumbering) kernels. This was done in ~2019, and arguably outlived even the limited usefulness it had at the time of the commit.

Nov 19 2025, 9:39 AM

Nov 18 2025

brooks accepted D53756: setcred: Move initial copyin of struct setcred out to per-ABI syscall.
Nov 18 2025, 9:36 AM
brooks accepted D53755: MAC: Use the current thread's user ABI to determine the layout of struct mac.

Please add Effort: CHERI upstreaming to the commit message so we count this as part of that effort.

Nov 18 2025, 9:22 AM