Page MenuHomeFreeBSD
Feed Advanced Search

Mon, Nov 24

jhb committed rG828df4d36d9d: netlink: Fix overallocation of netlink message buffers (authored by jhb).
netlink: Fix overallocation of netlink message buffers
Mon, Nov 24, 3:59 PM
jhb requested review of D53898: sys: Declare 'end' as an extern char so that &end is a char *.
Mon, Nov 24, 3:58 PM
jhb closed D53697: netlink: Fix overallocation of netlink message buffers.
Mon, Nov 24, 3:58 PM
jhb committed rGf7ab908244e5: freebsd32_setcred: Copy all of the setcred fields individually (authored by jhb).
freebsd32_setcred: Copy all of the setcred fields individually
Mon, Nov 24, 3:55 PM
jhb committed rG6292eecfd95c: setcred: Move initial copyin of struct setcred out to per-ABI syscall (authored by jhb).
setcred: Move initial copyin of struct setcred out to per-ABI syscall
Mon, Nov 24, 3:55 PM
jhb committed rG134d00bd2c91: MAC: Use the current thread's user ABI to determine the layout of struct mac (authored by jhb).
MAC: Use the current thread's user ABI to determine the layout of struct mac
Mon, Nov 24, 3:55 PM
jhb committed rGe928afc531e6: Use ZFSTOP more broadly (authored by jhb).
Use ZFSTOP more broadly
Mon, Nov 24, 3:54 PM
jhb committed rG7980cf5d6f71: Centralize definition of ZFSTOP (authored by jhb).
Centralize definition of ZFSTOP
Mon, Nov 24, 3:54 PM
jhb closed D53757: freebsd32_setcred: Copy all of the setcred fields individually.
Mon, Nov 24, 3:54 PM
jhb closed D53756: setcred: Move initial copyin of struct setcred out to per-ABI syscall.
Mon, Nov 24, 3:54 PM
jhb closed D53755: MAC: Use the current thread's user ABI to determine the layout of struct mac.
Mon, Nov 24, 3:54 PM
jhb closed D53791: Use ZFSTOP more broadly.
Mon, Nov 24, 3:54 PM
jhb closed D53790: Centralize definition of ZFSTOP.
Mon, Nov 24, 3:54 PM

Sat, Nov 22

jhb committed rG46d05a49a1d0: loader.efi.8: Minor formatting nits (authored by jhb).
loader.efi.8: Minor formatting nits
Sat, Nov 22, 1:11 PM
jhb closed D53866: loader.efi.8: Minor formatting nits.
Sat, Nov 22, 1:11 PM
jhb updated the diff for D53756: setcred: Move initial copyin of struct setcred out to per-ABI syscall.

More const

Sat, Nov 22, 1:08 PM
jhb updated the diff for D53790: Centralize definition of ZFSTOP.

Use ?=

Sat, Nov 22, 1:07 PM
jhb added inline comments to D53756: setcred: Move initial copyin of struct setcred out to per-ABI syscall.
Sat, Nov 22, 1:01 PM

Fri, Nov 21

jhb requested review of D53866: loader.efi.8: Minor formatting nits.
Fri, Nov 21, 10:51 PM

Thu, Nov 20

jhb added inline comments to D53764: nvmf_che: Add a manual page for the Chelsio NVMe/TCP PDU offload driver.
Thu, Nov 20, 3:03 PM
jhb requested review of D53842: nvme: Small cleanups to <dev/nvme/nvme.h>.
Thu, Nov 20, 2:52 PM
jhb updated the diff for D53697: netlink: Fix overallocation of netlink message buffers.

Trim #if 0'd code

Thu, Nov 20, 2:45 PM
jhb updated the diff for D53755: MAC: Use the current thread's user ABI to determine the layout of struct mac.

Use void *

Thu, Nov 20, 2:38 PM
jhb committed rG032fbda024d7: nvme: Include <sys/systm.h> explicitly for memmove (authored by jhb).
nvme: Include <sys/systm.h> explicitly for memmove
Thu, Nov 20, 2:38 PM
jhb added inline comments to D53790: Centralize definition of ZFSTOP.
Thu, Nov 20, 2:09 PM

Mon, Nov 17

jhb added inline comments to D53756: setcred: Move initial copyin of struct setcred out to per-ABI syscall.
Mon, Nov 17, 9:54 PM
jhb added a comment to D53755: MAC: Use the current thread's user ABI to determine the layout of struct mac.

Well, this isn't a generated stub so using void * could be ok, OTOH, it is now always passed something like wcred->cr_label in which case it is typed (though user_setcred intentionally discards that type) and it might be nice to keep what type checking you do get there (so that for internal APIs a compat user pointer is always treated as the native user pointer). Most places where we deal with user pointers though they are just one type and not polymorphic as in this case. Globally changing all user pointers would definitely be a net negative, but using void * here is probably fine.

Mon, Nov 17, 9:50 PM
jhb committed rG33383fbf606b: nvmf: Add support for DIOCGIDENT (authored by jhb).
nvmf: Add support for DIOCGIDENT
Mon, Nov 17, 6:29 PM
jhb closed D53339: nvmf: Add support for DIOCGIDENT.
Mon, Nov 17, 6:29 PM
jhb closed D53338: nvme: Abstract out function to obtain a disk ident string from cdata.
Mon, Nov 17, 6:29 PM
jhb committed rG8d2a50bb3805: nvme: Abstract out function to obtain a disk ident string from cdata (authored by jhb).
nvme: Abstract out function to obtain a disk ident string from cdata
Mon, Nov 17, 6:29 PM
jhb added a comment to D53790: Centralize definition of ZFSTOP.

In CheriBSD we have a second import of ZFS (with various CHERI patches applied) which is why we benefit from having a single definition of this variable, but I think the cleanup of using ZFSTOP more widely is nice regardless as it makes several long lines a bit shorter.

Mon, Nov 17, 5:33 PM
jhb added a reviewer for D53790: Centralize definition of ZFSTOP: sjg.
Mon, Nov 17, 5:31 PM
jhb requested review of D53791: Use ZFSTOP more broadly.
Mon, Nov 17, 5:31 PM
jhb requested review of D53790: Centralize definition of ZFSTOP.
Mon, Nov 17, 5:31 PM
jhb updated the diff for D53757: freebsd32_setcred: Copy all of the setcred fields individually.

Rebase

Mon, Nov 17, 5:30 PM
jhb updated the diff for D53756: setcred: Move initial copyin of struct setcred out to per-ABI syscall.

Rebase

Mon, Nov 17, 5:30 PM
jhb retitled D53757: freebsd32_setcred: Copy all of the setcred fields individually from freebsd32_setcred: Copy all of the setcred fields to freebsd32_setcred: Copy all of the setcred fields individually.
Mon, Nov 17, 5:30 PM
jhb added inline comments to D53764: nvmf_che: Add a manual page for the Chelsio NVMe/TCP PDU offload driver.
Mon, Nov 17, 5:28 PM
jhb added a comment to D53296: nvme host buffer (HMB): alignment quirck for Crucial NVME.
In D53296#1227854, @imp wrote:

I've thought about this. And maybe we'd be better off always aligning to a page. It's going to be a large allocation and it will be multiple pages and likely the size is a multiple of pages. It would make the most sense to use full pages, no?

Mon, Nov 17, 4:17 PM

Sat, Nov 15

jhb requested review of D53770: bsdinstall: Mount /dev and /packages after using the shell to partition disks.
Sat, Nov 15, 1:20 PM
jhb added inline comments to D53296: nvme host buffer (HMB): alignment quirck for Crucial NVME.
Sat, Nov 15, 1:12 PM
jhb accepted D53759: NOTES: Add iwm and iwx.
Sat, Nov 15, 12:55 AM
jhb accepted D53767: setcred(): Fix 32-bit compatibility copy-in.

This is exactly what I envisioned for an EN-style fix.

Sat, Nov 15, 12:43 AM

Fri, Nov 14

jhb requested review of D53764: nvmf_che: Add a manual page for the Chelsio NVMe/TCP PDU offload driver.
Fri, Nov 14, 6:52 PM
jhb added inline comments to D53757: freebsd32_setcred: Copy all of the setcred fields individually.
Fri, Nov 14, 3:49 PM
jhb added a comment to D53724: apm.4: Remove a stale manual and update mlink.

Hmmm, I wonder if what might be better is to rework the existing apm.4 manpage to say it is an interface (instead of a driver), but not merge all its content over into acpi.4. It's more that this is a way to describe an API than a device driver. There would be no real SYNOPSIS in this case in the classic sense (we don't really have a model for a SYNOPSIS for something that is an abstract interface as opposed to a foo.ko you can load). That is, you would take the existing apm.4, and make the following changes:

Fri, Nov 14, 3:45 PM
jhb added a comment to D53757: freebsd32_setcred: Copy all of the setcred fields individually.

This is the important fix. The two prior changes are cleanups, but are pretty small. If you wanted to do an EN for 15.0, you could fix the size in the existing memcpy() to use __rangeof(), but this particular sort of bug is why we generally don't use memcpy() for this sort of thing.

Fri, Nov 14, 2:57 PM
jhb requested review of D53757: freebsd32_setcred: Copy all of the setcred fields individually.
Fri, Nov 14, 2:55 PM
jhb requested review of D53756: setcred: Move initial copyin of struct setcred out to per-ABI syscall.
Fri, Nov 14, 2:55 PM
jhb requested review of D53755: MAC: Use the current thread's user ABI to determine the layout of struct mac.
Fri, Nov 14, 2:55 PM
jhb added a comment to D47878: MAC: syscalls: mac_label_copyin(): 32-bit compatibility.
In D47878#1226923, @jhb wrote:

Actually, I found a bug in the compat32 setcred() as well. (...) I will work on some patches though I'll try to post for review today/tomorrow.

I've quickly reviewed again that code and fail to see any practical problem (there's a memcpy() that conceptually should operate on &wcred32.setcred32_copy_start instead of &wcred32, but that makes no difference in practice).

If you're unable to produce quickly a separate patch for this, could you please point me at the problem you've seen? I'd like to quickly assess if it's very easily fixable and, if that's the case, produce a minimal fix and then ask re@/cperciva@ whether they are OK to include it in 15.0.

Fri, Nov 14, 2:55 PM

Thu, Nov 13

jhb added a comment to D47878: MAC: syscalls: mac_label_copyin(): 32-bit compatibility.
In D47878#1226543, @jhb wrote:

Blech, this conflicted quite a bit with CheriBSD downstream which has COMPAT_FREEBSD64 and used SV_CURPROC_FLAG to determine the ABI instead of a bool (that needs to not be a bool). At some point I will probably just have to upstream reworking this to remove all the bool stuff as you don't need it since you can just check the ABI here and do the fixup as needed. In CheriBSD we also fix the copying in of struct mac for exec which also needs to honor the ABI.

Yes, more or less expected, didn't look at what CheriBSD was doing back then. We perhaps could have used SV_ILP32 in advance here. So you have COMPAT_FREEBSD64, which basically means you can compile it out?

Thu, Nov 13, 4:42 PM
jhb committed rG587490dabc64: arm64: Fix calculating kernel size for preload metadata (authored by Hesham Almatary <Hesham.Almatary@cl.cam.ac.uk>).
arm64: Fix calculating kernel size for preload metadata
Thu, Nov 13, 2:58 PM
jhb closed D53699: arm64: Fix calculating kernel size for preload metadata.
Thu, Nov 13, 2:58 PM
jhb committed rGdaa1f9b415f3: apm(8): Drop MLINK to apmconf(8) (authored by jhb).
apm(8): Drop MLINK to apmconf(8)
Thu, Nov 13, 2:39 AM

Wed, Nov 12

jhb added a comment to D47878: MAC: syscalls: mac_label_copyin(): 32-bit compatibility.

Blech, this conflicted quite a bit with CheriBSD downstream which has COMPAT_FREEBSD64 and used SV_CURPROC_FLAG to determine the ABI instead of a bool (that needs to not be a bool). At some point I will probably just have to upstream reworking this to remove all the bool stuff as you don't need it since you can just check the ABI here and do the fixup as needed. In CheriBSD we also fix the copying in of struct mac for exec which also needs to honor the ABI.

Wed, Nov 12, 7:34 PM
jhb added a comment to D53715: i386: move to EXTRA_TARGETS.

We do want i386 worlds building by default though in make universe, and we need a manual make buildworld TARGET_ARCH=i386 to still work, and this breaks both of those (I tried it previously).

Wed, Nov 12, 6:32 PM
jhb added a comment to D53715: i386: move to EXTRA_TARGETS.

The issue with MAKE_LINT_KERNELS is that it doesn't ignore NO_UNIVERSE kernels which perhaps it should do. OTOH, MAKE_ALL_KERNELS also doesn't ignore NO_UNIVERSE by design. Maybe we need a NO_UNIVERSE_I_MEAN_IT_FOR_REALS or we just filter out i386 from MAKE_LINT_KERNELS and MAKE_ALL_KERNELS. I never use MAKE_LINT_KERNELS myself as they really aren't that much more to build.

Wed, Nov 12, 6:23 PM
jhb added a comment to D53697: netlink: Fix overallocation of netlink message buffers.

@igoro would you be able to test this on your workload (armv7) to ensure it still does the correct thing?

Wed, Nov 12, 3:11 PM
jhb accepted D53385: cxgbe KTLS tx: Distribute FW6_PLD replies across rx queues.
Wed, Nov 12, 2:58 PM
jhb committed rG6bf611ada212: kmod.mk: Remove a trailing reference to pccarddevs.h (authored by jhb).
kmod.mk: Remove a trailing reference to pccarddevs.h
Wed, Nov 12, 2:30 PM

Tue, Nov 11

jhb added a comment to D53702: vga_pci: Permit child devices to allocate non-standard BARs.

This is probably the root cause of the manual BUS_ALLOC_RESOURCE call in drm-kmod I encountered in D53402. Presumably I'll have to bump __FreeBSD_version for this fix, but once this fix is in, intel_alloc_mchbar_resource should in theory be something like this:

Tue, Nov 11, 8:58 PM
jhb requested review of D53702: vga_pci: Permit child devices to allocate non-standard BARs.
Tue, Nov 11, 8:43 PM
jhb updated subscribers of D53402: bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD.

Ping @dumbbell as well to coordinate on updating drm-kmod.

Tue, Nov 11, 8:15 PM
jhb abandoned D53701: sys: Declare 'end' as an extern char so that &end is a char *.

Bah, git arc screwed up, so this is a duplicate.

Tue, Nov 11, 8:13 PM
jhb requested review of D53701: sys: Declare 'end' as an extern char so that &end is a char *.
Tue, Nov 11, 8:12 PM
jhb requested review of D53700: sys: Declare 'end' as an extern char so that &end is a char *.
Tue, Nov 11, 8:12 PM
jhb requested review of D53699: arm64: Fix calculating kernel size for preload metadata.
Tue, Nov 11, 8:11 PM
jhb added a comment to D53697: netlink: Fix overallocation of netlink message buffers.

Functionally, this is equivalent to setting snl_writer.size() to the equivalent of malloc_usable_size of the current linear buffer each time, and then you know that each time you grow, you are always going to allocate a new linear buffer as you have fully consumed the current one.

Tue, Nov 11, 8:07 PM
jhb requested review of D53697: netlink: Fix overallocation of netlink message buffers.
Tue, Nov 11, 7:58 PM

Mon, Nov 10

jhb committed rGec0cd287f55f: nvmf_che: NVMe-TCP offload support for Chelsio T7 adapters (authored by jhb).
nvmf_che: NVMe-TCP offload support for Chelsio T7 adapters
Mon, Nov 10, 3:52 PM
jhb committed rG71d82199a111: cxgbe: Add support to the base driver for NVMe/TCP PDU offload (authored by jhb).
cxgbe: Add support to the base driver for NVMe/TCP PDU offload
Mon, Nov 10, 3:52 PM
jhb committed rGfca740e2d210: cxgbe tom: Don't require exact match for TCP seqno for FIN for NVMe offload (authored by jhb).
cxgbe tom: Don't require exact match for TCP seqno for FIN for NVMe offload
Mon, Nov 10, 3:52 PM
jhb committed rGfd3581e4ddde: cxgbe tom: Add support for sending NVMe/TCP PDUs (authored by jhb).
cxgbe tom: Add support for sending NVMe/TCP PDUs
Mon, Nov 10, 3:52 PM
jhb committed rGadaa1470777b: cxgbe: Extend support for NVMe capabilities (authored by jhb).
cxgbe: Extend support for NVMe capabilities
Mon, Nov 10, 3:52 PM
jhb committed rGa4cd88b604de: cxgbe: Add ULD_NVME for NVMe/TCP offload (authored by jhb).
cxgbe: Add ULD_NVME for NVMe/TCP offload
Mon, Nov 10, 3:52 PM
jhb committed rG8ced50767933: nvmft: Honor any IOCCSZ limit imposed by the transport (authored by jhb).
nvmft: Honor any IOCCSZ limit imposed by the transport
Mon, Nov 10, 3:52 PM
jhb committed rGc1b3c5f5f3fa: nvmf: Add a transport hook to limit the maximum command capsule size (authored by jhb).
nvmf: Add a transport hook to limit the maximum command capsule size
Mon, Nov 10, 3:52 PM
jhb committed rG62caae230859: nvmf: Honor any data transfer limit imposed by the transport (authored by jhb).
nvmf: Honor any data transfer limit imposed by the transport
Mon, Nov 10, 3:51 PM
jhb committed rG01dd6a83b5ff: nvmf: Add a transport hook to limit the size of host data transfers (authored by jhb).
nvmf: Add a transport hook to limit the size of host data transfers
Mon, Nov 10, 3:51 PM
jhb committed rGa4c1644adbdf: ktrace: Only enable EXTERROR traces for 'x' (authored by jhb).
ktrace: Only enable EXTERROR traces for 'x'
Mon, Nov 10, 2:56 PM

Thu, Nov 6

jhb committed rG0b8d17c86119: ktrace: Only enable EXTERROR traces for 'x' (authored by jhb).
ktrace: Only enable EXTERROR traces for 'x'
Thu, Nov 6, 2:49 AM

Mon, Nov 3

jhb added a comment to D53402: bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD.

@manu This change causes a build breakage in drm-kmod that I have worked around locally with the patch below. I plan to bump __FreeBSD_version when committing this, and just want to coordinate on the fix as I won't know the new version number until I actually push the change.

Mon, Nov 3, 4:03 PM
jhb committed rGb9efaeb87a8f: tb_pci: Don't try to attach to PCI buses that aren't below a PCI-PCI brige (authored by jhb).
tb_pci: Don't try to attach to PCI buses that aren't below a PCI-PCI brige
Mon, Nov 3, 3:32 PM
jhb closed D53202: tb_pci: Don't try to attach to PCI buses that aren't below a PCI-PCI brige.
Mon, Nov 3, 3:32 PM
jhb added a comment to D53402: bus_alloc_resource: Pass rid by value to BUS_ALLOC_RESOURCE DEVMETHOD.
In D53402#1220105, @bz wrote:
In D53402#1219730, @jhb wrote:

This will need a __FreeBSD_version bump, and I know that at least drm-kmod will need an #if test based on that as it has an internal call to BUS_ALLOC_RESOURCE (not one of the wrapper functions) that needs to be patched after this.

I wonder if that FreeBSD specific code could actually be handled inside LinuxKPI as the #ifdef for pci_bus_alloc_resource() doesn't seem too complicated. That way at least the FreeBSD-specific code migrates into LinuxKPI and out of drm-kmod and that could be done upfront and once the all branches and the ports are updated this one can go in. Just asking. I am on the road so haven't done much due diligens.

Mon, Nov 3, 3:29 PM

Fri, Oct 31

jhb added a comment to D53429: style.Makefile: document the style for lists.

Eh, I'm not sure this is actually the style we want? Lots of places in the tree fix the diff problem by just using multiple += statements, e.g.:

Fri, Oct 31, 1:43 PM

Thu, Oct 30

jhb committed rG91f66f9b377e: riscv: Treat pointer register as an input in fpe_store (authored by jhb).
riscv: Treat pointer register as an input in fpe_store
Thu, Oct 30, 7:55 PM
jhb closed D53441: riscv: Treat pointer register as an input in fpe_store.
Thu, Oct 30, 7:55 PM
jhb committed R9:35ec8c4ac29f: Add initial 16.0-CURRENT FreeBSD version values up through 1600003. (authored by jhb).
Add initial 16.0-CURRENT FreeBSD version values up through 1600003.
Thu, Oct 30, 3:53 PM
jhb committed rG7eb213614b90: bus_alloc_resource: First step in passing resource IDs by value (authored by jhb).
bus_alloc_resource: First step in passing resource IDs by value
Thu, Oct 30, 3:20 PM
jhb closed D53401: bus_alloc_resource: First step in passing resource IDs by value.
Thu, Oct 30, 3:20 PM

Wed, Oct 29

jhb added a comment to D53202: tb_pci: Don't try to attach to PCI buses that aren't below a PCI-PCI brige.

Though a better answer to the question is that this bus driver is meant to take over PCI buses that are children of TB ports, and the only way to know (currently) if a given pcib device is a TB port is to check its PCI IDs. Alternatively, TB bridges could expose some sort of new IVAR that this driver could check for instead. That would be more inline with, say, the ACPI PCI bus driver which checks for the presence of a valid ACPI_HANDLE IVAR that ACPI pcib drivers provide. Maybe we could have a new TB_GEN IVAR that TB bridges would export to children. That would perhaps be cleaner solution to this.

Wed, Oct 29, 7:32 PM
jhb closed D53243: platforms: Add a column for projected 16.x Tiers.
Wed, Oct 29, 6:58 PM
jhb closed D53242: platforms: Use separate lines for columns in the Tiers table.
Wed, Oct 29, 6:58 PM
jhb committed R9:186fddb0f043: platforms: Use separate lines for columns in the Tiers table (authored by jhb).
platforms: Use separate lines for columns in the Tiers table
Wed, Oct 29, 6:58 PM
jhb committed R9:586808e85c27: platforms: Add a column for projected 16.x Tiers (authored by jhb).
platforms: Add a column for projected 16.x Tiers
Wed, Oct 29, 6:58 PM
jhb committed rG561571d48067: nhi: Fix a race with interrupt teardown during detach (authored by jhb).
nhi: Fix a race with interrupt teardown during detach
Wed, Oct 29, 6:57 PM
jhb closed D53201: nhi: Fix a race with interrupt teardown during detach.
Wed, Oct 29, 6:57 PM