Page MenuHomeFreeBSD

jhb (John Baldwin)
User

Projects (10)

User Details

User Since
Mar 11 2014, 8:46 PM (612 w, 6 d)

Recent Activity

Yesterday

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.

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

Fri, Dec 5

jhb added inline comments to D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Fri, Dec 5, 3:08 PM
jhb created P680 Command-Line Input.
Fri, Dec 5, 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.

Fri, Dec 5, 1:16 PM

Thu, Dec 4

jhb committed rG61ffc1bf8c42: MAC: Rename mac_cred_create_swapper to mac_cred_create_kproc0 (authored by jhb).
MAC: Rename mac_cred_create_swapper to mac_cred_create_kproc0
Thu, Dec 4, 7:53 PM
jhb committed rGf6910b09a230: sys: Remove/update references to the swapper process in various comments (authored by jhb).
sys: Remove/update references to the swapper process in various comments
Thu, Dec 4, 7:53 PM
jhb committed rG431b3b224db2: thread0: Stop calling thread0 "swapper" (authored by jhb).
thread0: Stop calling thread0 "swapper"
Thu, Dec 4, 7:53 PM
jhb closed D54052: MAC: Rename mac_cred_create_swapper to mac_cred_create_kproc0.
Thu, Dec 4, 7:53 PM
jhb closed D54051: sys: Remove/update references to the swapper process in various comments.
Thu, Dec 4, 7:53 PM
jhb closed D54039: thread0: Stop calling thread0 "swapper".
Thu, Dec 4, 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.

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

Wed, Dec 3

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

Use ruxreset

Wed, Dec 3, 4:31 PM
jhb requested review of D54050: proc0_post: Clear relevant thread stats directly.
Wed, Dec 3, 4:31 PM
jhb requested review of D54049: ruxreset: Add an inline function to reset all the stats in rusage_ext.
Wed, Dec 3, 4:30 PM
jhb added inline comments to D54040: thread0: Clear td_rux stats in proc0_post.
Wed, Dec 3, 3:38 PM
jhb added inline comments to D54039: thread0: Stop calling thread0 "swapper".
Wed, Dec 3, 3:34 PM

Tue, Dec 2

jhb requested review of D54040: thread0: Clear td_rux stats in proc0_post.
Tue, Dec 2, 10:44 PM
jhb requested review of D54039: thread0: Stop calling thread0 "swapper".
Tue, Dec 2, 10:44 PM
jhb updated the diff for D53770: bsdinstall: Mount /dev and /packages after using the shell to partition disks.

Add to OptionalObsoleteFiles.inc

Tue, Dec 2, 4:05 PM
jhb committed rG44d6df4f65b1: nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident (authored by jhb).
nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident
Tue, Dec 2, 4:02 PM
jhb closed D53842: nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident.
Tue, Dec 2, 4:02 PM
jhb retitled D53842: nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident from nvme: Small cleanups to <dev/nvme/nvme.h> to nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident.
Tue, Dec 2, 3:56 PM
jhb added a comment to D53770: bsdinstall: Mount /dev and /packages after using the shell to partition disks.

FYI, submitter of the bug report tried this out and it fixed their issue.

Tue, Dec 2, 3:54 PM

Mon, Dec 1

jhb committed R9:e65af968cf40: relnotes: Document NVMe over Fabrics (authored by jhb).
relnotes: Document NVMe over Fabrics
Mon, Dec 1, 5:19 PM
jhb committed R9:938c8e7d05dc: relnotes: New versions of byacc and ncurses (authored by jhb).
relnotes: New versions of byacc and ncurses
Mon, Dec 1, 5:06 PM
jhb committed R9:c2b03500d62a: relnotes: Document bsddialog version and use in bsdinstall/bsdconfig (authored by jhb).
relnotes: Document bsddialog version and use in bsdinstall/bsdconfig
Mon, Dec 1, 5:03 PM
jhb committed R9:b0e007b14752: relnotes: Some wireless driver updates (authored by jhb).
relnotes: Some wireless driver updates
Mon, Dec 1, 4:35 PM
jhb committed R9:b6c308d0fc5d: relnote: Only document latest update to rtw88 and rtw89 (authored by jhb).
relnote: Only document latest update to rtw88 and rtw89
Mon, Dec 1, 4:19 PM
jhb committed R9:2d7d2103f450: relnotes: Use consistent markup for Git references (authored by jhb).
relnotes: Use consistent markup for Git references
Mon, Dec 1, 4:19 PM
jhb committed R9:ff930c1c1c83: relnotes: Tweaks to contrib software (authored by jhb).
relnotes: Tweaks to contrib software
Mon, Dec 1, 4:19 PM
jhb committed R9:a77af5ac45b2: relnotes: agp(4) is still present in 15.0 (authored by jhb).
relnotes: agp(4) is still present in 15.0
Mon, Dec 1, 4:19 PM
jhb committed R9:b63fc6f01b3f: relnotes: Drop i386 from multiple MCFG description (authored by jhb).
relnotes: Drop i386 from multiple MCFG description
Mon, Dec 1, 4:19 PM
jhb committed R9:51e5d075c8a5: relnotes: Don't claim gvinum is deprecated as well as removed (authored by jhb).
relnotes: Don't claim gvinum is deprecated as well as removed
Mon, Dec 1, 4:19 PM
jhb committed R9:d80a1d9c2074: relnotes: Correct details about KTLS (authored by jhb).
relnotes: Correct details about KTLS
Mon, Dec 1, 3:45 PM
jhb added inline comments to D53842: nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident.
Mon, Dec 1, 2:52 PM

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: Use memcpy instead of memmove in nvme_cdata_get_disk_ident.
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