Page MenuHomeFreeBSD

jhb (John Baldwin)
User

Projects (10)

User Details

User Since
Mar 11 2014, 8:46 PM (619 w, 3 d)

Recent Activity

Yesterday

jhb committed R11:ddeff036cd53: devel/freebsd_gcc12: Update to 12.4.0.
Fri, Jan 23, 7:17 PM
jhb committed R11:4be82b199fd3: devel/freebsd_gcc13: Update to 13.3.0.
Fri, Jan 23, 7:17 PM
jhb committed R11:28b7c409a6c6: devel/freebsd_gcc14: Update to 14.2.0.
Fri, Jan 23, 7:17 PM

Thu, Jan 22

jhb committed rG5eb1d4eec676: rpctls_impl.c: Use a direct cast to uintptr_t instead of __DECONST.
Thu, Jan 22, 9:08 PM

Tue, Jan 20

jhb closed D52210: OptionalObsoleteFiles.inc: Treat compat runtime loaders as libraries.
Tue, Jan 20, 5:08 PM
jhb committed rG8e1c85f03260: OptionalObsoleteFiles.inc: Treat compat runtime loaders as libraries.
Tue, Jan 20, 5:08 PM
jhb requested review of D54798: ext2fs: Simplify location of entries in an HTree index.
Tue, Jan 20, 3:59 PM
jhb requested review of D54797: rpctls_impl.c: Use a direct cast to uintptr_t instead of __DECONST.
Tue, Jan 20, 3:39 PM

Mon, Jan 19

jhb abandoned D54298: [PHB]: Only document __FreeBSD_version values for supported branches.
Mon, Jan 19, 6:33 PM
jhb committed rG3a6289e1e53f: .github: Disable checklist workflow on forks.
Mon, Jan 19, 3:57 PM

Fri, Jan 16

jhb added a comment to D54298: [PHB]: Only document __FreeBSD_version values for supported branches.

Ping, what do we think about trimming this file down to only supported branches?

Fri, Jan 16, 4:07 PM

Thu, Jan 15

jhb committed rG5bd84c4f0d01: acpi: Add a function to deregister all ioctl commands using the same function.
Thu, Jan 15, 6:25 PM
jhb committed rG6d6bf4a892d6: rtld: Use a helper variable to simplify a few lines.
Thu, Jan 15, 6:25 PM
jhb committed rG4ba8df2a8bb9: .github: Narrow sys/crypto warning to sys/crypto/skein.
Thu, Jan 15, 6:25 PM
jhb closed D54420: acpi: Add a function to deregister all ioctl commands using the same function.
Thu, Jan 15, 6:25 PM
jhb closed D54507: rtld: Use a helper variable to simplify a few lines.
Thu, Jan 15, 6:25 PM
jhb closed D54719: .github: Narrow sys/crypto warning to sys/crypto/skein.
Thu, Jan 15, 6:24 PM
jhb added a reviewer for D54420: acpi: Add a function to deregister all ioctl commands using the same function: jkim.
Thu, Jan 15, 1:50 AM
jhb accepted D54714: nvme: Add ability to override ioq to put the request on.

Yes, the queue field is only 16 bits and queue 0 is always reserved for the admin queue, so I/O queues are 1...65535 meaning num_io_queues will always be <= 65535, so the ioq range for the new function can only be 0..65534.

Thu, Jan 15, 1:49 AM

Wed, Jan 14

jhb requested review of D54719: .github: Narrow sys/crypto warning to sys/crypto/skein.
Wed, Jan 14, 8:22 PM
jhb updated the diff for D54507: rtld: Use a helper variable to simplify a few lines.

Rename variable

Wed, Jan 14, 8:04 PM
jhb added a comment to D54714: nvme: Add ability to override ioq to put the request on.

(I would probably put the uint16_t before the two existing bool fields, so that the fields are somewhat sorted by size, but that doesn't really matter)

Wed, Jan 14, 6:44 PM
jhb added a comment to D54714: nvme: Add ability to override ioq to put the request on.

Hmm, today on amd64 nvme_request is 128 bytes, so packing the ioq is probably worth doing. Note that you could just add the new field as a uint16_t in place of the two spare bools.

Wed, Jan 14, 6:42 PM
jhb committed rG3ea97c9de2b2: rtld: Switch to using <assert.h> for assert.
Wed, Jan 14, 5:12 PM
jhb closed D54712: rtld: Switch to using <assert.h> for assert.
Wed, Jan 14, 5:12 PM
jhb committed rGe96ec1a1eb93: rtld: Use uintptr_t instead of Elf_Addr for init/fini function pointers.
Wed, Jan 14, 5:12 PM
jhb closed D54711: rtld: Use uintptr_t instead of Elf_Addr for init/fini function pointers.
Wed, Jan 14, 5:12 PM
jhb closed D54710: rtld: Simplify walking program headers.
Wed, Jan 14, 5:11 PM
jhb committed rG31a440a0e9a2: rtld: Simplify walking program headers.
Wed, Jan 14, 5:11 PM
jhb closed D54399: swab: Correctly treat the data as misaligned.
Wed, Jan 14, 5:11 PM
jhb committed rG2a5c5b8f7cdd: swab: Correctly treat the data as misaligned.
Wed, Jan 14, 5:11 PM
jhb added a reviewer for D54507: rtld: Use a helper variable to simplify a few lines: kib.
Wed, Jan 14, 4:30 PM
jhb added a comment to D54712: rtld: Switch to using <assert.h> for assert.
In D54712#1249912, @kib wrote:

No, this is not going to work. This brings stdio + locale into rtld.

Wed, Jan 14, 4:15 PM
jhb added a comment to D54710: rtld: Simplify walking program headers.
In D54710#1249915, @jhb wrote:
In D54710#1249909, @kib wrote:

I think this is fine, but for completeness we probably should check that ehdr->e_phentsize == sizeof(Elf_Phdr), and return if not.

Yes. I do think we already check AT_PHENT, but might not be checking the size in the ehdr. Granted, that's a bug in the current code, and I might fix it in a separate commit.

Wed, Jan 14, 4:12 PM
jhb added a comment to D54710: rtld: Simplify walking program headers.
In D54710#1249909, @kib wrote:

I think this is fine, but for completeness we probably should check that ehdr->e_phentsize == sizeof(Elf_Phdr), and return if not.

Wed, Jan 14, 4:01 PM
jhb added a comment to D54710: rtld: Simplify walking program headers.

I wonder if we want to add some validity checking on ph->p_memsz while we're here? I think a wrong p_memsz will be handled the same before/after this change so it's fine from that perspective, it's more general pondering about what if any validation rtld ought to do.

Wed, Jan 14, 4:00 PM
jhb added a comment to D54712: rtld: Switch to using <assert.h> for assert.
In D54712#1249886, @imp wrote:

I'm agnostic on the NDEBUG issue, though have 'never disable assert' leanings. But just leanings, since performance is also important and I don't know the lay of the land here to have an informed opinion.

Wed, Jan 14, 3:57 PM
jhb added inline comments to D54710: rtld: Simplify walking program headers.
Wed, Jan 14, 3:33 PM
jhb added a comment to D54712: rtld: Switch to using <assert.h> for assert.

One consequence of this change is that NDEBUG will now disable assertions in rtld itself (and not just the bits of libc pulled into rtld-libc.a). Downstream in CheriBSD we #undef'd NDEBUG in debug.h, but I think honoring NDEBUG might be the better approach?

Wed, Jan 14, 3:32 PM
jhb requested review of D54712: rtld: Switch to using <assert.h> for assert.
Wed, Jan 14, 3:30 PM
jhb requested review of D54711: rtld: Use uintptr_t instead of Elf_Addr for init/fini function pointers.
Wed, Jan 14, 3:30 PM
jhb requested review of D54710: rtld: Simplify walking program headers.
Wed, Jan 14, 3:30 PM
jhb closed D54506: csu: Remove unused constant.
Wed, Jan 14, 1:00 AM
jhb committed rG113dc9ed9887: csu: Remove unused constant.
Wed, Jan 14, 12:54 AM
jhb added inline comments to D54507: rtld: Use a helper variable to simplify a few lines.
Wed, Jan 14, 12:49 AM
jhb added a comment to D54399: swab: Correctly treat the data as misaligned.

Ping

Wed, Jan 14, 12:49 AM

Sun, Jan 4

jhb requested review of D54507: rtld: Use a helper variable to simplify a few lines.
Sun, Jan 4, 9:45 PM
jhb requested review of D54506: csu: Remove unused constant.
Sun, Jan 4, 9:44 PM

Fri, Jan 2

jhb added inline comments to D54397: netlink: Consistently use unsigned types for message and buffer lengths.
Fri, Jan 2, 8:52 PM

Wed, Dec 31

jhb updated the diff for D54399: swab: Correctly treat the data as misaligned.

Use memcpy

Wed, Dec 31, 12:53 PM
jhb updated the summary of D54399: swab: Correctly treat the data as misaligned.
Wed, Dec 31, 12:52 PM
jhb retitled D54399: swab: Correctly treat the data as misaligned from swab: Correctly annotate the data as misaligned.
Wed, Dec 31, 12:52 PM
jhb added a comment to D54399: swab: Correctly treat the data as misaligned.

The arm assembly for the memcpy() variant is identical FWIW.

Wed, Dec 31, 12:47 PM

Tue, Dec 30

jhb added a comment to D54399: swab: Correctly treat the data as misaligned.

Yes, I like the memcpy version better.

Tue, Dec 30, 7:17 PM
jhb updated the diff for D54162: netlink: Optimize growing the snl_writer message buffer.

Rebase on D54397

Tue, Dec 30, 4:32 PM
jhb updated the diff for D54397: netlink: Consistently use unsigned types for message and buffer lengths.

Pass tinderbox

Tue, Dec 30, 4:29 PM
jhb requested review of D54420: acpi: Add a function to deregister all ioctl commands using the same function.
Tue, Dec 30, 4:19 PM

Mon, Dec 29

jhb added a comment to D54399: swab: Correctly treat the data as misaligned.

Hmm, looking at the code both before and after this change on armv7, it is just using plain ldrh and strh which will fault on unaligned accesses?

Mon, Dec 29, 7:37 PM
jhb added a comment to D54399: swab: Correctly treat the data as misaligned.

I tried various permutations of alignas and that didn't work either. Also, alignas apparently can't weaken alignment, only strengthen it, and alignas can't be used in a typedef.

Mon, Dec 29, 5:37 PM
jhb requested review of D54399: swab: Correctly treat the data as misaligned.
Mon, Dec 29, 5:24 PM
jhb closed D53700: sys: Declare 'end' as an extern char so that &end is a char *.

D53898 is a duplicate (not sure how I ended up with two of these).

Mon, Dec 29, 4:38 PM
jhb requested review of D54397: netlink: Consistently use unsigned types for message and buffer lengths.
Mon, Dec 29, 4:26 PM

Fri, Dec 26

jhb added inline comments to D54376: cache: avoid hardcoded zone alignment.
Fri, Dec 26, 11:17 PM
jhb committed rGbd8296bd81d5: Build acpi kernel modules on aarch64.
Fri, Dec 26, 3:44 PM
jhb committed rGfe74d52de5dc: sys/modules/acpi/Makefile: One line per subdirectory.
Fri, Dec 26, 3:44 PM
jhb committed rG11757b1487e3: acpi: Statically initialize acpi_ioctl_hooks.
Fri, Dec 26, 3:44 PM
jhb committed rG425b41f81634: acpi: Use M_WAITOK in acpi_register_ioctl.
Fri, Dec 26, 3:44 PM
jhb committed rG4eb560faa725: acpi: Reject duplicate handlers for ioctl commands.
Fri, Dec 26, 3:44 PM
jhb committed rG88f8e3c5ab97: acpi_apei: Remove the hest member from the softc.
Fri, Dec 26, 3:44 PM
jhb closed D54314: sys/modules/acpi/Makefile: One line per subdirectory.
Fri, Dec 26, 3:44 PM
jhb closed D54315: Build acpi kernel modules on aarch64.
Fri, Dec 26, 3:44 PM
jhb committed rG5b39245ab6f3: acpi: Free ivars in bus_child_deleted method.
Fri, Dec 26, 3:44 PM
jhb closed D54312: acpi: Use M_WAITOK in acpi_register_ioctl.
Fri, Dec 26, 3:44 PM
jhb closed D54313: acpi: Statically initialize acpi_ioctl_hooks.
Fri, Dec 26, 3:44 PM
jhb committed rG6b2e4da44300: acpidump: Extend the decoding of entries in the EINJ and ERST tables.
Fri, Dec 26, 3:44 PM
jhb closed D54311: acpi: Reject duplicate handlers for ioctl commands.
Fri, Dec 26, 3:44 PM
jhb closed D54310: acpi_apei: Remove the hest member from the softc.
Fri, Dec 26, 3:44 PM
jhb closed D54309: acpi: Free ivars in bus_child_deleted method.
Fri, Dec 26, 3:44 PM
jhb closed D54308: acpidump: Extend the decoding of entries in the EINJ and ERST tables.
Fri, Dec 26, 3:44 PM

Dec 22 2025

jhb added inline comments to D54276: cxgbe.4: Update for recent HARDWARE.
Dec 22 2025, 4:32 PM
jhb added inline comments to D54332: bhyve(8): Fix consistency and terms in manpage.
Dec 22 2025, 4:21 PM
jhb added inline comments to D54322: wg: add a more useful debug message for an unknown family.
Dec 22 2025, 4:09 PM

Dec 19 2025

jhb added a comment to D54307: arm64: Support non-DMAP addresses for pmap_map_io_transient.

I think those issues are not made any worse by your patch? And the fix is something that RISC-V and amd64 would need as well (well, RISC-V also needs this patch). I think you should just merge your current patch and let @markj fix both amd64 and aarch64 when he adds the new arena.

Dec 19 2025, 6:25 PM
jhb added a comment to D54312: acpi: Use M_WAITOK in acpi_register_ioctl.

BTW, I've thought about adding an acpi_unregister_ioctl_all or the like that just takes the fn argument and unregisters all commands that use the same function. That would be a nicer way to handle unloading of a module that registers multiple handlers.

Dec 19 2025, 6:19 PM
jhb added inline comments to D54309: acpi: Free ivars in bus_child_deleted method.
Dec 19 2025, 6:17 PM
jhb added a reverting change for rGc759aca606ce: devinfo: Add support for libxo: rGed6612dea24f: Revert "devinfo: Add support for libxo".
Dec 19 2025, 6:17 PM
jhb added a reverting change for rGe8d6b58ef5a4: devinfo: Fix some libxo errors: rGed6612dea24f: Revert "devinfo: Add support for libxo".
Dec 19 2025, 6:17 PM
jhb added a reverting change for rG4cf5878d27dd: devinfo.8: Document libxo support: rGed6612dea24f: Revert "devinfo: Add support for libxo".
Dec 19 2025, 6:17 PM
jhb committed rGed6612dea24f: Revert "devinfo: Add support for libxo".
Dec 19 2025, 6:16 PM
jhb committed rG33bc1fb48e32: netlink: Don't overwrite existing data in a linear buffer in snl_writer.
Dec 19 2025, 4:56 PM
jhb committed rGb79115e13010: rman: Simplify initialization of internal globals.
Dec 19 2025, 3:33 PM
jhb committed rGbe89c92739ed: bsdinstall: Mount /dev and /packages after using the shell to partition disks.
Dec 19 2025, 3:33 PM
jhb committed rGc7cc4706504e: netlink: Don't overwrite existing data in a linear buffer in snl_writer.
Dec 19 2025, 3:33 PM
jhb committed rG7087adfd960a: proc0_post: Clear relevant thread stats directly.
Dec 19 2025, 3:33 PM
jhb committed rGcdad10ea780f: thread0: Clear td_rux stats in proc0_post.
Dec 19 2025, 3:33 PM
jhb committed rG5685988838e4: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Dec 19 2025, 3:33 PM
jhb committed rG6a99a27d4345: rman: Simplify initialization of internal globals.
Dec 19 2025, 3:33 PM
jhb committed rG11b309c0a717: netlink: Don't overwrite existing data in a linear buffer in snl_writer.
Dec 19 2025, 3:33 PM
jhb committed rG444d2f9e2152: bsdinstall: Mount /dev and /packages after using the shell to partition disks.
Dec 19 2025, 3:33 PM
jhb committed rG84140c99e54b: nvmf_tcp.4: Don't quote the document description given to .Nd.
Dec 19 2025, 3:33 PM