Page MenuHomeFreeBSD

jrtc27 (Jessica Clarke)
User

Projects

User Details

User Since
Jul 4 2018, 7:23 PM (358 w, 6 d)

Recent Activity

Sat, May 17

jrtc27 added a comment to D50388: src.opts.mk: Default LLVM_ASSERTIONS off.

Or, like WITNESS or MALLOC_PRODUCTION, on in HEAD and off in stable branches?

Sat, May 17, 2:15 AM

Sun, May 11

jrtc27 accepted D50297: bsdinstall: Use a login shell for final configuration..

Seems sensible to me

Sun, May 11, 4:13 PM

Sat, May 10

jrtc27 added inline comments to D44280: bsdinstall: implement rootpass with bsddialog.
Sat, May 10, 5:05 AM
jrtc27 added a member for Installer: jrtc27.
Sat, May 10, 4:16 AM

Thu, May 8

jrtc27 added a comment to D50252: loader: i386: use -z nostart-stop-gc for bfd as well.

Hm, binutils should still be defaulting to -znostart-stop-gc even today in their master branch. So this really should be a no-op, this shouldn't be the cause of any issues. (Unless sjg is building with some modified environment that overrides that default, I suppose, but that's shooting oneself in the foot...)

Thu, May 8, 10:49 PM

Wed, May 7

jrtc27 committed rGb640600834e7: rtld-elf: Use size_t rather than uintptr_t for an index (authored by jrtc27).
rtld-elf: Use size_t rather than uintptr_t for an index
Wed, May 7, 9:21 PM
jrtc27 committed rG0d12f495d8d9: rtld-elf: Use clear pointer provenance when updating DTV pointer (authored by jrtc27).
rtld-elf: Use clear pointer provenance when updating DTV pointer
Wed, May 7, 7:23 PM
jrtc27 committed rG48cce2a2982f: tls: Introduce struct dtv and struct dtv_slot (authored by jrtc27).
tls: Introduce struct dtv and struct dtv_slot
Wed, May 7, 7:23 PM
jrtc27 committed rGb209947fc27c: rtld-elf: Use struct tcb * rather than uintptr_t ** for the tcb (authored by jrtc27).
rtld-elf: Use struct tcb * rather than uintptr_t ** for the tcb
Wed, May 7, 7:23 PM
jrtc27 committed rG3703f95c6fca: libc: Use struct tcb * rather than uintptr_t ** for the tcb (authored by jrtc27).
libc: Use struct tcb * rather than uintptr_t ** for the tcb
Wed, May 7, 7:22 PM
jrtc27 committed rG14c534eaef41: rtld-elf: Use variables more consistent with Variant I for Variant II TLS (authored by jrtc27).
rtld-elf: Use variables more consistent with Variant I for Variant II TLS
Wed, May 7, 7:22 PM
jrtc27 closed D50230: rtld-elf: Use clear pointer provenance when updating DTV pointer.
Wed, May 7, 7:22 PM
jrtc27 committed rG62dfddd083da: libc: Use variables more consistent with Variant I for Variant II TLS (authored by jrtc27).
libc: Use variables more consistent with Variant I for Variant II TLS
Wed, May 7, 7:22 PM
jrtc27 closed D50231: tls: Introduce struct dtv and struct dtv_slot.
Wed, May 7, 7:22 PM
jrtc27 committed rG4642b638a522: rtld-elf: Consistently use uintptr_t for TLS implementation (authored by jrtc27).
rtld-elf: Consistently use uintptr_t for TLS implementation
Wed, May 7, 7:22 PM
jrtc27 closed D50229: rtld-elf: Use struct tcb * rather than uintptr_t ** for the tcb.
Wed, May 7, 7:22 PM
jrtc27 committed rG1ef9f0371e2d: libc: Consistently use uintptr_t for TLS implementation (authored by jrtc27).
libc: Consistently use uintptr_t for TLS implementation
Wed, May 7, 7:22 PM
jrtc27 committed rG7953cbaabe7c: libc: Reassociate pointer arithmetic in __libc_tls_get_addr (authored by jrtc27).
libc: Reassociate pointer arithmetic in __libc_tls_get_addr
Wed, May 7, 7:22 PM
jrtc27 closed D50228: libc: Use struct tcb * rather than uintptr_t ** for the tcb.
Wed, May 7, 7:22 PM
jrtc27 closed D50232: rtld-elf: Use variables more consistent with Variant I for Variant II TLS.
Wed, May 7, 7:22 PM
jrtc27 closed D50227: libc: Use variables more consistent with Variant I for Variant II TLS.
Wed, May 7, 7:22 PM
jrtc27 closed D50226: rtld-elf: Consistently use uintptr_t for TLS implementation.
Wed, May 7, 7:22 PM
jrtc27 closed D50225: libc: Consistently use uintptr_t for TLS implementation.
Wed, May 7, 7:22 PM
jrtc27 closed D50224: libc: Reassociate pointer arithmetic in __libc_tls_get_addr.
Wed, May 7, 7:22 PM
jrtc27 updated the summary of D50225: libc: Consistently use uintptr_t for TLS implementation.
Wed, May 7, 6:24 PM
jrtc27 updated the summary of D50226: rtld-elf: Consistently use uintptr_t for TLS implementation.
Wed, May 7, 6:23 PM
jrtc27 added a comment to D50226: rtld-elf: Consistently use uintptr_t for TLS implementation.
In D50226#1145897, @kib wrote:
In D50226#1145838, @kib wrote:
In D50226#1145753, @kib wrote:

For me, Elf_Addr is more natural type synonym to use in the rtld code. Also, it gives us the luxury of Elf32/64_Addr typedefs, so if needed, multilib-like rtld has an easier way to express itself.

Well, Elf_Addr is about the format of addresses within the ELF file, matching the default ELF class for the current ABI. Technically that does not have to match the format of addresses at run time (LP64 IA-64 used both ELFCLASS32 and ELFCLASS64; LP46 vs ILP32 was an orthogonal EF_IA_64_ABI64), though you probably shouldn't build a system that does that these days, and of course it definitely doesn't match the format of pointers for CHERI. The values here are not addresses in ELF files, they are pointers at run time, so they should use pointer types, and using anything other than (u)intptr_t or T * does not work on CHERI. We've already had to change this code downstream and whilst refactoring things upstream I'd like to take the time to use CHERI-compatible types rather than write new(ish) code that I know does not work for CHERI.

I think this opinion should be stated in the change' summary.

Thanks. Are you happy with the updated description?

Is it LP46 or LP64?
Yes, I think that the updated text provides better motivation for the change. Thank you.

Wed, May 7, 6:23 PM
jrtc27 added inline comments to D50231: tls: Introduce struct dtv and struct dtv_slot.
Wed, May 7, 6:07 PM
jrtc27 added a comment to D50226: rtld-elf: Consistently use uintptr_t for TLS implementation.
In D50226#1145838, @kib wrote:
In D50226#1145753, @kib wrote:

For me, Elf_Addr is more natural type synonym to use in the rtld code. Also, it gives us the luxury of Elf32/64_Addr typedefs, so if needed, multilib-like rtld has an easier way to express itself.

Well, Elf_Addr is about the format of addresses within the ELF file, matching the default ELF class for the current ABI. Technically that does not have to match the format of addresses at run time (LP64 IA-64 used both ELFCLASS32 and ELFCLASS64; LP46 vs ILP32 was an orthogonal EF_IA_64_ABI64), though you probably shouldn't build a system that does that these days, and of course it definitely doesn't match the format of pointers for CHERI. The values here are not addresses in ELF files, they are pointers at run time, so they should use pointer types, and using anything other than (u)intptr_t or T * does not work on CHERI. We've already had to change this code downstream and whilst refactoring things upstream I'd like to take the time to use CHERI-compatible types rather than write new(ish) code that I know does not work for CHERI.

I think this opinion should be stated in the change' summary.

Wed, May 7, 5:56 PM
jrtc27 updated the summary of D50225: libc: Consistently use uintptr_t for TLS implementation.
Wed, May 7, 5:56 PM
jrtc27 updated the summary of D50226: rtld-elf: Consistently use uintptr_t for TLS implementation.
Wed, May 7, 5:55 PM
jrtc27 added a comment to D50226: rtld-elf: Consistently use uintptr_t for TLS implementation.
In D50226#1145753, @kib wrote:

For me, Elf_Addr is more natural type synonym to use in the rtld code. Also, it gives us the luxury of Elf32/64_Addr typedefs, so if needed, multilib-like rtld has an easier way to express itself.

Wed, May 7, 5:31 PM
jrtc27 added inline comments to D50231: tls: Introduce struct dtv and struct dtv_slot.
Wed, May 7, 5:23 PM
jrtc27 requested review of D50232: rtld-elf: Use variables more consistent with Variant I for Variant II TLS.
Wed, May 7, 3:06 AM
jrtc27 updated the diff for D50227: libc: Use variables more consistent with Variant I for Variant II TLS.

Only include libc changes

Wed, May 7, 3:04 AM
jrtc27 requested review of D50231: tls: Introduce struct dtv and struct dtv_slot.
Wed, May 7, 3:01 AM
jrtc27 requested review of D50230: rtld-elf: Use clear pointer provenance when updating DTV pointer.
Wed, May 7, 3:00 AM
jrtc27 requested review of D50229: rtld-elf: Use struct tcb * rather than uintptr_t ** for the tcb.
Wed, May 7, 3:00 AM
jrtc27 requested review of D50228: libc: Use struct tcb * rather than uintptr_t ** for the tcb.
Wed, May 7, 3:00 AM
jrtc27 requested review of D50227: libc: Use variables more consistent with Variant I for Variant II TLS.
Wed, May 7, 3:00 AM
jrtc27 requested review of D50226: rtld-elf: Consistently use uintptr_t for TLS implementation.
Wed, May 7, 3:00 AM
jrtc27 requested review of D50225: libc: Consistently use uintptr_t for TLS implementation.
Wed, May 7, 3:00 AM
jrtc27 requested review of D50224: libc: Reassociate pointer arithmetic in __libc_tls_get_addr.
Wed, May 7, 2:59 AM

Tue, May 6

jrtc27 committed rGd71c97026366: rtld-elf: Push TLS_DTV_OFFSET into tls_get_addr_common's arguments (authored by jrtc27).
rtld-elf: Push TLS_DTV_OFFSET into tls_get_addr_common's arguments
Tue, May 6, 10:16 PM
jrtc27 committed rGa08d92def20a: rtld-elf: Fix executable's TLS module index for direct exec (authored by jrtc27).
rtld-elf: Fix executable's TLS module index for direct exec
Tue, May 6, 10:16 PM
jrtc27 committed rG2b04ba6e08b9: rtld-elf: Fix UB for direct exec with no extra rtld arguments (authored by jrtc27).
rtld-elf: Fix UB for direct exec with no extra rtld arguments
Tue, May 6, 10:16 PM
jrtc27 committed rGc02aaba1b454: rtld-elf: Fix dl_iterate_phdr's dlpi_tls_data for PowerPC and RISC-V (authored by jrtc27).
rtld-elf: Fix dl_iterate_phdr's dlpi_tls_data for PowerPC and RISC-V
Tue, May 6, 10:16 PM
jrtc27 committed rG8ad9cec3a2cc: rtld-elf: Fix dlsym(3) for TLS symbols on PowerPC and RISC-V (authored by jrtc27).
rtld-elf: Fix dlsym(3) for TLS symbols on PowerPC and RISC-V
Tue, May 6, 10:16 PM
jrtc27 closed D50185: rtld-elf: Fix UB for direct exec with no extra rtld arguments.
Tue, May 6, 10:16 PM
jrtc27 closed D50187: rtld-elf: Push TLS_DTV_OFFSET into tls_get_addr_common's arguments.
Tue, May 6, 10:16 PM
jrtc27 closed D50186: rtld-elf: Fix executable's TLS module index for direct exec.
Tue, May 6, 10:16 PM
jrtc27 committed rG78b99f369f75: libc: Fix dl_iterate_phdr's dlpi_tls_data for PowerPC and RISC-V (authored by jrtc27).
libc: Fix dl_iterate_phdr's dlpi_tls_data for PowerPC and RISC-V
Tue, May 6, 10:16 PM
jrtc27 closed D50184: rtld-elf: Fix dl_iterate_phdr's dlpi_tls_data for PowerPC and RISC-V.
Tue, May 6, 10:16 PM
jrtc27 committed rGd04c93a2adcc: libc: Don't bias DTV entries by TLS_DTV_OFFSET (authored by jrtc27).
libc: Don't bias DTV entries by TLS_DTV_OFFSET
Tue, May 6, 10:15 PM
jrtc27 closed D50183: rtld-elf: Fix dlsym(3) for TLS symbols on PowerPC and RISC-V.
Tue, May 6, 10:15 PM
jrtc27 closed D50182: libc: Fix dl_iterate_phdr's dlpi_tls_data for PowerPC and RISC-V.
Tue, May 6, 10:15 PM
jrtc27 closed D50181: libc: Don't bias DTV entries by TLS_DTV_OFFSET.
Tue, May 6, 10:15 PM
jrtc27 added inline comments to D50185: rtld-elf: Fix UB for direct exec with no extra rtld arguments.
Tue, May 6, 9:48 PM
jrtc27 committed rG52c8e24cc03b: cross-build: Provide real fflagstostr/strtofflags on Linux (authored by jrtc27).
cross-build: Provide real fflagstostr/strtofflags on Linux
Tue, May 6, 4:59 PM
jrtc27 committed rG54072047da3d: xinstall: Don't use UF_SETTABLE to infer whether st_flags is present (authored by jrtc27).
xinstall: Don't use UF_SETTABLE to infer whether st_flags is present
Tue, May 6, 4:59 PM
jrtc27 committed rGc49043eacb14: makefs: Support st_flags even on Linux (authored by jrtc27).
makefs: Support st_flags even on Linux
Tue, May 6, 4:59 PM
jrtc27 committed rGfb2e96562aeb: makefs: Fix a couple of HAVE_STRUCT_STAT_BIRTHTIME checks (authored by jrtc27).
makefs: Fix a couple of HAVE_STRUCT_STAT_BIRTHTIME checks
Tue, May 6, 4:59 PM
jrtc27 closed D50080: cross-build: Provide real fflagstostr/strtofflags on Linux.
Tue, May 6, 4:59 PM
jrtc27 closed D50079: xinstall: Don't use UF_SETTABLE to infer whether st_flags is present.
Tue, May 6, 4:59 PM
jrtc27 closed D50078: makefs: Support st_flags even on Linux.
Tue, May 6, 4:59 PM
jrtc27 closed D50077: makefs: Fix a couple of HAVE_STRUCT_STAT_BIRTHTIME checks.
Tue, May 6, 4:58 PM
jrtc27 added a comment to D50186: rtld-elf: Fix executable's TLS module index for direct exec.
In D50186#1144833, @kib wrote:
In D50186#1144828, @kib wrote:

Or instead, re-set the tls_max_index to 0 for direct exec mode before calling map_object()?

Then this would also require a fixup after the map_object() call, for the case where the main obj does not have TLS init segment.

Tue, May 6, 2:20 PM

Mon, May 5

jrtc27 requested review of D50187: rtld-elf: Push TLS_DTV_OFFSET into tls_get_addr_common's arguments.
Mon, May 5, 11:32 PM
jrtc27 updated the diff for D50181: libc: Don't bias DTV entries by TLS_DTV_OFFSET.

Update documentation

Mon, May 5, 11:24 PM
jrtc27 added inline comments to D50186: rtld-elf: Fix executable's TLS module index for direct exec.
Mon, May 5, 11:20 PM
jrtc27 requested review of D50186: rtld-elf: Fix executable's TLS module index for direct exec.
Mon, May 5, 11:19 PM
jrtc27 requested review of D50185: rtld-elf: Fix UB for direct exec with no extra rtld arguments.
Mon, May 5, 11:19 PM
jrtc27 requested review of D50184: rtld-elf: Fix dl_iterate_phdr's dlpi_tls_data for PowerPC and RISC-V.
Mon, May 5, 11:19 PM
jrtc27 requested review of D50183: rtld-elf: Fix dlsym(3) for TLS symbols on PowerPC and RISC-V.
Mon, May 5, 11:18 PM
jrtc27 requested review of D50182: libc: Fix dl_iterate_phdr's dlpi_tls_data for PowerPC and RISC-V.
Mon, May 5, 11:18 PM
jrtc27 requested review of D50181: libc: Don't bias DTV entries by TLS_DTV_OFFSET.
Mon, May 5, 11:18 PM

Sun, May 4

jrtc27 added inline comments to D50044: e6000sw: add support for 88E6190X.
Sun, May 4, 5:51 PM

Tue, Apr 29

jrtc27 added a comment to D35355: bsdinstall: allow overriding DISTRIBUTIONS in the normal auto mode.

It appears this is responsible for a regression, see PR 286079

Tue, Apr 29, 11:36 PM
jrtc27 added a comment to D50078: makefs: Support st_flags even on Linux.

This is fine with me. I'll cc @christos_netbsd.org in case NetBSD would like to make an equivalent change (or maybe they already have one?)

Tue, Apr 29, 8:38 PM
jrtc27 updated the diff for D50080: cross-build: Provide real fflagstostr/strtofflags on Linux.

Add comment about host vs target

Tue, Apr 29, 8:35 PM
jrtc27 requested review of D50080: cross-build: Provide real fflagstostr/strtofflags on Linux.
Tue, Apr 29, 7:39 PM
jrtc27 requested review of D50079: xinstall: Don't use UF_SETTABLE to infer whether st_flags is present.
Tue, Apr 29, 7:39 PM
jrtc27 requested review of D50078: makefs: Support st_flags even on Linux.
Tue, Apr 29, 7:38 PM
jrtc27 requested review of D50077: makefs: Fix a couple of HAVE_STRUCT_STAT_BIRTHTIME checks.
Tue, Apr 29, 7:38 PM

Tue, Apr 22

jrtc27 added inline comments to D49951: Move mntopts(3) suppport into libutil.
Tue, Apr 22, 6:23 PM
jrtc27 accepted D49963: bsd.compiler.mk: Add a blocks compiler feature..

Thank you!

Tue, Apr 22, 5:41 PM
jrtc27 added inline comments to D49960: Makefile.inc1: Let the buildetc target run outside of etc.
Tue, Apr 22, 5:19 PM
jrtc27 added inline comments to D49960: Makefile.inc1: Let the buildetc target run outside of etc.
Tue, Apr 22, 4:21 PM
jrtc27 added inline comments to D49877: fts: Add blocks support..
Tue, Apr 22, 3:53 PM
jrtc27 added inline comments to D49877: fts: Add blocks support..
Tue, Apr 22, 3:32 PM

Mon, Apr 21

jrtc27 added inline comments to D49893: cross-build: Workaround system-provided strchrnul on macOS 15.4+.
Mon, Apr 21, 7:04 PM
jrtc27 accepted D49893: cross-build: Workaround system-provided strchrnul on macOS 15.4+.
Mon, Apr 21, 7:01 PM
jrtc27 added a comment to D49893: cross-build: Workaround system-provided strchrnul on macOS 15.4+.

This isn't going to suffice. If you update your SDK to one that knows about 15.4 or later then you'll have the prototype in string.h and __MAC_OS_X_VERSION_MAX_ALLOWED will be 15.4 or higher, but we won't provide this implementation, so at compile time you'll get warning: 'strchrnul' is only available on macOS 15.4 or newer [-Wunguarded-availability-new] and at run time you'll get a segmentation fault from the symbol stub (Mach-O PLT-like thing) branching to NULL.

Mon, Apr 21, 5:33 PM

Apr 19 2025

jrtc27 added a comment to D49893: cross-build: Workaround system-provided strchrnul on macOS 15.4+.

What about with clang++? Otherwise the driver won't link in libc++.

Apr 19 2025, 12:14 AM

Apr 18 2025

jrtc27 accepted D49897: riscv: Fix handling of interrupts during kernel page faults.

Oh, yes, I failed to spot that in the review but this was clearly wrong and a no-op

Apr 18 2025, 9:07 PM

Apr 16 2025

jrtc27 added inline comments to D38838: release: support configuration partition for auto install.
Apr 16 2025, 6:00 PM
jrtc27 added inline comments to D49852: riscv: zicbom extension support.
Apr 16 2025, 3:10 PM

Apr 15 2025

jrtc27 added a comment to D49839: riscv: Exclude OpenSBI memory regions when booting with EFI.

Well this is just wrong, boot services data can be reclaimed once you've exited boot services. Linux seems to work because it always honours the FDT's reserved memory regions, so we should follow that to work around this broken firmware (in fact AFAICT Linux doesn't even bother to parse the table, even on arm64, which is surprising... not sure how ACPI ends up working). And please report a bug against the firmware in question so this can actually get fixed to correctly mark it as EfiRuntimeServicesCode/Data or EfiReservedMemoryType.

Apr 15 2025, 5:28 PM

Apr 14 2025

jrtc27 added inline comments to D49822: bsdinstall: add pkgbase target.
Apr 14 2025, 10:49 PM
jrtc27 added inline comments to D49824: bsdinstall: add pkgbase prompt to auto script.
Apr 14 2025, 10:28 PM
OSZAR »