Page MenuHomeFreeBSD

arichardson (Alexander Richardson)
User

Projects

User Details

User Since
Jan 17 2017, 2:21 PM (486 w, 19 h)

Recent Activity

Sat, May 9

arichardson added inline comments to D56495: p9fs: Refactor buffer allocations to avoid zeroing large payloads.
Sat, May 9, 8:54 PM

Thu, May 7

arichardson requested review of D56874: bsd.sys.mk: suppress some clang warnings for C++ for >= 19.
Thu, May 7, 6:47 PM
arichardson requested review of D56873: Fix building with LLVM_BINUTILS_BOOSTRAP but without CLANG_BOOTSTRAP.
Thu, May 7, 6:46 PM
arichardson added a comment to D56865: Fix cross installworld with MK_LLVM_BINUTILS_BOOTSTRAP=no.

But won’t we have built elftoolchain strip in that case?

Thu, May 7, 5:15 PM
arichardson updated the diff for D56495: p9fs: Refactor buffer allocations to avoid zeroing large payloads.

address feedback

Thu, May 7, 5:22 AM
arichardson requested review of D56865: Fix cross installworld with MK_LLVM_BINUTILS_BOOTSTRAP=no.
Thu, May 7, 5:05 AM
arichardson committed rG40d59ee35dc1: p9fs: Fix creating files with restrictive permissions (authored by arichardson).
p9fs: Fix creating files with restrictive permissions
Thu, May 7, 5:03 AM
arichardson committed rG96b2f4a91241: p9fs: implement basic pathconf support (authored by arichardson).
p9fs: implement basic pathconf support
Thu, May 7, 5:03 AM
arichardson committed rG1ed2ef42e017: p9fs: Move UMA zone initialization to VFS module lifecycle (authored by arichardson).
p9fs: Move UMA zone initialization to VFS module lifecycle
Thu, May 7, 5:03 AM
arichardson committed rG3fe5069ce2bf: virtio_p9fs: Fix kernel panic on module unload (authored by arichardson).
virtio_p9fs: Fix kernel panic on module unload
Thu, May 7, 5:03 AM
arichardson committed rG3daa43b1bb2c: sys: Make priority.h and rtprio.h include all dependencies (authored by arichardson).
sys: Make priority.h and rtprio.h include all dependencies
Thu, May 7, 5:03 AM
arichardson closed D56494: p9fs: Fix creating files with restrictive permissions.
Thu, May 7, 5:03 AM
arichardson closed D56493: p9fs: implement basic pathconf support.
Thu, May 7, 5:03 AM
arichardson closed D56492: p9fs: Move UMA zone initialization to VFS module lifecycle.
Thu, May 7, 5:03 AM
arichardson closed D56497: virtio_p9fs: Fix kernel panic on module unload.
Thu, May 7, 5:03 AM
arichardson closed D52041: sys: Make priority.h and rtprio.h include all dependencies.
Thu, May 7, 5:03 AM

Mon, May 4

arichardson added a comment to D56491: Add WITH_BOOTSTRAP_TOOLS_{ASAN,UBSAN}.

I tried applying this patch and building world on FreeBSD running recent main. I can see that MK_ASAN and MK_UBSAN are getting set properly, but if I trace process args during the bootstrap-tools phase, I can't see -fsanitize getting passed anywhere. Am I missing something?

Mon, May 4, 10:55 PM

Sun, Apr 19

arichardson added inline comments to D56493: p9fs: implement basic pathconf support.
Sun, Apr 19, 1:21 AM

Sat, Apr 18

arichardson requested review of D56497: virtio_p9fs: Fix kernel panic on module unload.
Sat, Apr 18, 6:00 AM
arichardson requested review of D56496: p9fs: Implement msize mount option and bump default to 128 KiB.
Sat, Apr 18, 5:59 AM
arichardson requested review of D56495: p9fs: Refactor buffer allocations to avoid zeroing large payloads.
Sat, Apr 18, 5:58 AM
arichardson requested review of D56494: p9fs: Fix creating files with restrictive permissions.
Sat, Apr 18, 5:58 AM
arichardson requested review of D56493: p9fs: implement basic pathconf support.
Sat, Apr 18, 5:56 AM
arichardson requested review of D56492: p9fs: Move UMA zone initialization to VFS module lifecycle.
Sat, Apr 18, 5:56 AM
arichardson requested review of D56491: Add WITH_BOOTSTRAP_TOOLS_{ASAN,UBSAN}.
Sat, Apr 18, 5:51 AM

Feb 20 2026

arichardson accepted D55161: __builtin_align_down: Cast value to __uintptr_t in the fallback.

Almost certainly an accidental omission

Feb 20 2026, 2:06 AM

Dec 16 2025

arichardson added reviewers for D52533: libcuse: silence -Wthread-safety-analysis warnings: jrtc27, emaste, jhb.
Dec 16 2025, 9:59 PM
arichardson abandoned D52526: cross-build: fix bootstrap with clang 19 on glibc systems.
Dec 16 2025, 9:55 PM
arichardson committed rG2ed21f90906b: netmap: silence -Wdefault-const-init-field-unsafe warning (authored by arichardson).
netmap: silence -Wdefault-const-init-field-unsafe warning
Dec 16 2025, 8:24 PM
arichardson committed rG86f325711c07: rtld: silence clang's unterminated-string-initialization warning (authored by arichardson).
rtld: silence clang's unterminated-string-initialization warning
Dec 16 2025, 8:24 PM
arichardson committed rG79f578531f21: libfetch: Fix -Wunterminated-string-initialization (authored by arichardson).
libfetch: Fix -Wunterminated-string-initialization
Dec 16 2025, 8:23 PM
arichardson committed rG4cfc7de13f11: libthr: fix -Wunterminated-string-initialization (authored by arichardson).
libthr: fix -Wunterminated-string-initialization
Dec 16 2025, 8:23 PM
arichardson closed D52568: netmap: silence -Wdefault-const-init-field-unsafe warning.
Dec 16 2025, 8:23 PM
arichardson committed rG802c6d5d61d1: cdefs.h: Introduce __nonstring attribute (authored by arichardson).
cdefs.h: Introduce __nonstring attribute
Dec 16 2025, 8:23 PM
arichardson closed D52535: rtld: silence clang's unterminated-string-initialization warning.
Dec 16 2025, 8:23 PM
arichardson closed D52532: libfetch: Fix -Wunterminated-string-initialization.
Dec 16 2025, 8:23 PM
arichardson closed D52528: libthr: fix -Wunterminated-string-initialization.
Dec 16 2025, 8:23 PM
arichardson closed D52565: cdefs.h: Introduce __nonstring attribute.
Dec 16 2025, 8:23 PM
arichardson abandoned D52563: bmake: Fix -Wunterminated-string-initialization.

No longer needed

Dec 16 2025, 6:11 PM
arichardson added a comment to D52041: sys: Make priority.h and rtprio.h include all dependencies.

ping?

Dec 16 2025, 6:01 PM

Nov 17 2025

arichardson added a comment to D52526: cross-build: fix bootstrap with clang 19 on glibc systems.

I forgot about this revision and ended up reinventing it in 4dd2b869cd078ed6f40c42d1ef429222da16a58f and 34e7a57673c9730ee5d1f7ebb07e152567bd8e0b so it should be fixed in-tree. I did however retain the knowledge about Clang's bugginess wrt __gnu_linux__ (and wondered where I'd got that from...) so did not use it myself... I did also check musl matched us rather than glibc.

Thanks for committing this. Do we still need the && defined(__USE_GNU)? Technically it's needed but I guess this file is only every compiled with -D_GNU_SOURCE so probably doesn't matter?

Yeah I don't think this is the first place we assume _GNU_SOURCE is in use (and I doubt it builds without), and I'd rather not poke at internal defines if at all possible (i.e. only add it if we ever end up in a case where we get the non-GNU prototype with glibc).

Nov 17 2025, 5:44 PM
arichardson added a comment to D52526: cross-build: fix bootstrap with clang 19 on glibc systems.

I forgot about this revision and ended up reinventing it in 4dd2b869cd078ed6f40c42d1ef429222da16a58f and 34e7a57673c9730ee5d1f7ebb07e152567bd8e0b so it should be fixed in-tree. I did however retain the knowledge about Clang's bugginess wrt __gnu_linux__ (and wondered where I'd got that from...) so did not use it myself... I did also check musl matched us rather than glibc.

Nov 17 2025, 5:22 PM

Oct 13 2025

arichardson added reviewers for D52526: cross-build: fix bootstrap with clang 19 on glibc systems: jhb, markj.
Oct 13 2025, 3:14 PM

Sep 17 2025

arichardson updated the summary of D52528: libthr: fix -Wunterminated-string-initialization.
Sep 17 2025, 7:39 AM
arichardson added a comment to D52528: libthr: fix -Wunterminated-string-initialization.

commit message disagrees with __nonstring?

Sep 17 2025, 7:38 AM
arichardson added a comment to D52563: bmake: Fix -Wunterminated-string-initialization.
In D52563#1200450, @sjg wrote:

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;
 
        uint32_t h = 0x971e137bU;
Sep 17 2025, 7:35 AM

Sep 16 2025

arichardson requested review of D52568: netmap: silence -Wdefault-const-init-field-unsafe warning.
Sep 16 2025, 5:32 AM
arichardson added a comment to D52526: cross-build: fix bootstrap with clang 19 on glibc systems.

Okay it looks like musl does not have the weird char* strerror_r: https://git.musl-libc.org/cgit/musl/tree/include/string.h#n66, so it will need to be conditional on glibc.

Sep 16 2025, 12:27 AM
arichardson added inline comments to D52526: cross-build: fix bootstrap with clang 19 on glibc systems.
Sep 16 2025, 12:26 AM
arichardson added inline comments to D52543: if_ovpn.c: fix use of uninitialized variable.
Sep 16 2025, 12:22 AM
arichardson added inline comments to D52543: if_ovpn.c: fix use of uninitialized variable.
Sep 16 2025, 12:00 AM

Sep 15 2025

arichardson updated the diff for D52532: libfetch: Fix -Wunterminated-string-initialization.

rebase

Sep 15 2025, 11:33 PM
arichardson updated the diff for D52528: libthr: fix -Wunterminated-string-initialization.

rebase

Sep 15 2025, 11:33 PM
arichardson updated the diff for D52535: rtld: silence clang's unterminated-string-initialization warning.

rebase

Sep 15 2025, 11:33 PM
arichardson requested review of D52565: cdefs.h: Introduce __nonstring attribute.
Sep 15 2025, 11:24 PM
arichardson updated the diff for D52535: rtld: silence clang's unterminated-string-initialization warning.

rebase

Sep 15 2025, 11:20 PM
arichardson committed rG34a006eaa39c: libc++: silence -Wnontrivial-memaccess warning with newer clang (authored by arichardson).
libc++: silence -Wnontrivial-memaccess warning with newer clang
Sep 15 2025, 10:36 PM
arichardson committed rG086ce467adec: libc++: Fix deprecation warnings with latest clang (authored by arichardson).
libc++: Fix deprecation warnings with latest clang
Sep 15 2025, 10:36 PM
arichardson committed rGdee76cf2f3da: libc++: avoid use of deprecated __reference_binds_to_temporary (authored by arichardson).
libc++: avoid use of deprecated __reference_binds_to_temporary
Sep 15 2025, 10:36 PM
arichardson committed rGd61c75f634cf: libc++: avoid use of deprecated builtin (authored by arichardson).
libc++: avoid use of deprecated builtin
Sep 15 2025, 10:36 PM
arichardson closed D52534: libc++: silence -Wnontrivial-memaccess warning with newer clang.
Sep 15 2025, 10:36 PM
arichardson closed D52531: libc++: Fix deprecation warnings with latest clang.
Sep 15 2025, 10:35 PM
arichardson closed D52530: libc++: avoid use of deprecated __reference_binds_to_temporary.
Sep 15 2025, 10:35 PM
arichardson closed D52529: libc++: avoid use of deprecated builtin.
Sep 15 2025, 10:35 PM
arichardson requested review of D52563: bmake: Fix -Wunterminated-string-initialization.
Sep 15 2025, 10:23 PM
arichardson added a comment to D52531: libc++: Fix deprecation warnings with latest clang.

Note: This patch should be a separate commit and not merged.
For testing purposes they are combined.

This seems confusing in the commit message

Sep 15 2025, 10:13 PM
arichardson committed rG969be39fb3ca: if_ovpn.c: fix use of uninitialized variable (authored by arichardson).
if_ovpn.c: fix use of uninitialized variable
Sep 15 2025, 10:10 PM
arichardson committed rG90234b9dd8cb: riscv: Provide prototypes for fpgetmask/fpsetmask (authored by arichardson).
riscv: Provide prototypes for fpgetmask/fpsetmask
Sep 15 2025, 10:10 PM
arichardson closed D52543: if_ovpn.c: fix use of uninitialized variable.
Sep 15 2025, 10:10 PM
arichardson closed D52035: riscv: Provide prototypes for fpgetmask/fpsetmask.
Sep 15 2025, 10:10 PM
arichardson added inline comments to D52530: libc++: avoid use of deprecated __reference_binds_to_temporary.
Sep 15 2025, 7:10 PM
arichardson updated the diff for D52528: libthr: fix -Wunterminated-string-initialization.

silence warning instead

Sep 15 2025, 6:38 AM
arichardson requested review of D52543: if_ovpn.c: fix use of uninitialized variable.
Sep 15 2025, 4:31 AM

Sep 14 2025

arichardson requested review of D52535: rtld: silence clang's unterminated-string-initialization warning.
Sep 14 2025, 11:21 PM
arichardson requested review of D52534: libc++: silence -Wnontrivial-memaccess warning with newer clang.
Sep 14 2025, 11:10 PM
arichardson requested review of D52533: libcuse: silence -Wthread-safety-analysis warnings.
Sep 14 2025, 11:03 PM
arichardson requested review of D52532: libfetch: Fix -Wunterminated-string-initialization.
Sep 14 2025, 10:56 PM
arichardson requested review of D52531: libc++: Fix deprecation warnings with latest clang.
Sep 14 2025, 10:54 PM
arichardson requested review of D52530: libc++: avoid use of deprecated __reference_binds_to_temporary.
Sep 14 2025, 10:45 PM
arichardson requested review of D52529: libc++: avoid use of deprecated builtin.
Sep 14 2025, 10:37 PM
arichardson requested review of D52528: libthr: fix -Wunterminated-string-initialization.
Sep 14 2025, 10:28 PM
arichardson requested review of D52526: cross-build: fix bootstrap with clang 19 on glibc systems.
Sep 14 2025, 9:09 PM
arichardson updated the diff for D52041: sys: Make priority.h and rtprio.h include all dependencies.

avoid sys/types.h includes, and update test list

Sep 14 2025, 7:50 PM

Aug 20 2025

arichardson added a comment to D52041: sys: Make priority.h and rtprio.h include all dependencies.
In D52041#1188826, @imp wrote:

Do you need sys/types.h, or sys/_types.h? The latter has less namespace pollution...

And if these are on the excluded list for check headers for buildworld, please remove them.

Aug 20 2025, 8:45 PM
arichardson added a comment to D52041: sys: Make priority.h and rtprio.h include all dependencies.
In D52041#1188826, @imp wrote:

Do you need sys/types.h, or sys/_types.h? The latter has less namespace pollution...

And if these are on the excluded list for check headers for buildworld, please remove them.

Aug 20 2025, 8:41 PM
arichardson requested review of D52041: sys: Make priority.h and rtprio.h include all dependencies.
Aug 20 2025, 4:28 AM
arichardson added a reviewer for D52035: riscv: Provide prototypes for fpgetmask/fpsetmask: riscv.
Aug 20 2025, 12:26 AM
arichardson requested review of D52035: riscv: Provide prototypes for fpgetmask/fpsetmask.
Aug 20 2025, 12:26 AM

Aug 5 2025

arichardson accepted D51653: cross-build make.py: Handle lld brew packages on macOS.
Aug 5 2025, 11:13 PM

Aug 4 2025

arichardson accepted D51653: cross-build make.py: Handle lld brew packages on macOS.

This looks sensible to me. One suggestion would be to avoid the manual caching.

Aug 4 2025, 8:12 PM

Aug 26 2024

arichardson committed rG04262ed78d23: rtld-elf: Add CFI annotation for .rtld_start on RISC-V (authored by arichardson).
rtld-elf: Add CFI annotation for .rtld_start on RISC-V
Aug 26 2024, 4:54 AM
arichardson closed D46406: rtld-elf: Add CFI annotation for .rtld_start on RISC-V.
Aug 26 2024, 4:53 AM

Aug 23 2024

arichardson added inline comments to D46404: lib/csu/riscv: Remove separate assembly startup file.
Aug 23 2024, 9:59 PM
arichardson abandoned D39916: mi_startup: sort sysinit array using qsort instead of bubble sort.
Aug 23 2024, 9:57 PM

Aug 22 2024

arichardson added inline comments to D46400: [RISC-V] Set ra to zero when calling into userspace.
Aug 22 2024, 5:54 PM
arichardson added inline comments to D46400: [RISC-V] Set ra to zero when calling into userspace.
Aug 22 2024, 5:50 PM
arichardson added a comment to D46403: Introduce vfcntl(), a va_list variant of fcntl().
In D46403#1057654, @kib wrote:
In D46403#1057619, @kib wrote:

Could it be simplified by providing an fcntl variant that takes the third arg unconditionally, instead?

I would also be happy with that approach, just assumed this variant would be more flexible. Would the unconditional one look like this: fcntl2(int, int, __intptr_t)?

The actual syscall takes three args unconditionally, so there is no point in adding more complications IMO. By existing conventions, the function perhaps should be called fcntl3.

Actually, I just remembered this would not help with the interposing of fcntl since the interposer would still need to extract the variadic argument.

Well, fcntl would call fcntl3, and you can then interpose the latter, just as with vfcntl.

Aug 22 2024, 5:38 PM
arichardson added a comment to D46403: Introduce vfcntl(), a va_list variant of fcntl().
In D46403#1057654, @kib wrote:
In D46403#1057619, @kib wrote:

Could it be simplified by providing an fcntl variant that takes the third arg unconditionally, instead?

I would also be happy with that approach, just assumed this variant would be more flexible. Would the unconditional one look like this: fcntl2(int, int, __intptr_t)?

The actual syscall takes three args unconditionally, so there is no point in adding more complications IMO. By existing conventions, the function perhaps should be called fcntl3.

Aug 22 2024, 5:48 AM

Aug 21 2024

arichardson updated the diff for D46404: lib/csu/riscv: Remove separate assembly startup file.

review comments

Aug 21 2024, 11:17 PM
arichardson added inline comments to D46404: lib/csu/riscv: Remove separate assembly startup file.
Aug 21 2024, 11:16 PM