Page MenuHomeFreeBSD

jrtc27 (Jessica Clarke)
User

Projects

User Details

User Since
Jul 4 2018, 7:23 PM (364 w, 5 d)

Recent Activity

Sat, Jun 28

jrtc27 added a comment to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
In D50920#1165848, @kib wrote:

Consider increasing RTLD_STATIC_TLS_EXTRA, we now use 16 bytes there unconditionally.

Sat, Jun 28, 4:07 AM

Thu, Jun 26

jrtc27 updated the summary of D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Thu, Jun 26, 7:18 PM
jrtc27 updated the diff for D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.

Embed TAILQ_ENTRY in TLS block as if it were TLS data

Thu, Jun 26, 7:17 PM
jrtc27 requested review of D51068: rtld-elf: Extract part of allocate_tls_offset into allocate_tls_offset_common.
Thu, Jun 26, 7:17 PM

Thu, Jun 19

jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Thu, Jun 19, 3:18 PM
jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Thu, Jun 19, 2:41 PM
jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Thu, Jun 19, 2:36 PM
jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Thu, Jun 19, 12:55 AM

Wed, Jun 18

jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Wed, Jun 18, 11:42 PM
jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Wed, Jun 18, 11:42 PM
jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Wed, Jun 18, 11:21 PM
jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Wed, Jun 18, 10:57 PM
jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Wed, Jun 18, 10:56 PM
jrtc27 added inline comments to D50921: libc,libthr: Remove __pthread_distribute_static_tls.
Wed, Jun 18, 10:55 PM
jrtc27 added inline comments to D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Wed, Jun 18, 9:38 PM
jrtc27 requested review of D50921: libc,libthr: Remove __pthread_distribute_static_tls.
Wed, Jun 18, 9:31 PM
jrtc27 requested review of D50920: rtld-elf: Track allocated TCBs internally and use for distribute_static_tls.
Wed, Jun 18, 9:31 PM

Mon, Jun 16

jrtc27 committed rG66cc116bb2c1: libprocstat: Drop zfs_defs.c hack, including its _KERNEL define (authored by jrtc27).
libprocstat: Drop zfs_defs.c hack, including its _KERNEL define
Mon, Jun 16, 9:38 PM
jrtc27 committed rGb4f9be7fb371: openzfs: Add a _WANT_ZNODE that defines struct znode / znode_t for userspace (authored by jrtc27).
openzfs: Add a _WANT_ZNODE that defines struct znode / znode_t for userspace
Mon, Jun 16, 9:38 PM
jrtc27 committed rG20aaf0f6578c: libprocstat: Drop all _KERNEL defines outside of zfs_defs.c (authored by jrtc27).
libprocstat: Drop all _KERNEL defines outside of zfs_defs.c
Mon, Jun 16, 9:38 PM
jrtc27 committed rGb61239ef83d6: msdosfs: Add _WANT_MSDOSFS_INTERNALS to replace MAKEFS in headers (authored by jrtc27).
msdosfs: Add _WANT_MSDOSFS_INTERNALS to replace MAKEFS in headers
Mon, Jun 16, 9:38 PM
jrtc27 committed rGc4d3a1836d50: msdosfs: Don't #ifdef out msdosfsmount members (authored by jrtc27).
msdosfs: Don't #ifdef out msdosfsmount members
Mon, Jun 16, 9:38 PM
jrtc27 committed rG68c3cec90a87: cd9660: Add _WANT_ISO_MNT (authored by jrtc27).
cd9660: Add _WANT_ISO_MNT
Mon, Jun 16, 9:38 PM
jrtc27 committed rGb1e67144058d: sys/mount.h: Add missing headers so it's standalone for _WANT_MOUNT (authored by jrtc27).
sys/mount.h: Add missing headers so it's standalone for _WANT_MOUNT
Mon, Jun 16, 9:38 PM
jrtc27 closed D50721: libprocstat: Drop zfs_defs.c hack, including its _KERNEL define.
Mon, Jun 16, 9:37 PM
jrtc27 closed D50720: openzfs: Add a _WANT_ZNODE that defines struct znode / znode_t for userspace.
Mon, Jun 16, 9:37 PM
jrtc27 closed D50719: libprocstat: Drop all _KERNEL defines outside of zfs_defs.c.
Mon, Jun 16, 9:37 PM
jrtc27 closed D50718: msdosfs: Add _WANT_MSDOSFS_INTERNALS to replace MAKEFS in headers.
Mon, Jun 16, 9:37 PM
jrtc27 committed rG3923bf59f992: tools/build: Provide extra headers on non-FreeBSD (authored by jrtc27).
tools/build: Provide extra headers on non-FreeBSD
Mon, Jun 16, 9:37 PM
jrtc27 committed rGebc0ceaca16c: sys/mount.h: Hoist sys/types.h include (authored by jrtc27).
sys/mount.h: Hoist sys/types.h include
Mon, Jun 16, 9:37 PM
jrtc27 closed D50885: msdosfs: Don't #ifdef out msdosfsmount members.
Mon, Jun 16, 9:37 PM
jrtc27 closed D50717: cd9660: Add _WANT_ISO_MNT.
Mon, Jun 16, 9:37 PM
jrtc27 closed D50716: sys/mount.h: Add missing headers so it's standalone for _WANT_MOUNT.
Mon, Jun 16, 9:37 PM
jrtc27 closed D50884: sys/mount.h: Hoist sys/types.h include.
Mon, Jun 16, 9:37 PM
jrtc27 updated the diff for D50721: libprocstat: Drop zfs_defs.c hack, including its _KERNEL define.

Update comment

Mon, Jun 16, 8:19 PM
jrtc27 updated the test plan for D50718: msdosfs: Add _WANT_MSDOSFS_INTERNALS to replace MAKEFS in headers.
Mon, Jun 16, 7:54 PM
jrtc27 added reviewers for D50885: msdosfs: Don't #ifdef out msdosfsmount members: imp, markj.
Mon, Jun 16, 7:53 PM
jrtc27 added a reviewer for D50884: sys/mount.h: Hoist sys/types.h include: kib.
Mon, Jun 16, 7:52 PM
jrtc27 updated the diff for D50718: msdosfs: Add _WANT_MSDOSFS_INTERNALS to replace MAKEFS in headers.

Rebased

Mon, Jun 16, 7:52 PM
jrtc27 requested review of D50885: msdosfs: Don't #ifdef out msdosfsmount members.
Mon, Jun 16, 7:51 PM
jrtc27 requested review of D50884: sys/mount.h: Hoist sys/types.h include.
Mon, Jun 16, 7:50 PM
jrtc27 added a comment to D50717: cd9660: Add _WANT_ISO_MNT.
In D50717#1157838, @imp wrote:

So why is this desirable?

Mon, Jun 16, 7:39 PM
jrtc27 added inline comments to D50721: libprocstat: Drop zfs_defs.c hack, including its _KERNEL define.
Mon, Jun 16, 7:39 PM

Fri, Jun 13

jrtc27 committed rG67f18e8d494f: usr.sbin: Gate bhyve/bhyvectl on MK_BHYVE for riscv (authored by jrtc27).
usr.sbin: Gate bhyve/bhyvectl on MK_BHYVE for riscv
Fri, Jun 13, 5:59 PM

Sat, Jun 7

jrtc27 added a comment to D50716: sys/mount.h: Add missing headers so it's standalone for _WANT_MOUNT.
In D50716#1158047, @kib wrote:

You need at least sys/types.h there as well.

Sat, Jun 7, 6:27 PM

Fri, Jun 6

jrtc27 updated the diff for D50720: openzfs: Add a _WANT_ZNODE that defines struct znode / znode_t for userspace.

Move endif

Fri, Jun 6, 5:18 PM
jrtc27 added inline comments to D50718: msdosfs: Add _WANT_MSDOSFS_INTERNALS to replace MAKEFS in headers.
Fri, Jun 6, 5:08 PM
jrtc27 added inline comments to D50720: openzfs: Add a _WANT_ZNODE that defines struct znode / znode_t for userspace.
Fri, Jun 6, 5:03 PM
jrtc27 added inline comments to D50721: libprocstat: Drop zfs_defs.c hack, including its _KERNEL define.
Fri, Jun 6, 3:08 PM
jrtc27 updated the summary of D50721: libprocstat: Drop zfs_defs.c hack, including its _KERNEL define.
Fri, Jun 6, 2:33 PM
jrtc27 updated the diff for D50721: libprocstat: Drop zfs_defs.c hack, including its _KERNEL define.

Trim and sort CFLAGS

Fri, Jun 6, 2:32 PM
jrtc27 requested review of D50721: libprocstat: Drop zfs_defs.c hack, including its _KERNEL define.
Fri, Jun 6, 2:15 PM
jrtc27 requested review of D50720: openzfs: Add a _WANT_ZNODE that defines struct znode / znode_t for userspace.
Fri, Jun 6, 2:15 PM
jrtc27 requested review of D50719: libprocstat: Drop all _KERNEL defines outside of zfs_defs.c.
Fri, Jun 6, 2:14 PM
jrtc27 requested review of D50718: msdosfs: Add _WANT_MSDOSFS_INTERNALS to replace MAKEFS in headers.
Fri, Jun 6, 2:14 PM
jrtc27 requested review of D50717: cd9660: Add _WANT_ISO_MNT.
Fri, Jun 6, 2:13 PM
jrtc27 requested review of D50716: sys/mount.h: Add missing headers so it's standalone for _WANT_MOUNT.
Fri, Jun 6, 2:13 PM

Wed, Jun 4

jrtc27 added a comment to D50683: linker: Improve handling of ifuncs when fetching symbol metadata.

What if there is no symbol (which presumably shows up as off != 0, using whatever symbol happens to be before it)? Or it's in another file? Those are legitimate cases (the former in particular, that's for when the implementation is static, and the latter is weird but there's no reason you can't do it).

If there's no symbol, what should we do? I don't think it's really correct to keep passing the resolver symbol's size, so should we just set it to 0 instead? In practice this case currently doesn't arise AFAICT, and so I'm rather inclined to signal the failure to the consumer.

Wed, Jun 4, 9:20 PM
jrtc27 added a comment to D50683: linker: Improve handling of ifuncs when fetching symbol metadata.

What if there is no symbol (which presumably shows up as off != 0, using whatever symbol happens to be before it)? Or it's in another file? Those are legitimate cases (the former in particular, that's for when the implementation is static, and the latter is weird but there's no reason you can't do it).

Wed, Jun 4, 4:33 PM

Tue, Jun 3

jrtc27 added a comment to D50668: pkg.conf: add valid configurations for kmods for all branches.

As mentioned on IRC but summarised here for reference: do we want to support PKGCONFBRANCH=latest being set in a user's src.conf on release branches? 0b18e008ccf74ee87d38ca16c9c4d9bb0b174bec deliberately made this an overridable variable, and so it we want to preserve that we probably should have a latest-release file too.

Tue, Jun 3, 2:33 PM
jrtc27 committed rG680f1a39ee4b: libc: Allow more complex expressions for CALL_BLOCK first argument (authored by jrtc27).
libc: Allow more complex expressions for CALL_BLOCK first argument
Tue, Jun 3, 2:21 PM
jrtc27 committed rG786ced56a434: libc: Fix glob.c build with GCC (authored by jrtc27).
libc: Fix glob.c build with GCC
Tue, Jun 3, 2:21 PM
jrtc27 added inline comments to D50636: packages: fix ownership of /tmp and /dev.
Tue, Jun 3, 1:55 AM
jrtc27 committed rG207f3b2b25ea: libmd: Fix amd64 AVX2 SHA-1 transcription errors (authored by jrtc27).
libmd: Fix amd64 AVX2 SHA-1 transcription errors
Tue, Jun 3, 1:52 AM

May 31 2025

jrtc27 requested review of D50630: vmbus: Avoid gratuitous ifdef and use more generic implementation instead.
May 31 2025, 7:04 PM
jrtc27 committed rG7944a87dce93: drm2/ttm: Add missing includes to fix arm TEGRA124 build (authored by jrtc27).
drm2/ttm: Add missing includes to fix arm TEGRA124 build
May 31 2025, 7:02 PM

May 30 2025

jrtc27 added inline comments to D40816: bsdinstall: protect disk label and zfsboot on Auto ZFS+MBR.
May 30 2025, 10:09 PM

May 29 2025

jrtc27 closed D50594: rtld-elf: Pass TCB to allocate_module_tls to avoid re-getting.
May 29 2025, 4:08 PM
jrtc27 committed rG48fd084579af: rtld-elf: Pass TCB to allocate_module_tls to avoid re-getting (authored by jrtc27).
rtld-elf: Pass TCB to allocate_module_tls to avoid re-getting
May 29 2025, 4:08 PM
jrtc27 closed D50592: libc, libthr: Ditch MD __pthread_distribute_static_tls helpers.
May 29 2025, 4:08 PM
jrtc27 committed rG250b2eda0acc: libc, libthr: Ditch MD __pthread_distribute_static_tls helpers (authored by jrtc27).
libc, libthr: Ditch MD __pthread_distribute_static_tls helpers
May 29 2025, 4:08 PM
jrtc27 closed D50591: rtld-elf: Pass struct tcb * around rather than struct dtv **.
May 29 2025, 4:08 PM
jrtc27 committed rG960f40b892cf: rtld-elf: Pass struct tcb * around rather than struct dtv ** (authored by jrtc27).
rtld-elf: Pass struct tcb * around rather than struct dtv **
May 29 2025, 4:07 PM
jrtc27 added inline comments to D50591: rtld-elf: Pass struct tcb * around rather than struct dtv **.
May 29 2025, 1:21 AM

May 28 2025

jrtc27 requested review of D50594: rtld-elf: Pass TCB to allocate_module_tls to avoid re-getting.
May 28 2025, 11:03 PM
jrtc27 requested review of D50592: libc, libthr: Ditch MD __pthread_distribute_static_tls helpers.
May 28 2025, 10:42 PM
jrtc27 requested review of D50591: rtld-elf: Pass struct tcb * around rather than struct dtv **.
May 28 2025, 10:42 PM
jrtc27 added inline comments to D50546: hwpmc: Support an older application running the old ABI.
May 28 2025, 9:03 PM
jrtc27 added a reverting change for rGe9a38ed2fa61: rtld: fix allocate_module_tls() variant I fallback to static allocation: rGccfb1c50e45d: Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation".
May 28 2025, 8:29 PM
jrtc27 committed rGccfb1c50e45d: Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation" (authored by jrtc27).
Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation"
May 28 2025, 8:29 PM
jrtc27 committed rG0e3dbc64d9f6: libc/riscv: Fix initial exec TLS mode for dynamically loaded shared objects (authored by jrtc27).
libc/riscv: Fix initial exec TLS mode for dynamically loaded shared objects
May 28 2025, 8:29 PM
jrtc27 closed D50565: Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation".
May 28 2025, 8:29 PM
jrtc27 closed D50564: libc/riscv: Fix initial exec TLS mode for dynamically loaded shared objects.
May 28 2025, 8:29 PM
jrtc27 closed D50563: rtld-elf/riscv: Don't allocate static TLS for dynamic TLS.
May 28 2025, 8:29 PM
jrtc27 committed rG03801d449a37: rtld-elf/riscv: Don't allocate static TLS for dynamic TLS relocations (authored by jrtc27).
rtld-elf/riscv: Don't allocate static TLS for dynamic TLS relocations
May 28 2025, 8:28 PM
jrtc27 added inline comments to D50498: atkbd: fix first keystroke force reset.
May 28 2025, 7:44 PM
jrtc27 updated the summary of D50565: Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation".
May 28 2025, 4:31 PM
jrtc27 updated the diff for D50565: Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation".

Extend existing comment to note different implementation to NetBSD

May 28 2025, 4:31 PM
jrtc27 added a comment to D50563: rtld-elf/riscv: Don't allocate static TLS for dynamic TLS.
In D50563#1154663, @kib wrote:

Indeed this is not how things are supposed to work. At least on x86, this is how things are. There are vendor libs linked with static TLS model, which happens to be dynamically loaded, and people really want that to work. The libs cannot be recompiled (they come from nvidia).

If you want to keep risc-v "pure", it is up to you.

May 28 2025, 4:19 PM
jrtc27 added a comment to D50565: Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation".

I've gone digging and this looks like confusion importing NetBSD's code. This was applying https://github.com/NetBSD/src/commit/cc08a85a2529815b95799c6500b40a2c596c0c93 to our tree, just as 91880e07f605edb90339685bc934699a4344de3b was https://github.com/NetBSD/src/commit/3caa8dc7351c8383b2c3832b2610624b347e9065. The key point is that FreeBSD's tlsoffset is always relative to the TCB, whereas for Variant I TLS on NetBSD it's relative to the end of the TCB. So the original code was wrong for NetBSD but right for FreeBSD, and the updated code fixed it for NetBSD but broke FreeBSD by importing it. Will update the commit message with a properly-written summary tomorrow.

May 28 2025, 5:06 AM
jrtc27 added a comment to D50564: libc/riscv: Fix initial exec TLS mode for dynamically loaded shared objects.

NB: I do intend to do that cleanup, just not tonight

May 28 2025, 1:23 AM
jrtc27 added a reverting change for rGe9a38ed2fa61: rtld: fix allocate_module_tls() variant I fallback to static allocation: D50565: Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation".
May 28 2025, 1:22 AM
jrtc27 requested review of D50565: Revert "rtld: fix allocate_module_tls() variant I fallback to static allocation".
May 28 2025, 1:21 AM
jrtc27 requested review of D50564: libc/riscv: Fix initial exec TLS mode for dynamically loaded shared objects.
May 28 2025, 1:21 AM
jrtc27 requested review of D50563: rtld-elf/riscv: Don't allocate static TLS for dynamic TLS.
May 28 2025, 1:21 AM

May 22 2025

jrtc27 accepted D50475: rtld: get syscall implementations from libsys.
May 22 2025, 9:22 PM
jrtc27 added inline comments to D50475: rtld: get syscall implementations from libsys.
May 22 2025, 7:09 PM
jrtc27 added a comment to D50459: release: Avoid pipe in tarball creation.

would it not be even faster, and sidestep the issue entirely, if we just used bsdtar's -J flag

Good point, although that might be GNU tar on other systems? If so -J should be fine but is --options xz:threads=0 handled?

May 22 2025, 6:44 PM
jrtc27 added a comment to D50459: release: Avoid pipe in tarball creation.

macOS's /bin/sh is governed by /private/var/select/sh. On my system it's /bin/bash and supposedly new macOS installs will default it to /bin/dash (at least according to tools/build/Makefile, which links /bin/bash into the tmp path as sh) so will hit the same issue. Is there a reason to use the pipe though; would it not be even faster, and sidestep the issue entirely, if we just used bsdtar's -J flag? (You can set xz:compression-level and xz:threads on the command line)

May 22 2025, 6:19 PM
jrtc27 updated the diff for D50468: share: Delete bitrotted make_*_driver.sh scripts.

Unhook from build and clean up

May 22 2025, 5:09 PM