Page MenuHomeFreeBSD

rlibby (Ryan Libby)
User

Projects (1)

User Details

User Since
Nov 12 2015, 8:14 PM (577 w, 2 d)

Recent Activity

Yesterday

rlibby added a comment to D62378: conf: Stop running ctfconvert on certain files.
In D62378#1431286, @mp wrote:

The only gcc14 CI builds are amd64 (main, 15, 14). Still would be good to see if arm64 could be fixed but there isn't a constant CI build to catch regressions.

Sat, Dec 5, 5:00 PM
rlibby requested review of D62471: Makefile.inc1: use symlinks to host tools unless updating host.
Sat, Dec 5, 5:19 AM
rlibby added a reverting change for rGc84bb8cd771c: rmlock: Micro-optimize read locking: rG1875480cd3ff: rmlock: Micro-optimize read locking.
Sat, Dec 5, 5:11 AM
rlibby committed rGb50c2ed425e8: rmlock: remove unused pcpu pointer load in rm_runlock.
Sat, Dec 5, 5:11 AM
rlibby committed rG1875480cd3ff: rmlock: Micro-optimize read locking.
Sat, Dec 5, 5:11 AM
rlibby closed D61836: rmlock: Micro-optimize read locking.
Sat, Dec 5, 5:11 AM
rlibby closed D61837: rmlock: remove unused pcpu pointer load in rm_runlock.
Sat, Dec 5, 5:11 AM
rlibby added a reverting change for D34377: rmlock: Micro-optimize read locking: rG1875480cd3ff: rmlock: Micro-optimize read locking.
Sat, Dec 5, 5:11 AM
rlibby accepted D62378: conf: Stop running ctfconvert on certain files.

Overall, this looks good.

Sat, Dec 5, 4:33 AM

Fri, Dec 4

rlibby added a comment to D62378: conf: Stop running ctfconvert on certain files.
In D62378#1429681, @mp wrote:

My main motivation for the ctfconvert patches was to get the GCC build running again and your approach works for me.

Fri, Dec 4, 1:10 AM

Thu, Dec 3

rlibby added a comment to D62378: conf: Stop running ctfconvert on certain files.

Would we lose something with respect to being able to dtrace assembly functions with this approach? Again, apologies, I'm not actually very familiar with ctf.

Thu, Dec 3, 5:10 PM
rlibby requested review of D62346: vte: remove a missed mlink.
Thu, Dec 3, 8:23 AM

Tue, Dec 1

rlibby committed R9:767d0636e850: pgpkeys: update key expiry for rlibby@.
Tue, Dec 1, 10:52 PM
rlibby added a comment to D62244: ctfconvert: Treat objects without a symbol table as having no type data.

My claude had a more than cosmetic difference on this one. It did dynsym ? ".dynsym" : ".symtab" to choose the section to look up (I have no idea if that's correct). It also did it in file_read and so skipped the logic later in file_read about ".debug" and SOURCE_C.

Tue, Dec 1, 6:03 AM
rlibby added a comment to D62243: ctfconvert: Describe floating-point types CTF cannot encode as integers.

My claude did essentially the same thing here, but spelled a little differently. I do think leaving a warning in die_base_type2enc or die_base_from_dwarf seems appropriate. Also, I didn't check that 0 was actually an appropriate reserved value and I'm having trouble locating where these values are defined.

Tue, Dec 1, 5:51 AM
rlibby added a comment to D62242: ctfconvert: Ignore DWARF from assembly sources.

These patches are similar but slightly different from what I POC'd with my claude. Here is that patch for your reference:
https://github.com/rlibby/freebsd/commit/144062e836630fddc8b3f11765362b3323269fa0

Tue, Dec 1, 5:38 AM

Fri, Nov 20

rlibby added a reviewer for D61836: rmlock: Micro-optimize read locking: jah.
Fri, Nov 20, 7:26 PM
rlibby added a reviewer for D61837: rmlock: remove unused pcpu pointer load in rm_runlock: jah.
Fri, Nov 20, 7:26 PM
rlibby updated the summary of D61836: rmlock: Micro-optimize read locking.
Fri, Nov 20, 7:23 PM
rlibby added a reverting change for rGc84bb8cd771c: rmlock: Micro-optimize read locking: D61836: rmlock: Micro-optimize read locking.
Fri, Nov 20, 7:13 PM
rlibby requested review of D61837: rmlock: remove unused pcpu pointer load in rm_runlock.
Fri, Nov 20, 7:13 PM
rlibby requested review of D61836: rmlock: Micro-optimize read locking.
Fri, Nov 20, 7:13 PM
rlibby added a reverting change for D34377: rmlock: Micro-optimize read locking: D61836: rmlock: Micro-optimize read locking.
Fri, Nov 20, 7:13 PM

Thu, Nov 19

rlibby closed D61730: pause fail point: affirm sleeping without a lock.
Thu, Nov 19, 4:25 PM
rlibby committed rG670bad029bb9: pause fail point: affirm sleeping without a lock.
Thu, Nov 19, 4:25 PM

Wed, Nov 18

rlibby updated the test plan for D61730: pause fail point: affirm sleeping without a lock.
Wed, Nov 18, 10:47 PM
rlibby requested review of D61730: pause fail point: affirm sleeping without a lock.
Wed, Nov 18, 10:39 PM

Mon, Nov 9

rlibby committed rGcbd7e7fa5327: stand: ufs directory corruption sanity checks.
Mon, Nov 9, 5:54 PM
rlibby committed rG897d3ae91345: stand: check for short reads in ufs.
Mon, Nov 9, 5:54 PM
rlibby closed D59378: stand: ufs directory corruption sanity checks.
Mon, Nov 9, 5:54 PM
rlibby closed D59379: stand: check for short reads in ufs.
Mon, Nov 9, 5:54 PM

Sep 29 2026

rlibby updated the diff for D59378: stand: ufs directory corruption sanity checks.

imp: rely on stand.h for string.h and strings.h

Sep 29 2026, 4:16 PM
rlibby added reviewers for D59378: stand: ufs directory corruption sanity checks: jhb, imp.
Sep 29 2026, 1:30 AM
rlibby added a comment to D59379: stand: check for short reads in ufs.

Yes, I think a read that spanned the end of the device, either truncated image or via a corrupt disk address. And, yes, I think this one is more theoretical.

Sep 29 2026, 1:30 AM

Sep 6 2026

rlibby committed rG2e33355ee2bf: pmc: avoid illegal flexible array member.
Sep 6 2026, 1:26 AM
rlibby committed rG3581b6db62b1: find.1: fix rendering of find -s example.
Sep 6 2026, 1:26 AM
rlibby closed D59353: find.1: fix rendering of find -s example.
Sep 6 2026, 1:26 AM
rlibby closed D59355: pmc: avoid illegal flexible array member.
Sep 6 2026, 1:26 AM · pmc

Sep 5 2026

rlibby updated the summary of D59355: pmc: avoid illegal flexible array member.
Sep 5 2026, 10:52 PM · pmc

Sep 4 2026

rlibby added a comment to D59355: pmc: avoid illegal flexible array member.

Yes it’s non-standard but we already depend on a number of gnu extensions in our code. I think is just an error with the build flags, if you just set the length to 0 or 1 and it’s also accepted by gcc.

Sep 4 2026, 11:03 PM · pmc
rlibby added a comment to D59380: install: amortize metalog locking/flushing with a memory buffer.
In D59380#1362825, @des wrote:

It will be significantly faster without locking.

Sep 4 2026, 9:19 PM
rlibby added a comment to D59380: install: amortize metalog locking/flushing with a memory buffer.
In D59380#1362615, @des wrote:

My understanding of what is making my use case slow (metalog on nfs) is that releasing the advisory lock results in a flush and nfs commit. This patch tries to reduce that by at least reducing the advisory lock acquire/release to once per install invocation (which admittedly only helps for the minority of cases where the install command line has multiple files). That is, I'm not exactly trying to reduce the stdio flushes, I'm trying to reduce the nfs commits. I don't think changing stdio buffering by itself would change this at all (and note the location of the fflush(), under the advisory lock). Getting rid of the advisory locks would probably make this much faster, regardless of stdio buffering, but I think that would break parallel install using the same metalog.

I glossed over the diff, I didn't realize the metalog was locked. That shouldn't be necessary as long as it's opened in append mode and line-buffered. I would suggest running some tests with just the locking and flushes removed and setvbuf(metafp, NULL, _IOLBF, 0) added.

@brd do you have an opinion on this?

Sep 4 2026, 5:34 PM
rlibby added a comment to D59380: install: amortize metalog locking/flushing with a memory buffer.
In D59380#1362364, @des wrote:

I wonder if we could achieve the same goal more cleanly by adding a multi-line buffering mode to stdio. Call it _IOMBF and make it work like fully buffered, except that when the buffer is full we only flush up to the last newline in the buffer, and keep the leftovers. That probably means the last line is lost on close if not terminated, but that's fine if we document it.

Sep 4 2026, 3:33 PM
rlibby updated the diff for D59353: find.1: fix rendering of find -s example.

ziaee feedback: use a zero-width space to keep the linter happy

Sep 4 2026, 2:59 PM
rlibby accepted D59381: buf: Avoid calling bufdomain() on newly initialized bufs.

Looks good.

Sep 4 2026, 6:00 AM
rlibby accepted D59346: contrib/kyua: fix -Wshadow error.
Sep 4 2026, 5:41 AM
rlibby abandoned D59354: kyua: un-shadow handle variable to fix gcc build.

A fix was submitted for this already: https://reviews.freebsd.org/D59346 .

Sep 4 2026, 5:41 AM

Sep 3 2026

rlibby added reviewers for D59380: install: amortize metalog locking/flushing with a memory buffer: emaste, des, brooks.
Sep 3 2026, 11:47 PM
rlibby requested review of D59380: install: amortize metalog locking/flushing with a memory buffer.
Sep 3 2026, 11:46 PM
rlibby added reviewers for D59379: stand: check for short reads in ufs: mckusick, jhb.
Sep 3 2026, 11:35 PM
rlibby added a reviewer for D59378: stand: ufs directory corruption sanity checks: mckusick.
Sep 3 2026, 11:34 PM
rlibby requested review of D59379: stand: check for short reads in ufs.
Sep 3 2026, 11:32 PM
rlibby requested review of D59378: stand: ufs directory corruption sanity checks.
Sep 3 2026, 11:32 PM
rlibby added a reviewer for D59355: pmc: avoid illegal flexible array member: adrian.
Sep 3 2026, 8:00 PM · pmc
rlibby requested review of D59355: pmc: avoid illegal flexible array member.
Sep 3 2026, 8:00 PM · pmc
rlibby added reviewers for D59354: kyua: un-shadow handle variable to fix gcc build: igoro, ngie.
Sep 3 2026, 7:56 PM
rlibby requested review of D59354: kyua: un-shadow handle variable to fix gcc build.
Sep 3 2026, 7:54 PM
rlibby updated the test plan for D59353: find.1: fix rendering of find -s example.
Sep 3 2026, 7:53 PM
rlibby updated the test plan for D59353: find.1: fix rendering of find -s example.
Sep 3 2026, 7:51 PM
rlibby requested review of D59353: find.1: fix rendering of find -s example.
Sep 3 2026, 7:48 PM

Jul 31 2026

rlibby accepted D58574: uma: Fix KMSAN integration with malloc zones.

Oops, I missed that too.

Jul 31 2026, 3:36 PM
rlibby accepted D58272: malloc: Refactor redzone and KASAN handling.

Looks good.

Jul 31 2026, 2:05 AM
rlibby accepted D58271: uma: Insert KASAN redzones after slab-allocated items.
Jul 31 2026, 1:52 AM

Jul 23 2026

rlibby committed rG3f521425afcb: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.
Jul 23 2026, 5:44 PM
rlibby closed D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.
Jul 23 2026, 5:43 PM

Jul 20 2026

rlibby accepted D58272: malloc: Refactor redzone and KASAN handling.
Jul 20 2026, 9:53 PM
rlibby added a comment to D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.

Fine, though please note I have a lot of rework of hwpstate_intel(4) incoming, in particular dropping this hybrid core detection code, so if you plan more/significant work in this area please liaise with me.

Jul 20 2026, 8:42 PM

Jul 19 2026

rlibby updated the diff for D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.

Refresh after conflict resolution for 02c440e20404 ("hwpstate_intel: Minimize ifdef for i386 build")

Jul 19 2026, 8:10 PM
rlibby committed rG29d15d658d17: i386: provide PCPU pc_small_core for amd64 compat.
Jul 19 2026, 8:08 PM
rlibby closed D58335: i386: provide PCPU pc_small_core for amd64 compat.
Jul 19 2026, 8:08 PM
rlibby accepted D58301: apei: Fix i386 build.

Comparing to sys/x86/include/bus.h and sys/dev/ntb/ntb_hw/ntb_hw_*.c, they just call the bus_space_tag_t parameter tag, and sys/x86/include/bus.h calls the bus_space_handle_t parameter bsh while ntb calls it handle. I think you could simplify those names. A verbatim copy of ntb's definitions would seem fine.

Jul 19 2026, 7:44 PM
rlibby abandoned D58318: acpi: fix i386 build for bus_read_8 and bus_write_8.

D58301 seems a better alternative to this?

Jul 19 2026, 4:41 PM
rlibby updated the test plan for D58318: acpi: fix i386 build for bus_read_8 and bus_write_8.
Jul 19 2026, 4:07 PM
rlibby retitled D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI from hwpstate_intel(4): use memorized hybrid_small_cores instead of an IPI
Jul 19 2026, 3:40 PM
rlibby retitled D58335: i386: provide PCPU pc_small_core for amd64 compat from x86: memorize the existence of hybrid small cores
Jul 19 2026, 3:39 PM
rlibby updated the diff for D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.

kib feedback and earlier olce comment: CPU_FOREACH

Jul 19 2026, 3:37 PM
rlibby updated the diff for D58335: i386: provide PCPU pc_small_core for amd64 compat.

kib feedback from D58336: just provide pc_small_core on i386

Jul 19 2026, 3:35 PM
rlibby added inline comments to D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.
Jul 19 2026, 3:09 PM
rlibby updated the summary of D58335: i386: provide PCPU pc_small_core for amd64 compat.
Jul 19 2026, 3:52 AM
rlibby updated the test plan for D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.
Jul 19 2026, 3:52 AM
rlibby requested review of D58336: hwpstate_intel(4): use CPU_FOREACH instead of an IPI.
Jul 19 2026, 3:44 AM
rlibby requested review of D58335: i386: provide PCPU pc_small_core for amd64 compat.
Jul 19 2026, 3:44 AM
rlibby added a comment to D58332: i386: supply thermal interrupt handler.

Thank you very much for creating this.
I failed to notice the missing handler for i386 when I made my initial proposal. I apologize for that.

Jul 19 2026, 3:35 AM
rlibby committed rGcb325dcedfa2: i386: supply thermal interrupt handler.
Jul 19 2026, 3:30 AM
rlibby closed D58332: i386: supply thermal interrupt handler.
Jul 19 2026, 3:30 AM

Jul 18 2026

rlibby updated the test plan for D58332: i386: supply thermal interrupt handler.
Jul 18 2026, 11:58 PM
rlibby requested review of D58332: i386: supply thermal interrupt handler.
Jul 18 2026, 11:56 PM
rlibby updated the test plan for D58318: acpi: fix i386 build for bus_read_8 and bus_write_8.
Jul 18 2026, 3:11 AM
rlibby requested review of D58318: acpi: fix i386 build for bus_read_8 and bus_write_8.
Jul 18 2026, 3:08 AM

Jul 17 2026

rlibby added a comment to D58316: malloc: Fix domainset usage in malloc_domainset() for large allocs.

Maybe one day we should plumb it for malloc_dbg / memguard_alloc too.

Do you use memguard at all? I haven't needed to reach for it since KASAN was added.

Jul 17 2026, 9:39 PM
rlibby accepted D58316: malloc: Fix domainset usage in malloc_domainset() for large allocs.

Maybe one day we should plumb it for malloc_dbg / memguard_alloc too.

Jul 17 2026, 9:22 PM
rlibby added inline comments to D58272: malloc: Refactor redzone and KASAN handling.
Jul 17 2026, 8:33 PM
rlibby accepted D58312: uma: Enqueue full buckets in FIFO order when KASAN is configured.
Jul 17 2026, 7:21 PM
rlibby added a comment to D58271: uma: Insert KASAN redzones after slab-allocated items.

I also wonder if we should have an option to add this redzone without KASAN. We could come up with a cheap-ish debugging feature to verify the redzone with uma_junk when we don't have KASAN. Not asking for that in this patch.

Jul 17 2026, 7:16 PM
rlibby added a comment to D58271: uma: Insert KASAN redzones after slab-allocated items.

Add an assertion to item_ctor() that the returned item is properly
aligned. I couldn't see any pre-existing checks which verify this.

Jul 17 2026, 7:11 PM
rlibby accepted D58270: uma: Avoid allocating from free buckets when KASAN is enabled.

The other thing that SMR does in this respect is it puts free buckets at the tail of uzd_buckets in zone_put_bucket. Did you think about whether you want that for KASAN also, to extend the length of time before reuse further?

Jul 17 2026, 4:48 PM
rlibby accepted D58269: uma: Make an effort to defer reuse of items when KASAN is enabled.

Looks good.

Jul 17 2026, 4:19 PM
rlibby accepted D58268: uma: Factor out the implementations of uma_zfree_{arg,smr}().

Looks good.

Jul 17 2026, 4:07 PM

Jul 16 2026

rlibby added a comment to D58269: uma: Make an effort to defer reuse of items when KASAN is enabled.

Looks fine modulo the uz_flags comment and style and history nits.

Jul 16 2026, 7:26 PM
rlibby added a comment to D58268: uma: Factor out the implementations of uma_zfree_{arg,smr}().

BTW git arc can fetch patches from phabricator and apply them to a local tree, though of course that can fail, e.g., if the patch in phabricator needs a rebase. The following invocation will fetch and apply all of the patches in this series:

$ git arc patch -c -s -r D58272

Kind of cumbersome versus fetching a git branch, but hey...

Jul 16 2026, 6:31 PM