Page MenuHomeFreeBSD
Feed Search

Dec 18 2025

jhb added a comment to D54275: ktls: Capture initial tls seqno at time offload is initiated.

Maybe to make it clearer we can change the struct to use a union of next_seqno and initial_seqno which won't change the ABI but will let us document it in the header and be more clear about the intent?

Dec 18 2025, 4:26 PM

Dec 17 2025

jhb added inline comments to D54276: cxgbe.4: Update for recent HARDWARE.
Dec 17 2025, 9:01 PM

Dec 15 2025

jhb added a reverting change for rGc759aca606ce: devinfo: Add support for libxo: rG43b07bdbc5d2: Revert "devinfo: Add support for libxo".
Dec 15 2025, 3:37 PM
jhb added a reverting change for rGe8d6b58ef5a4: devinfo: Fix some libxo errors: rG43b07bdbc5d2: Revert "devinfo: Add support for libxo".
Dec 15 2025, 3:37 PM
jhb added a reverting change for rG4cf5878d27dd: devinfo.8: Document libxo support: rG43b07bdbc5d2: Revert "devinfo: Add support for libxo".
Dec 15 2025, 3:37 PM
jhb committed rG43b07bdbc5d2: Revert "devinfo: Add support for libxo".
Dec 15 2025, 3:37 PM
jhb closed D54196: Revert "devinfo: Add support for libxo".
Dec 15 2025, 3:37 PM
jhb added a comment to D54162: netlink: Optimize growing the snl_writer message buffer.

I actually have a much larger diff I'm working on to consistently use unsigned types for lengths in this header as well as fixing some potential integer overflow issues. I'll try to upload that later this week. I think I also fixed an overflow check in this patch as well as part of that.

Dec 15 2025, 2:54 PM

Dec 12 2025

jhb updated the diff for D54162: netlink: Optimize growing the snl_writer message buffer.

Drop memset

Dec 12 2025, 8:44 PM
jhb added a reverting change for rGc759aca606ce: devinfo: Add support for libxo: D54196: Revert "devinfo: Add support for libxo".
Dec 12 2025, 5:38 PM
jhb added a reverting change for rGe8d6b58ef5a4: devinfo: Fix some libxo errors: D54196: Revert "devinfo: Add support for libxo".
Dec 12 2025, 5:38 PM
jhb added a reverting change for rG4cf5878d27dd: devinfo.8: Document libxo support: D54196: Revert "devinfo: Add support for libxo".
Dec 12 2025, 5:38 PM
jhb requested review of D54196: Revert "devinfo: Add support for libxo".
Dec 12 2025, 5:38 PM
jhb updated the diff for D54161: bus: Renumber global IVAR ranges.

Update after removing BUS_IVAR_GICV3

Dec 12 2025, 2:59 PM
jhb updated the diff for D54159: bus: Document special ranges of IVARs.

Rename BUS_IVAR_GIC3 to BUS_IVAR_GICV3

Dec 12 2025, 2:59 PM
jhb requested review of D54191: arm gicv3: Use private IVAR range for GICV3 IVARs.
Dec 12 2025, 2:58 PM

Dec 11 2025

jhb added inline comments to D54159: bus: Document special ranges of IVARs.
Dec 11 2025, 5:34 PM
jhb added inline comments to D54162: netlink: Optimize growing the snl_writer message buffer.
Dec 11 2025, 5:31 PM

Dec 10 2025

jhb added a comment to D53898: sys: Declare 'end' as an extern char[].

Hmm, so does (vm_offset_t)&end still work after this change or should it instead drop the &?

Dec 10 2025, 4:31 PM
jhb retitled D53898: sys: Declare 'end' as an extern char[] from sys: Declare 'end' as an extern char so that &end is a char *
Dec 10 2025, 4:25 PM
jhb added a comment to D53898: sys: Declare 'end' as an extern char[].

Ah, so you could use (char *)foo - end in place of the casts? But not &end?

Dec 10 2025, 4:22 PM
jhb added a comment to D54158: pcib: Add a new IVAR returning the Thunderbolt generation of a bridge.

I think we just need some sort of IVAR we can test for and this is just as easy as any other. Can you test this to make sure it works? I have only compile tested it as my only FreeBSD box with TB has the older chipsets that don't work.

Dec 10 2025, 4:21 PM
jhb added inline comments to D54159: bus: Document special ranges of IVARs.
Dec 10 2025, 4:20 PM
jhb added inline comments to D54159: bus: Document special ranges of IVARs.
Dec 10 2025, 4:19 PM
jhb committed rG255af72c8059: netlink: Don't overwrite existing data in a linear buffer in snl_writer.
Dec 10 2025, 3:44 PM
jhb closed D54148: netlink: Don't overwrite existing data in a linear buffer in snl_writer.
Dec 10 2025, 3:44 PM
jhb added inline comments to D54162: netlink: Optimize growing the snl_writer message buffer.
Dec 10 2025, 3:36 PM
jhb requested review of D54162: netlink: Optimize growing the snl_writer message buffer.
Dec 10 2025, 3:32 PM
jhb added a comment to D54148: netlink: Don't overwrite existing data in a linear buffer in snl_writer.
In D54148#1237012, @jhb wrote:

Igor, are you able to test this again on your armv7 setup btw?

My testing passed. Now it's clear that my attempt to avoid extra copying on each reallocation was based on an assumption that isn't always true. It's a good plan to get back to always copying on each reallocation, as it was before, and think about an actual "buffer extension" mechanism that could be triggered when applicable.

Dec 10 2025, 3:27 PM

Dec 9 2025

jhb committed R9:0ce030d2265d: Document __FreeBSD_version bumps 1600004 and 1600005..
Dec 9 2025, 8:51 PM
jhb closed D53402: bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD.
Dec 9 2025, 8:38 PM
jhb requested review of D54161: bus: Renumber global IVAR ranges.
Dec 9 2025, 8:35 PM
jhb requested review of D54160: bus: Drop a couple of unused IVAR indices.
Dec 9 2025, 8:35 PM
jhb requested review of D54159: bus: Document special ranges of IVARs.
Dec 9 2025, 8:35 PM
jhb requested review of D54158: pcib: Add a new IVAR returning the Thunderbolt generation of a bridge.
Dec 9 2025, 8:32 PM
jhb requested review of D54155: acpi_gpiobus: Reuse the existing IVAR index for an ACPI handle.
Dec 9 2025, 8:27 PM
jhb committed rGca942ab4b2b6: bhnd_bus_*_resource: Remove redundant type and rid arguments.
Dec 9 2025, 8:13 PM
jhb committed rG1033312267d6: bhnd_bus_alloc_resource*: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb committed rGd08fac086f7c: dpaa2_rc_add_res: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb committed rG01dcb4e6645f: gpio_alloc_intr_resource: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb committed rG2a23faee4f12: acpi_bus_alloc_gas: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb committed rG10568445de92: acpi_PkgGas: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb committed rGd9f1922a33ee: pci_reserve_map: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb closed D53410: bhnd_bus_*_resource: Remove redundant type and rid arguments.
Dec 9 2025, 8:13 PM
jhb closed D53409: bhnd_bus_alloc_resource*: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb committed rGe279724ae5a7: resource_list_reserve: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb committed rG575639548cef: bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD.
Dec 9 2025, 8:13 PM
jhb closed D53408: dpaa2_rc_add_res: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb closed D53407: gpio_alloc_intr_resource: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb closed D53405: acpi_bus_alloc_gas: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb closed D53406: acpi_PkgGas: Pass rid by value.
Dec 9 2025, 8:13 PM
jhb closed D53404: pci_reserve_map: Pass rid by value.
Dec 9 2025, 8:12 PM
jhb closed D53403: resource_list_reserve: Pass rid by value.
Dec 9 2025, 8:12 PM
jhb added a reverting change for D53697: netlink: Fix overallocation of netlink message buffers: rG12165ac8407c: Revert "netlink: Fix overallocation of netlink message buffers".
Dec 9 2025, 8:00 PM
jhb added a reverting change for rG828df4d36d9d: netlink: Fix overallocation of netlink message buffers: rG12165ac8407c: Revert "netlink: Fix overallocation of netlink message buffers".
Dec 9 2025, 8:00 PM
jhb committed rG12165ac8407c: Revert "netlink: Fix overallocation of netlink message buffers".
Dec 9 2025, 7:59 PM
jhb added a comment to D53402: bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD.

I've had no luck getting responses from any drm-kmod folks despite pinging on reviews. I think I will just go ahead and push this to main now and reply to the commit saying it breaks drm-kmod and letting the drm-kmod folks sort it out.

Dec 9 2025, 4:03 PM
jhb committed rG701e4b36b451: zfs: Reuse ZINCDIR variable from kmod.mk.
Dec 9 2025, 4:01 PM
jhb closed D54147: zfs: Reuse ZINCDIR variable from kmod.mk.
Dec 9 2025, 4:00 PM
jhb closed D54142: rman: Simplify initialization of internal globals.
Dec 9 2025, 4:00 PM
jhb closed D54143: rman: Embed the mutex in struct rman instead of using a separate allocation.
Dec 9 2025, 4:00 PM
jhb committed rGa35eae89cbdd: rman: Simplify initialization of internal globals.
Dec 9 2025, 4:00 PM
jhb committed rG305f85a3d6f2: rman: Embed the mutex in struct rman instead of using a separate allocation.
Dec 9 2025, 4:00 PM
jhb committed rGe2b8be511e90: nvmf_che: Add a manual page for the Chelsio NVMe/TCP PDU offload driver.
Dec 9 2025, 3:59 PM
jhb committed rGd8556d2bad40: nvmf_tcp.4: Don't quote the document description given to .Nd.
Dec 9 2025, 3:58 PM
jhb closed D53764: nvmf_che: Add a manual page for the Chelsio NVMe/TCP PDU offload driver.
Dec 9 2025, 3:58 PM
jhb committed rGbc2b10a59314: cxgbe: Stop using bus_space_tag/handle directly.
Dec 9 2025, 3:55 PM
jhb closed D53030: cxgbe: Stop using bus_space_tag/handle directly.
Dec 9 2025, 3:54 PM
jhb added a comment to D54148: netlink: Don't overwrite existing data in a linear buffer in snl_writer.
In D54148#1236974, @kp wrote:

What's this based on? It doesn't seem to want to apply to FreeBSD main (f9500e75791cf793904c80ca4a52433afd585a23).

I manually applied it to my cheri tree, and that does indeed work.

Dec 9 2025, 3:36 PM
jhb added inline comments to D54147: zfs: Reuse ZINCDIR variable from kmod.mk.
Dec 9 2025, 3:32 PM
jhb added a comment to D54143: rman: Embed the mutex in struct rman instead of using a separate allocation.

Hopefully rman routines are not used in any critical paths (attach/detach handlers should be a relatively rare path compared to, say, an interrupt handler)

Dec 9 2025, 3:29 PM

Dec 8 2025

jhb added a comment to D54148: netlink: Don't overwrite existing data in a linear buffer in snl_writer.

After reverting my earlier fix (which I don't intend to MFC and by which I was distracted by the "optimization" of reusing the existing buffer), this fixes pfctl for me on CHERI. In effect, it makes Igor's original commit just add the missing 'nw->size = new_size'. I think that probably explains both of the issues Igor noted in the original commit log. The buffer overflows were caused by nw->offset exceeding nw->size and eventually the realloc'd buffer was simply too small as it was only 'nw->size + <size of current object needed>' which could easily be smaller than 'nw->offset' once you've appended a few things larger than the initial buffer size.

Dec 8 2025, 10:14 PM
jhb requested review of D54148: netlink: Don't overwrite existing data in a linear buffer in snl_writer.
Dec 8 2025, 10:10 PM
jhb requested review of D54147: zfs: Reuse ZINCDIR variable from kmod.mk.
Dec 8 2025, 9:38 PM
jhb closed D53770: bsdinstall: Mount /dev and /packages after using the shell to partition disks.
Dec 8 2025, 9:35 PM
jhb committed rGf63a8c0a0915: bsdinstall: Mount /dev and /packages after using the shell to partition disks.
Dec 8 2025, 9:35 PM
jhb requested review of D54143: rman: Embed the mutex in struct rman instead of using a separate allocation.
Dec 8 2025, 6:54 PM
jhb requested review of D54142: rman: Simplify initialization of internal globals.
Dec 8 2025, 6:54 PM
jhb committed rGacd02443a952: proc0_post: Clear relevant thread stats directly.
Dec 8 2025, 4:17 PM
jhb closed D54050: proc0_post: Clear relevant thread stats directly.
Dec 8 2025, 4:17 PM
jhb committed rGdafe50ebd874: thread0: Clear td_rux stats in proc0_post.
Dec 8 2025, 4:17 PM
jhb closed D54040: thread0: Clear td_rux stats in proc0_post.
Dec 8 2025, 4:17 PM
jhb committed rG3f8ed605dbd0: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Dec 8 2025, 4:17 PM
jhb closed D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Dec 8 2025, 4:17 PM

Dec 5 2025

jhb added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Dec 5 2025, 3:08 PM
jhb created P680 Command-Line Input.
Dec 5 2025, 2:30 PM
jhb accepted D54078: bus: Return 0 if reading an ivar fails.

Hmmm, I wonder if 0 is the right thing vs something like 0xdeadc0de. We have a few explicit IVAR handlers that intentionally return a default value (e.g. acpi_get_handle()) and those do tend to be zero (and in those cases we don't KASSERT). I have a patch in a branch to add a new one like that for ThunderBolt PCI bridges even. 0 is probably fine as a default, but @imp might also have an opinion.

Dec 5 2025, 1:16 PM

Dec 4 2025

jhb committed rG61ffc1bf8c42: MAC: Rename mac_cred_create_swapper to mac_cred_create_kproc0.
Dec 4 2025, 7:53 PM
jhb committed rGf6910b09a230: sys: Remove/update references to the swapper process in various comments.
Dec 4 2025, 7:53 PM
jhb committed rG431b3b224db2: thread0: Stop calling thread0 "swapper".
Dec 4 2025, 7:53 PM
jhb closed D54052: MAC: Rename mac_cred_create_swapper to mac_cred_create_kproc0.
Dec 4 2025, 7:53 PM
jhb closed D54051: sys: Remove/update references to the swapper process in various comments.
Dec 4 2025, 7:53 PM
jhb closed D54039: thread0: Stop calling thread0 "swapper".
Dec 4 2025, 7:53 PM
jhb added a comment to D54051: sys: Remove/update references to the swapper process in various comments.

There is an occurrence of "swapper" in sys/vm/vnode_pager.c that seems to also point to the swapper process.

Dec 4 2025, 3:46 PM
jhb added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Dec 4 2025, 3:42 PM

Dec 3 2025

jhb requested review of D54052: MAC: Rename mac_cred_create_swapper to mac_cred_create_kproc0.
Dec 3 2025, 4:33 PM
jhb requested review of D54051: sys: Remove/update references to the swapper process in various comments.
Dec 3 2025, 4:33 PM
jhb updated the diff for D54040: thread0: Clear td_rux stats in proc0_post.

Use ruxreset

Dec 3 2025, 4:31 PM
jhb requested review of D54050: proc0_post: Clear relevant thread stats directly.
Dec 3 2025, 4:31 PM
jhb requested review of D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Dec 3 2025, 4:30 PM