Page MenuHomeFreeBSD

jhb (John Baldwin)
User

Projects (10)

User Details

User Since
Mar 11 2014, 8:46 PM (604 w, 5 d)

Recent Activity

Fri, Oct 10

jhb committed rG07f4fa7a0db9: ahci: Don't fail attach if the MSI-X BARs cannot be allocated (authored by jhb).
ahci: Don't fail attach if the MSI-X BARs cannot be allocated
Fri, Oct 10, 9:05 PM
jhb committed rG567234916425: ahci: Use pci_msix_*_bar instead of reading config registers directly (authored by jhb).
ahci: Use pci_msix_*_bar instead of reading config registers directly
Fri, Oct 10, 9:05 PM
jhb committed rG5660178fd14b: Fix possible out of bounds read in armv8_crc32c (authored by Zhongqi Zhao <zz479@cam.ac.uk>).
Fix possible out of bounds read in armv8_crc32c
Fri, Oct 10, 9:05 PM
jhb committed rGfb939e88ba19: ahci: Don't fail attach if the MSI-X BARs cannot be allocated (authored by jhb).
ahci: Don't fail attach if the MSI-X BARs cannot be allocated
Fri, Oct 10, 9:05 PM
jhb committed rG64b51d35cef5: Fix possible out of bounds read in armv8_crc32c (authored by Zhongqi Zhao <zz479@cam.ac.uk>).
Fix possible out of bounds read in armv8_crc32c
Fri, Oct 10, 9:05 PM
jhb committed rGec598fa915ee: ahci: Use pci_msix_*_bar instead of reading config registers directly (authored by jhb).
ahci: Use pci_msix_*_bar instead of reading config registers directly
Fri, Oct 10, 9:05 PM
Herald added a reviewer for D52401: Fix possible out of bound read in armv8_crc32c: cheri.
Fri, Oct 10, 9:05 PM
jhb requested review of D53031: cxgbe: Drop resource IDs from softc.
Fri, Oct 10, 6:42 PM
jhb requested review of D53030: cxgbe: Stop using bus_space_tag/handle directly.
Fri, Oct 10, 6:42 PM

Thu, Oct 9

jhb committed rG1435a9b293e2: ctld: Defer initialization of NVMeoF associations (authored by jhb).
ctld: Defer initialization of NVMeoF associations
Thu, Oct 9, 7:29 PM
jhb closed D52844: ctld: Defer initialization of NVMeoF associations.
Thu, Oct 9, 7:29 PM

Mon, Oct 6

jhb committed rGb658158e9396: ahci: Don't fail attach if the MSI-X BARs cannot be allocated (authored by jhb).
ahci: Don't fail attach if the MSI-X BARs cannot be allocated
Mon, Oct 6, 5:57 PM
jhb committed rG762f1c7c6cde: ahci: Use pci_msix_*_bar instead of reading config registers directly (authored by jhb).
ahci: Use pci_msix_*_bar instead of reading config registers directly
Mon, Oct 6, 5:57 PM
jhb closed D52889: ahci: Don't fail attach if the MSI-X BARs cannot be allocated.
Mon, Oct 6, 5:57 PM
jhb closed D52888: ahci: Use pci_msix_*_bar instead of reading config registers directly.
Mon, Oct 6, 5:57 PM
jhb added inline comments to D52889: ahci: Don't fail attach if the MSI-X BARs cannot be allocated.
Mon, Oct 6, 5:43 PM
jhb added inline comments to D52820: arch.7: deprecate __ILP32__ and __LP64__ macros.
Mon, Oct 6, 3:00 PM
jhb accepted D52822: arch.7: Add CHERI architectures.
Mon, Oct 6, 2:55 PM
jhb accepted D52821: arch.7: decouple long and pointer sizes.
Mon, Oct 6, 2:53 PM

Fri, Oct 3

jhb committed rGaa9e4fe3c902: getconf: Report value of _SC_PHYS_PAGES (authored by jwb).
getconf: Report value of _SC_PHYS_PAGES
Fri, Oct 3, 8:45 PM
jhb committed rG5c331f449e9c: fcntlflags_test: Port to atf-c(3) (authored by jhb).
fcntlflags_test: Port to atf-c(3)
Fri, Oct 3, 5:13 PM
jhb committed rGdfd7d1610aeb: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONBIO/FIOASYNC) (authored by jhb).
filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONBIO/FIOASYNC)
Fri, Oct 3, 5:13 PM
jhb closed D52720: fcntlflags_test: Port to atf-c(3).
Fri, Oct 3, 5:13 PM
jhb closed D52721: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONIO/FIOASYNC).
Fri, Oct 3, 5:13 PM
jhb added inline comments to D52800: closefrom_test: Convert to atf-c(3).
Fri, Oct 3, 4:56 PM
jhb added inline comments to D52800: closefrom_test: Convert to atf-c(3).
Fri, Oct 3, 4:48 PM
jhb requested review of D52889: ahci: Don't fail attach if the MSI-X BARs cannot be allocated.
Fri, Oct 3, 4:40 PM
jhb requested review of D52888: ahci: Use pci_msix_*_bar instead of reading config registers directly.
Fri, Oct 3, 4:40 PM
jhb added inline comments to D52885: (draft) style.9: Encourage style changes when doing significant modifications.
Fri, Oct 3, 3:51 PM
jhb added inline comments to D52721: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONIO/FIOASYNC).
Fri, Oct 3, 3:31 PM
jhb updated the diff for D52721: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONIO/FIOASYNC).

Rework switch statement

Fri, Oct 3, 2:36 PM

Wed, Oct 1

jhb requested review of D52844: ctld: Defer initialization of NVMeoF associations.
Wed, Oct 1, 10:25 PM

Tue, Sep 30

jhb added inline comments to D52721: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONIO/FIOASYNC).
Tue, Sep 30, 3:49 PM
jhb requested review of D52800: closefrom_test: Convert to atf-c(3).
Tue, Sep 30, 3:42 PM
jhb requested review of D52799: closefrom_test: Fix the first test.
Tue, Sep 30, 3:42 PM

Thu, Sep 25

jhb added a comment to D52721: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONIO/FIOASYNC).

Typo in commit title: s/FIONIO/FIONBIO/

Thu, Sep 25, 9:10 AM
jhb requested review of D52720: fcntlflags_test: Port to atf-c(3).
Thu, Sep 25, 7:52 AM
jhb requested review of D52721: filedesc: Close race between fcntl(F_SETFL) and ioctl(FIONIO/FIOASYNC).
Thu, Sep 25, 7:52 AM

Tue, Sep 16

jhb committed rG99213b3c352c: aarch64: Save correct value of x18 on trapframe for nested faults (authored by def).
aarch64: Save correct value of x18 on trapframe for nested faults
Tue, Sep 16, 11:25 AM
jhb committed rG7314f78b240b: aarch64: Clarify the initial adjustments to sp for kernel exception entry (authored by jhb).
aarch64: Clarify the initial adjustments to sp for kernel exception entry
Tue, Sep 16, 11:25 AM
jhb closed D52472: aarch64: Save correct value of x18 on trapframe for nested faults.
Tue, Sep 16, 11:25 AM
jhb closed D52514: aarch64: Clarify the initial adjustments to sp for kernel exception entry.
Tue, Sep 16, 11:25 AM

Sep 13 2025

jhb updated the diff for D52472: aarch64: Save correct value of x18 on trapframe for nested faults.

Rebase on new commit

Sep 13 2025, 5:05 PM
jhb requested review of D52514: aarch64: Clarify the initial adjustments to sp for kernel exception entry.
Sep 13 2025, 5:05 PM

Sep 12 2025

jhb added inline comments to D52472: aarch64: Save correct value of x18 on trapframe for nested faults.
Sep 12 2025, 7:16 PM
jhb added inline comments to D44598: bge(4): Add WOL support.
Sep 12 2025, 4:48 PM
jhb accepted D52399: tools: Drop cryptotest.
Sep 12 2025, 3:14 PM
jhb added inline comments to D52472: aarch64: Save correct value of x18 on trapframe for nested faults.
Sep 12 2025, 1:35 PM

Sep 11 2025

jhb committed rGd869395ac4bd: cxgbe tom: Send auxiliary TLS work requests as raw WR mbufs (authored by jhb).
cxgbe tom: Send auxiliary TLS work requests as raw WR mbufs
Sep 11 2025, 9:13 PM
jhb committed rGa7aab22d2bf3: cxgbe tom: Export alloc_raw_mbuf for use in other TOE drivers (authored by jhb).
cxgbe tom: Export alloc_raw_mbuf for use in other TOE drivers
Sep 11 2025, 9:13 PM
jhb committed rG5a3885768490: cxgbe tom: Halve the size of offload transmit software descriptors (authored by jhb).
cxgbe tom: Halve the size of offload transmit software descriptors
Sep 11 2025, 9:13 PM
jhb committed rGe2a2a7581c96: cxgbe tom: Support sending "raw" WR mbufs on plain TCP and TLS sockets (authored by jhb).
cxgbe tom: Support sending "raw" WR mbufs on plain TCP and TLS sockets
Sep 11 2025, 9:13 PM
jhb closed D47763: cxgbe tom: Send auxiliary TLS work requests as raw WR mbufs.
Sep 11 2025, 9:13 PM
jhb closed D47762: cxgbe tom: Export alloc_raw_mbuf for use in other TOE drivers.
Sep 11 2025, 9:13 PM
jhb closed D47761: cxgbe tom: Support sending "raw" WR mbufs on plain TCP and TLS sockets.
Sep 11 2025, 9:13 PM
jhb closed D47759: cxgbe tom: Halve the size of offload transmit software descriptors.
Sep 11 2025, 9:13 PM
jhb added a comment to D52472: aarch64: Save correct value of x18 on trapframe for nested faults.

The point is any nested kernel exception saves the "wrong" value in the x18 stack in the trapframe. That value isn't used during exception exit so it doesn't matter currently (though Konrad I think does depend on changing x18 in trapframes downstream). The way this is visible in kgdb is that when you unwind across a nested exception, gdb believes that x18's value is saved in the trapframe (it just always believes the trapframe layout for any exception) so if you do p $x18 in the frames "above" a nested exception it will not reflect the actual value the CPU was using. So this is true for any nested exception (e.g. a device interrupt taking while handling a system call).

Sep 11 2025, 1:46 PM
jhb added a comment to D52210: OptionalObsoleteFiles.inc: Treat compat runtime loaders as libraries.

I guess my view is that OLD_LIBS is really there so that soname bumps don't break existing binaries; you need the new library to be able to build the new binary, but don't want a window between installing the new library and being able to build the new binary where it doesn't work. That isn't really important for this case, because you can just not set WITHOUT_LIBFOO until you've updated all your binaries to not use that ABI. But at the same time, if we're using OLD_LIBS for all the libraries here, then yes, that's pointless if you're using OLD_FILES for rtld itself.

Sep 11 2025, 1:42 PM

Sep 10 2025

jhb added a comment to D52472: aarch64: Save correct value of x18 on trapframe for nested faults.

I had worked on this patch a while ago due to the weird kgdb issue, but @def has some downstream changes in CheriBSD where the wrong saved value in the trapframe matters outside of just debugging I believe.

Sep 10 2025, 2:29 PM
jhb requested review of D52472: aarch64: Save correct value of x18 on trapframe for nested faults.
Sep 10 2025, 2:28 PM
jhb committed rG3c152a3de42a: fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC (authored by jhb).
fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC
Sep 10 2025, 2:28 PM
jhb closed D52403: fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC.
Sep 10 2025, 2:28 PM
jhb committed rGf48b1a34ef85: Fix possible out of bounds read in armv8_crc32c (authored by Zhongqi Zhao <zz479@cam.ac.uk>).
Fix possible out of bounds read in armv8_crc32c
Sep 10 2025, 2:22 PM
jhb closed D52401: Fix possible out of bound read in armv8_crc32c.
Sep 10 2025, 2:22 PM
jhb added a comment to D52403: fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC.
In D52403#1198184, @kib wrote:
In D52403#1198039, @jhb wrote:
In D52403#1196680, @kib wrote:

We need some file lock to prevent parallel threads from corrupting nonblock/async state vs flags.

That is an old bug though? If it is just F_SETFL I would be happy to use a pool of sx locks or the like just for F_SETFL.

This is a separate bug and should get a separate fix.

Do we want to introduce sx pool? I think a pair of bit in f_vnread_flag similar to FOFFSET_LOCKED/WANT_LOCK and the existing mtx pool would be enough.

Sep 10 2025, 2:06 PM

Sep 9 2025

jhb added a comment to D52403: fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC.
In D52403#1196680, @kib wrote:

We need some file lock to prevent parallel threads from corrupting nonblock/async state vs flags.

Sep 9 2025, 5:47 PM

Sep 5 2025

jhb added reviewers for D52403: fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC: mckusick, asomers.
Sep 5 2025, 8:09 PM
jhb updated subscribers of D52403: fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC.

The bug of always reverting back to disabling FIONBIO dates back to the very first version of fcntl() 42 years ago: https://svnweb.freebsd.org/csrg/sys/kern/kern_descrip.c?r1=12748&r2=12747&pathrev=12748

Sep 5 2025, 8:08 PM
jhb added a comment to D52401: Fix possible out of bound read in armv8_crc32c.

I tested this in QEMU by using an NVMeoF connection using CRC32 digests over to another x86 VM running the target side of the NVMeoF connection.

Sep 5 2025, 7:56 PM
jhb requested review of D52403: fcntl(F_SETFL): Don't unconditionally invoke FIONBIO and FIOASYNC.
Sep 5 2025, 7:50 PM
jhb requested review of D52401: Fix possible out of bound read in armv8_crc32c.
Sep 5 2025, 7:33 PM

Sep 4 2025

jhb closed D52359: rtw89: Remove an unneeded __DECONST.
Sep 4 2025, 2:33 PM
jhb committed rGe2761a8567f3: rtw89: Remove an unneeded __DECONST (authored by jhb).
rtw89: Remove an unneeded __DECONST
Sep 4 2025, 2:33 PM
jhb added a comment to D52359: rtw89: Remove an unneeded __DECONST.

Thanks, I will update the commit log.

Sep 4 2025, 2:07 PM

Sep 3 2025

jhb added a comment to D52359: rtw89: Remove an unneeded __DECONST.

I suspect this was added while working on a merge from upstream early in the merge process but then made unnecessary later in the merge process. This raises an error on CheriBSD since the enum value is cast to a uintptr_t and then back to an enum inside of __DECONST and that looks like a cast to a capability from an integer which raises the error.

Sep 3 2025, 3:27 PM
jhb requested review of D52359: rtw89: Remove an unneeded __DECONST.
Sep 3 2025, 3:25 PM
jhb added a comment to D52163: pci_iov: Reuse downstream bridge bus window if it already covers VF bus.

I need to think about this. I don't really want to have the PCI bus directly reading the config registers from the parent bridge. It's also true that you want to not release the bus until all VFs using that bus have been torn down, so you really kind of want a refcounted bus_alloc_resource here (in essence). It might be that just switching from RF_ACTIVE to RF_SHAREABLE when calling bus_alloc_resource is sufficient however.

Sep 3 2025, 1:53 PM
jhb accepted D52112: nvme: Switch to using unmapped pages for passthrough data transfer.
Sep 3 2025, 1:43 PM
jhb accepted D52351: sys: Rename BLOAT_KERNEL_WITH_EXTERR to EXTERR_STRINGS.
Sep 3 2025, 1:05 PM

Sep 2 2025

jhb committed rG164597439270: ctld: Add missing initializers for several class members (authored by jhb).
ctld: Add missing initializers for several class members
Sep 2 2025, 6:41 PM

Aug 29 2025

jhb added a comment to D52009: secure/lib/lib{crypto,ssl}: regenerate Makefiles.

I think it would be useful (if possible) to reformat the list of existing SRCS as a separate commit. It will be clearer what the differences from the regeneration are when it comes to reviewing those, and will also be easier to bisect if needed.

Aug 29 2025, 12:54 PM

Aug 28 2025

jhb committed rG35d271a4c762: bsd.man.mk: Handle relative paths for MK_MANCOMPRESS=no (authored by jhb).
bsd.man.mk: Handle relative paths for MK_MANCOMPRESS=no
Aug 28 2025, 5:36 PM
jhb committed rG6d0016aea26b: ObsoleteFiles.inc: Treat usr/lib/libwind.so.11 as a library (authored by jhb).
ObsoleteFiles.inc: Treat usr/lib/libwind.so.11 as a library
Aug 28 2025, 5:36 PM
jhb closed D52208: ObsoleteFiles.inc: Treat usr/lib/libwind.so.11 as a library.
Aug 28 2025, 5:36 PM
jhb added a comment to D52210: OptionalObsoleteFiles.inc: Treat compat runtime loaders as libraries.

Replaces part of D52194 where there is some discussion. This was broken in the original addition of MK_LIB32==no removal in rG74c52c652633228dead1f7f5e7e46e21cb518a67.

Aug 28 2025, 3:17 PM
jhb added a comment to D52208: ObsoleteFiles.inc: Treat usr/lib/libwind.so.11 as a library.

Replaces part of D52194

Aug 28 2025, 3:16 PM
jhb requested review of D52210: OptionalObsoleteFiles.inc: Treat compat runtime loaders as libraries.
Aug 28 2025, 3:16 PM
jhb requested review of D52208: ObsoleteFiles.inc: Treat usr/lib/libwind.so.11 as a library.
Aug 28 2025, 3:12 PM
jhb added a comment to D52194: OptionalObsoleteFiles.inc: Don't include shared libraries in OLD_FILES.

For now I will split some parts of this out into separate reviews.

Aug 28 2025, 3:11 PM
jhb added inline comments to D52194: OptionalObsoleteFiles.inc: Don't include shared libraries in OLD_FILES.
Aug 28 2025, 1:54 PM
jhb added inline comments to D52194: OptionalObsoleteFiles.inc: Don't include shared libraries in OLD_FILES.
Aug 28 2025, 1:09 AM

Aug 27 2025

jhb added a reviewer for D52194: OptionalObsoleteFiles.inc: Don't include shared libraries in OLD_FILES: ivy.
Aug 27 2025, 8:34 PM
jhb added inline comments to D52194: OptionalObsoleteFiles.inc: Don't include shared libraries in OLD_FILES.
Aug 27 2025, 8:31 PM
jhb requested review of D52194: OptionalObsoleteFiles.inc: Don't include shared libraries in OLD_FILES.
Aug 27 2025, 8:29 PM
jhb committed rG557cc0f350e7: bsd.man.mk: Handle MANSRC.{TARGET} for MK_MANCOMPRESS=no and empty MANBUILDCAT (authored by jhb).
bsd.man.mk: Handle MANSRC.{TARGET} for MK_MANCOMPRESS=no and empty MANBUILDCAT
Aug 27 2025, 8:12 PM
jhb closed D52181: bsd.man.mk: Handle MANSRC.{TARGET} for MK_MANCOMPRESS=no and empty MANBUILDCAT.
Aug 27 2025, 8:12 PM
jhb updated the diff for D52181: bsd.man.mk: Handle MANSRC.{TARGET} for MK_MANCOMPRESS=no and empty MANBUILDCAT.

Simplify and add CLEANFILES

Aug 27 2025, 5:59 PM
jhb added inline comments to D52181: bsd.man.mk: Handle MANSRC.{TARGET} for MK_MANCOMPRESS=no and empty MANBUILDCAT.
Aug 27 2025, 5:56 PM
jhb requested review of D52181: bsd.man.mk: Handle MANSRC.{TARGET} for MK_MANCOMPRESS=no and empty MANBUILDCAT.
Aug 27 2025, 3:48 PM

Aug 26 2025

jhb committed rG159503125826: libutil++: Rename manpage source files to avoid colons (authored by jhb).
libutil++: Rename manpage source files to avoid colons
Aug 26 2025, 8:46 PM