Page MenuHomeFreeBSD

jrtc27 (Jessica Clarke)
User

Projects (5)

User Details

User Since
Jul 4 2018, 7:23 PM (439 w, 8 h)

Recent Activity

Yesterday

jrtc27 added inline comments to D62121: Switch to using kvmclock timecounter on GCE VMs.
Wed, Dec 2, 7:43 PM

Tue, Dec 1

jrtc27 committed rG53219044ae41: libsys: Reformat lines moved from libc_private.h in previous commit.
Tue, Dec 1, 12:53 AM
jrtc27 closed D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.
Tue, Dec 1, 12:53 AM
jrtc27 committed rG832f45ff8891: libsys: Split out a new libsys_private.h from libc's libc_private.h.
Tue, Dec 1, 12:53 AM

Mon, Nov 30

jrtc27 added a comment to D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.

Thanks to the large copyright header that matches, Phabricator infers a copy action that isn't what actually happened and renders this in a confusing way, but it does at least show the header is identical to interposing_table.c's...

Mon, Nov 30, 11:53 PM
jrtc27 updated the summary of D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.
Mon, Nov 30, 11:50 PM
jrtc27 updated the diff for D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.

Update copyright header to be a copy of those added in 8495e8b1e9e13fb707296a486acf7538dbfa12b2

Mon, Nov 30, 11:50 PM
jrtc27 added inline comments to D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.
Mon, Nov 30, 11:34 PM
jrtc27 updated the summary of D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.
Mon, Nov 30, 11:00 PM
jrtc27 updated the diff for D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.

Rebased and dropped remaining libc_private.h include

Mon, Nov 30, 11:00 PM
jrtc27 added inline comments to D61877: make_device_driver.sh: Use current arch for custom kernel config.
Mon, Nov 30, 4:12 PM

Sun, Nov 29

jrtc27 added inline comments to D62171: bsdinstall(8): add desktop script.
Sun, Nov 29, 2:46 PM
jrtc27 added inline comments to D61087: arm64: detect the GIC version from GICD_PIDR2 when the MADT omits it.
Sun, Nov 29, 12:41 AM

Sat, Nov 28

jrtc27 added inline comments to D62171: bsdinstall(8): add desktop script.
Sat, Nov 28, 6:36 PM
jrtc27 accepted D62131: Make libsys self-contained.

To avoid bringing in libc implementation that fetches more that is
acceptable for libsys.

Sat, Nov 28, 12:02 AM

Fri, Nov 27

jrtc27 added a comment to D62131: Make libsys self-contained.

Thank you; I'll give this a proper look through later tonight

Fri, Nov 27, 9:14 PM
jrtc27 added a comment to D62131: Make libsys self-contained.
In D62131#1424125, @kib wrote:

I don't think I understand what's wrong with the plain C versions of the string functions in libc?

I do not want to recreate the libc compilation environment, in particular, to handle set of preprocessor symbols needed for e.g. memcpy etc to actually provide memcpy. It is simpler to make libsys self-contained and not add a dependency.

Fri, Nov 27, 6:57 PM
jrtc27 added a comment to D62131: Make libsys self-contained.

Otherwise this looks ok, thanks for taking this up. I'll defer landing my libsys_private.h patch until after this series (and drop the remaining use of libc_private.h in it).

Fri, Nov 27, 5:33 PM
jrtc27 added a comment to D62131: Make libsys self-contained.

I don't think I understand what's wrong with the plain C versions of the string functions in libc?

Fri, Nov 27, 5:26 PM
jrtc27 added a comment to D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.

Hm. I suspect that’s amd64-specific due to the archlevels.c or whatever it is. I’ve not seen strlen show up on arm64 at least.

Fri, Nov 27, 2:09 AM

Thu, Nov 26

jrtc27 added a comment to D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.
In D62032#1421451, @kib wrote:
In D62032#1421438, @kib wrote:

Perhaps a test would be useful, which links with libsys only, no libc, and starts with LD_BIND_NOW=1?

I'm assuming that doesn't actually work though, given our __libc_start1 ABI? Which is a bit of a shame... refactoring that is probably messy and not worth it?

The goal of the test is to check that there is no leaked linkage requirements, which means that the test binary does not need to do anything useful. Then it can avoid using csu at all.

Thu, Nov 26, 10:50 PM

Wed, Nov 25

jrtc27 requested changes to D61736: riscv: vmm: deliver illegal instruction traps into the guest.
Wed, Nov 25, 7:06 PM
jrtc27 added a comment to D61736: riscv: vmm: deliver illegal instruction traps into the guest.

This precludes the ability for userspace to emulate any instructions. It should be left as a VM exit, and the userspace process can inject it into the guest if it decides not to handle it. See arm64's EXCP_UNKNOWN -> VM_EXITCODE_HYP -> vm_inject_exception.

Wed, Nov 25, 7:05 PM
jrtc27 added a comment to D62050: bsdinstall: Fix and optimize checksum validation awk.

If your threat model is "your root filesystem is malicious" then how does that map to "run bsdinstall from root filesystem with sh from root filesystem and all the system tools from root filesystem" not itself being also broken? This does not sound like a coherent threat model to me.

Wed, Nov 25, 4:30 PM
jrtc27 added a comment to D62050: bsdinstall: Fix and optimize checksum validation awk.

But yes, that one line of this diff is the only one that one might be able to argue could have some tangible functional benefit beyond churn. The rest is just churn and, in some cases, golfing.

Wed, Nov 25, 4:16 PM
jrtc27 added a comment to D62050: bsdinstall: Fix and optimize checksum validation awk.

This whole diff is pointless churn.

You're clearly mistaken as there is a material difference between -v var=$value and -v var="$value" wherein the latter is hardened against IFS word splitting in the event $value contains $IFS which would alter both the number and contents of positional arguments to awk(1). The lack of comments surrounding the processing of awk's return status also make the code harder to read. The unnecessary nested if's around the processing of awk's return status have not-only readability issues but impact performance. The necessary ignoring of awk's conditions { ... } status also have performance implications. The lack of whitespace between running awk and reaping its return status may also look to you like a simple moving of single line of whitespace but has idiomatic importance to ensure that nothing is injected between those to lines that could alter the value of $?.

It's your choice if you would like to have your objection noted in the commit message, but you're objecting against substantive changes, not just "churn" as you call it.

Wed, Nov 25, 4:15 PM
jrtc27 requested changes to D62050: bsdinstall: Fix and optimize checksum validation awk.

This whole diff is pointless churn.

Wed, Nov 25, 3:29 PM
jrtc27 added a comment to D62049: bsdinstall: Fix checksum incorrect percentages.

Diff is fine. Commit message is a lot of words for something very simple. And the last paragraph is misleading to me; it sounds like you're changing the code to not render the 100%, but that's already the case, and not really relevant beyond maybe a one sentence observation about the existing code.

Wed, Nov 25, 3:27 PM
jrtc27 added a comment to D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.
In D62032#1421438, @kib wrote:

Perhaps a test would be useful, which links with libsys only, no libc, and starts with LD_BIND_NOW=1?

Wed, Nov 25, 3:23 AM
jrtc27 added a comment to D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.

Tested via make tinderbox

Wed, Nov 25, 3:07 AM
jrtc27 requested review of D62032: libsys: Split out a new libsys_private.h from libc's libc_private.h.
Wed, Nov 25, 3:02 AM
jrtc27 accepted D62030: problem-reports: Ask for `git format-patch` patches.

🚢

Wed, Nov 25, 2:00 AM

Tue, Nov 24

jrtc27 added a comment to D62024: nullfs: Add an ephemeral name for a missing file.

As with D62023, I'm getting strong slop vibes. Is this all your own work, including the text?

Tue, Nov 24, 10:34 PM
jrtc27 added a comment to D62023: nullfs: Allow a file or socket to be mounted again.

Thank you for splitting the revision up.

Tue, Nov 24, 10:33 PM
jrtc27 committed rG9508483558f3: libsysdecode: Avoid non-portable \> word end boundary in mktables.
Tue, Nov 24, 8:45 PM

Mon, Nov 23

jrtc27 added a comment to D61938: sysrc: Add -J.

Call me old fashioned but kernel changes to nullfs(4) and userspace changes to sysrc(8) belong in separate revisions.

Mon, Nov 23, 4:02 PM

Fri, Nov 20

jrtc27 accepted D61821: kern: Have .m rules depend sys/tools/makeobjops.awk.

Worth a reference to the commit that motivated this. Not sure if it's quite suited for a Fixes: or should just be an ad-hoc reference.

Fri, Nov 20, 4:53 PM
jrtc27 closed D61783: libsysdecode: Avoid non-portable \> word end boundary in mktables.
Fri, Nov 20, 2:39 PM
jrtc27 committed rGb5a5feb60d96: libsysdecode: Avoid non-portable \> word end boundary in mktables.
Fri, Nov 20, 2:39 PM
jrtc27 updated the summary of D61783: libsysdecode: Avoid non-portable \> word end boundary in mktables.
Fri, Nov 20, 2:27 PM
jrtc27 updated the summary of D61783: libsysdecode: Avoid non-portable \> word end boundary in mktables.
Fri, Nov 20, 2:26 PM
jrtc27 requested review of D61783: libsysdecode: Avoid non-portable \> word end boundary in mktables.
Fri, Nov 20, 2:36 AM
jrtc27 added inline comments to D61752: tests/sys/kern/ssl_sendfile: size socket buffers before connecting.
Fri, Nov 20, 12:56 AM

Thu, Nov 19

jrtc27 committed rGd851c6840205: bhyve/riscv: fix PCIe FDT interrupt-map entry stride (authored by doonbsd_gmail.com).
Thu, Nov 19, 8:48 PM
jrtc27 added a reverting change for rG69f76efd01a7: bhyve/riscv: fix PCIe FDT interrupt-map entry stride: rGa24fc8cdfb14: Revert "bhyve/riscv: fix PCIe FDT interrupt-map entry stride".
Thu, Nov 19, 8:48 PM
jrtc27 committed rGa24fc8cdfb14: Revert "bhyve/riscv: fix PCIe FDT interrupt-map entry stride".
Thu, Nov 19, 8:48 PM
jrtc27 added a reverting change for D61473: bhyve/riscv: fix PCIe FDT interrupt-map entry stride: rGa24fc8cdfb14: Revert "bhyve/riscv: fix PCIe FDT interrupt-map entry stride".
Thu, Nov 19, 8:48 PM
jrtc27 committed rG69f76efd01a7: bhyve/riscv: fix PCIe FDT interrupt-map entry stride (authored by doonbsd_gmail.com).
Thu, Nov 19, 8:33 PM

Wed, Nov 18

jrtc27 added a comment to D61690: riscv: Add missing barriers to cpu_switch.

Can you elaborate on what reorderings you think are possible with this set of fences?

Wed, Nov 18, 3:26 AM
jrtc27 accepted D61690: riscv: Add missing barriers to cpu_switch.
Wed, Nov 18, 2:04 AM

Tue, Nov 17

jrtc27 added a comment to D61684: bhyve/riscv: prevent FDT and kernel BSS overlap when booting flat kernel.

This is entirely arbitrary, and the answer is surely "don't do that". Use U-Boot as your bootrom and boot your kernel normally.

Tue, Nov 17, 6:43 PM

Fri, Nov 13

jrtc27 added a comment to D61126: bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC.

Is there a reason why you did not use my proposed diffs?

Fri, Nov 13, 5:23 PM
jrtc27 added a comment to D61126: bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC.

This is still not minimal like I suggested

Fri, Nov 13, 5:22 PM
jrtc27 closed D61473: bhyve/riscv: fix PCIe FDT interrupt-map entry stride.
Fri, Nov 13, 12:39 PM
jrtc27 committed rGfabdac3abcbb: bhyve/riscv: fix PCIe FDT interrupt-map entry stride (authored by doonbsd_gmail.com).
Fri, Nov 13, 12:39 PM
jrtc27 accepted D61473: bhyve/riscv: fix PCIe FDT interrupt-map entry stride.

Thanks (though I will tack on "and overflowing the allocation by 16 cells" at the end of the second paragraph for completeness, I just didn't want it to be the primary focus of the subject/body)

Fri, Nov 13, 12:33 PM

Thu, Nov 12

jrtc27 added a comment to D61473: bhyve/riscv: fix PCIe FDT interrupt-map entry stride.

Buffer overflow isn't the interesting part. What matters more is it's just wrong. There's no real security concern here. So I don't think it's helpful to highlight that as the first thing in the subject line (if at all; it can be mentioned as an aside in the body), as that's just going to make people think security issue.

Thu, Nov 12, 5:23 PM

Wed, Nov 11

jrtc27 added inline comments to D26617: Rename DISTDIR to RELDISTDIR to avoid clash with ports DISTDIR defined in make.conf.
Wed, Nov 11, 2:21 AM
jrtc27 requested changes to D26617: Rename DISTDIR to RELDISTDIR to avoid clash with ports DISTDIR defined in make.conf.

Either ports shouldn't be leaking DISTDIR into the base environment or the base build system here should be sanitising its environment. Renaming it just papers over the underlying issue.

Wed, Nov 11, 2:19 AM

Fri, Nov 6

jrtc27 added inline comments to D61126: bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC.
Fri, Nov 6, 12:15 PM

Thu, Nov 5

jrtc27 added a comment to D61126: bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC.

Can you please (a) avoid unnecessary churn (b) separate out and properly justify each logical change? The a1 addition in vmm_sbi_ecall seems entirely unrelated, but I also don't understand why it's needed, so if you believe it is, put it in its own revision with a proper commit message.

(b) is required as per specification. SBI call returns sbiret.{error, value}. Error is returned in a0 and value in a1. As per SBI specification, if a function has no return value, a1 must be 0. This path is being SBI spec compliant. Does it hurt here? or is this change big enough to stand alone in a separate patch?

Thu, Nov 5, 11:18 AM
jrtc27 committed rG8f83a7a336b4: Makefile.inc1: Make bootstrap mandoc's bootstrap libz dependency conditional.
Thu, Nov 5, 12:35 AM
jrtc27 committed rGd49c205d3b38: Makefile.inc1: Make sure mandoc bootstrap tool depends on libz.
Thu, Nov 5, 12:35 AM
jrtc27 committed rGded58efff1e2: Makefile.inc1: Make bootstrap mandoc's bootstrap libz dependency conditional.
Thu, Nov 5, 12:34 AM
jrtc27 committed rGc8119d2d3308: Makefile.inc1: Make sure mandoc bootstrap tool depends on libz.
Thu, Nov 5, 12:34 AM

Wed, Nov 4

jrtc27 added a comment to D61050: virtio_random: avoid using vtrnd_detach in the failure path.

Should we move the random instance inside the softc and make it work instead? Also means only paying for the space if you need it, not that it’s big.

Wed, Nov 4, 10:04 AM

Tue, Nov 3

jrtc27 added a comment to D61126: bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC.

Can you please (a) avoid unnecessary churn (b) separate out and properly justify each logical change? The a1 addition in vmm_sbi_ecall seems entirely unrelated, but I also don't understand why it's needed, so if you believe it is, put it in its own revision with a proper commit message.

Tue, Nov 3, 5:04 PM

Nov 2 2026

jrtc27 added inline comments to D61126: bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC.
Nov 2 2026, 9:16 PM
jrtc27 requested changes to D61126: bhyve/riscv: correctly handle empty masks and broadcast in SBI IPI/RFNC.
Nov 2 2026, 9:01 PM

Oct 30 2026

jrtc27 added inline comments to D60995: git-arc: add initial non-FreeBSD and `$HOME` install support.
Oct 30 2026, 1:09 AM

Oct 29 2026

jrtc27 added inline comments to D60995: git-arc: add initial non-FreeBSD and `$HOME` install support.
Oct 29 2026, 11:56 PM
jrtc27 committed rG983cb64c05fa: Makefile.inc1: Make bootstrap mandoc's bootstrap libz dependency conditional.
Oct 29 2026, 12:31 PM
jrtc27 committed rG1dbcc7ee92c4: Makefile.inc1: Make sure mandoc bootstrap tool depends on libz.
Oct 29 2026, 8:44 AM

Oct 17 2026

jrtc27 added inline comments to D60776: crypt_des: fail if salt/session is too short.
Oct 17 2026, 3:12 PM
jrtc27 added a comment to D60789: riscv: bhyve: add NULL check for hyp in riscv_send_ipi.

That is not in general sufficient reasoning

Oct 17 2026, 4:13 AM
jrtc27 requested changes to D60789: riscv: bhyve: add NULL check for hyp in riscv_send_ipi.

Commit message does not say the "why", only the "what"; i.e. it doesn't say under what circumstances this can happen. Can it happen? It would seem like a rather broken state to be in.

Oct 17 2026, 1:29 AM

Oct 16 2026

jrtc27 added inline comments to D60776: crypt_des: fail if salt/session is too short.
Oct 16 2026, 4:20 PM

Oct 7 2026

jrtc27 added a comment to D59710: linker: Harden checks for ELFs.

Alternatively, why not just adjust the existing loop that populates segs to instead take min(p_vaddr) and max(p_vaddr + p_memsz)? It wouldn't be hard to do and would remove the need for this restriction (and without any complex sorting). The only thing you'd miss is handling overlapping segments, but to be honest I don't think that would necessarily be a problem, we'd do exactly what the file asked for and load the segments in that order, but it just might result in the module shooting itself in the foot, which I don't see as any different from the countless other ways a module can corrupt its own internal state and panic your kernel. At the end of the day if you're loading a module into the kernel you're trusting the module to not itself be a panic-fest, all the kernel linker should be doing is avoiding confusing/corrupting things *outside* the module.

I thought about that at the start, but ended up with the extra check since the subsequent code seems to rely on that.
Overall, I think a sane policy for malformed modules would be: if it has to crash, it should do so outside of the linker.

Oct 7 2026, 2:48 PM

Oct 6 2026

jrtc27 added a comment to D59710: linker: Harden checks for ELFs.

Alternatively, why not just adjust the existing loop that populates segs to instead take min(p_vaddr) and max(p_vaddr + p_memsz)? It wouldn't be hard to do and would remove the need for this restriction (and without any complex sorting). The only thing you'd miss is handling overlapping segments, but to be honest I don't think that would necessarily be a problem, we'd do exactly what the file asked for and load the segments in that order, but it just might result in the module shooting itself in the foot, which I don't see as any different from the countless other ways a module can corrupt its own internal state and panic your kernel. At the end of the day if you're loading a module into the kernel you're trusting the module to not itself be a panic-fest, all the kernel linker should be doing is avoiding confusing/corrupting things *outside* the module.

Oct 6 2026, 1:12 PM

Oct 3 2026

jrtc27 added a comment to D60278: riscv: Enable linker relaxation with lld 15 and later.

If you’re to use them, at least have the decency to remove all the slop and write a proper commit message. As it stands this is a very low-effort change that feels extractive.

Oct 3 2026, 1:09 PM · riscv
jrtc27 added a comment to D60278: riscv: Enable linker relaxation with lld 15 and later.

Did you use LLMs to generate this?

Oct 3 2026, 1:00 PM · riscv

Sep 29 2026

jrtc27 committed rGc3e55f4b5d53: bhyve: rtc_pl031: Fix PeriphID and CellID values (authored by kajetan.puchalski_arm.com).
Sep 29 2026, 9:23 PM

Sep 28 2026

jrtc27 added a comment to D59620: ldscript.powerpc*: Keep .data.rel.ro out of PT_DYNAMIC.

The only reason to do have this singular RWX segment would be if whatever's loading the kernel cannot tolerate more than one PT_LOAD. I hope that's really not the case. Manually specifying the program headers really sucks as a thing to do (no PT_NOTE for NT_GNU_BUILD_ID, no PT_GNU_RELRO, no PT_INTERP with /red/herring, and any other helpful things your toolchain might normally add...).

Sep 28 2026, 6:13 PM

Sep 22 2026

jrtc27 added inline comments to D59897: rtld: add LoongArch support.
Sep 22 2026, 5:33 PM

Sep 21 2026

jrtc27 added a comment to D59813: riscv intc: convert to a bus.

I intend to review this in the coming days

Sep 21 2026, 9:07 PM

Sep 18 2026

jrtc27 requested changes to D59813: riscv intc: convert to a bus.

Please go read all of D40474

Sep 18 2026, 2:32 PM

Sep 16 2026

jrtc27 added inline comments to D58985: sys: build core headers under bounds-safety.
Sep 16 2026, 12:16 AM
jrtc27 added inline comments to D58985: sys: build core headers under bounds-safety.
Sep 16 2026, 12:13 AM
jrtc27 added inline comments to D58983: cdefs: add bounds-safety annotation macros.
Sep 16 2026, 12:02 AM

Sep 15 2026

jrtc27 added a comment to D58985: sys: build core headers under bounds-safety.

A higher level comment: I don't think we should be landing tree-wide changes to support -fbounds-safety unless there's community buy-in for actually adopting it as an in-tree option in parts of the kernel. Otherwise we're picking up a lot of churn and annotations that will bit-rot and pollute the code for no gain.

Sep 15 2026, 11:58 PM
jrtc27 added a comment to D58985: sys: build core headers under bounds-safety.

Prevailing style is to put a space between the * and qualifier that follows, which all these new annotations should follow.

Sep 15 2026, 11:56 PM
jrtc27 added inline comments to D59647: trap_cfi(9): introduce riscv implementation.
Sep 15 2026, 5:51 PM
jrtc27 added a comment to D59647: trap_cfi(9): introduce riscv implementation.

Is this necessary? Do you not want LLDB to print trapframes as special, like KGDB does, and like GDB does for signal frames?

Sep 15 2026, 5:38 PM
jrtc27 added a comment to D59635: rtld: more caution when parsing notes in digest_notes().

How did a plugin end up with a broken ELF note, and why are we shipping it?

Sep 15 2026, 2:26 PM
jrtc27 added a comment to D59689: riscv: Preserve savectx return address with vector support.

ping @jhb for mentor approval

Sep 15 2026, 1:45 PM
jrtc27 accepted D59689: riscv: Preserve savectx return address with vector support.
Sep 15 2026, 10:48 AM
jrtc27 requested changes to D59670: release: escape spaces in filenames with METALOG.

Um, yeah, if pkg produces a METALOG that is not readable by makefs, due to not escaping the whitespace, that's a bug in pkg to fix in pkg? And it's impossible to reliably escape at this point, because it is inherently ambiguous whether what comes after the space is a continuation of the path or a new key=value pair. So we really should not be trying to guesstimate what the correct METALOG entry is.

Sep 15 2026, 10:43 AM

Sep 3 2026

jrtc27 added inline comments to D59377: mkimg: Restore offset support for the SIZE partition form.
Sep 3 2026, 11:50 PM
jrtc27 added inline comments to D59377: mkimg: Restore offset support for the SIZE partition form.
Sep 3 2026, 11:45 PM

Sep 2 2026

jrtc27 added a comment to D59269: x86: add support for TLSDESC relocations.
In D59269#1360942, @kib wrote:

Regarding leaking, glibc does seem to store them in a hash table tied to link_map (i.e. Obj_Entry) so will free on dlclose, unlike our arm64 implementation. Linked list seems a bit unnecessarily slow, but at the same time extensive dynamic TLSDESC + dlclose is probably not common enough to actually benefit from something like a reallocarray-based storage.

The list is only traversed on dlclose() to free items, so I do not see it as causing any slowdown. In fact, where the hashed lookup would be useful?

Sep 2 2026, 12:46 AM