Page MenuHomeFreeBSD

markj (Mark Johnston)
User

Projects (9)

User Details

User Since
Mar 12 2014, 1:00 AM (646 w, 5 d)

Recent Activity

Today

markj added a reviewer for D58625: bhyve: Fix assignment of *niov2 in split_iov(): rosenfeld_grumpf.hope-2000.org.
Mon, Aug 3, 4:00 PM
markj requested review of D58625: bhyve: Fix assignment of *niov2 in split_iov().
Mon, Aug 3, 4:00 PM
markj committed rGfb63bc67483e: atomic: Implement atomic_{set,clear}_8 in _atomic_subword.h (authored by markj).
atomic: Implement atomic_{set,clear}_8 in _atomic_subword.h
Mon, Aug 3, 3:23 PM
markj committed rGe004ff15f87e: ppp: Avoid overflow when formatting endpoint discriminator options (authored by markj).
ppp: Avoid overflow when formatting endpoint discriminator options
Mon, Aug 3, 3:23 PM
markj closed D58555: ppp: Avoid overflow when formatting endpoint discriminator options.
Mon, Aug 3, 3:23 PM
markj closed D58580: atomic: Implement atomic_{set,clear}_8 in _atomic_subword.h.
Mon, Aug 3, 3:23 PM
markj accepted D58584: kqueue: stream the knote report instead of buffering all of it.
Mon, Aug 3, 3:10 PM
markj accepted D58583: kqueue: fix the always-empty NT_PROCSTAT_KQUEUES core note.

Please be sure to include a Fixes: tag in the commit log message.

Mon, Aug 3, 2:58 PM
markj added inline comments to D58131: inpcb: take a pcbinfo database out from single lock.
Mon, Aug 3, 2:36 PM
markj requested review of D58622: ctl.4: Document the assumption that CTL HA runs only on trusted networks.
Mon, Aug 3, 2:28 PM
markj accepted D58266: iflib: restore TX watchdog functionality.

I think the patch is ok with my comments addressed.

Mon, Aug 3, 2:23 PM

Fri, Jul 31

markj updated subscribers of D58580: atomic: Implement atomic_{set,clear}_8 in _atomic_subword.h.
Fri, Jul 31, 9:15 PM
markj added a comment to D57381: riscv: add KASAN support.

@zishun.yi.dev_gmail.com could you please rebase this patch so that it applies to the latest main? I don't really like the diff to riscv/include/atomic.h, and would like to explore different approaches. (Really I'd like to get rid of all of these interceptors entirely, but the best way to do that is probably to reimplement atomic.h using C11 atomics...)

Yeah, I agree the current code is ugly, and your approach sounds great.

For now I've moved most of the ugly code into a separate revision(D58037) so it doesn't block the riscv work. That part could well be refactored entirely in the future , so keeping it separate from the KASAN changes seems cleaner.

Fri, Jul 31, 9:15 PM
markj committed rG1932bd20ed53: ptrace: Propagate errors from set_fpregs() (authored by markj).
ptrace: Propagate errors from set_fpregs()
Fri, Jul 31, 7:48 PM
markj committed rGea7d35526878: uma: Fix KMSAN integration with malloc zones (authored by markj).
uma: Fix KMSAN integration with malloc zones
Fri, Jul 31, 7:48 PM
markj closed D58577: ptrace: Propagate errors from set_fpregs().
Fri, Jul 31, 7:48 PM
markj closed D58574: uma: Fix KMSAN integration with malloc zones.
Fri, Jul 31, 7:48 PM
markj accepted D58579: bhyve: Return void from pci_emul_alloc_bar.
Fri, Jul 31, 7:46 PM
markj requested review of D58580: atomic: Implement atomic_{set,clear}_8 in _atomic_subword.h.
Fri, Jul 31, 7:42 PM
markj updated the diff for D58577: ptrace: Propagate errors from set_fpregs().

Simplify

Fri, Jul 31, 3:44 PM
markj accepted D58566: proc_realparent(): do not mark the child as orphan when reparenting to p_opptr pid.
Fri, Jul 31, 3:31 PM
markj requested review of D58577: ptrace: Propagate errors from set_fpregs().
Fri, Jul 31, 3:30 PM
markj accepted D58131: inpcb: take a pcbinfo database out from single lock.
Fri, Jul 31, 3:25 PM
markj accepted D58264: processes: add zombie references, each of them prevents reap.

I think this is ok. The result is not quite the same as what I proposed originally: I believe, with your patches, that if a process creates a child with pdfork(), then it cannot use pdwait() to reap the child, it still must use waitpid(). It would be nicer to make pdwait() reap the child in this case, IMO.

Fri, Jul 31, 3:24 PM
markj accepted D58569: tests/sys/capsicum: adjust tests for the new reaping behavior.
Fri, Jul 31, 3:15 PM
markj requested review of D58574: uma: Fix KMSAN integration with malloc zones.
Fri, Jul 31, 3:05 PM
markj closed D49353: route: use NH_IS_VALID macro consistently.

This was addressed in commit d05d1f2560823 by @pouria .

Fri, Jul 31, 2:34 PM
markj committed rG1c1a3646a1c8: bhyve: tpm: Avoid printing a message when clearing the cancel bit (authored by markj).
bhyve: tpm: Avoid printing a message when clearing the cancel bit
Fri, Jul 31, 2:30 PM
markj closed D52425: bhyve: tpm: Avoid printing a message when clearing the cancel bit.
Fri, Jul 31, 2:30 PM
markj abandoned D34396: uma: Defer item reuse when KASAN is enabled.
Fri, Jul 31, 2:25 PM
markj abandoned D29824: rtsold: Extend casper to support various interface operations.

This isn't needed anymore.

Fri, Jul 31, 2:24 PM
markj committed rG1719b754a9ec: tests/libc: Fix fortify_source uio tests (authored by markj).
tests/libc: Fix fortify_source uio tests
Fri, Jul 31, 2:23 PM
markj closed D58289: tests/libc: Fix fortify_source uio tests.
Fri, Jul 31, 2:23 PM
markj abandoned D57419: capsicum: Remove an obsolete comment.
Fri, Jul 31, 2:20 PM
markj abandoned D48951: mfc-candidates: Fix remote repo detection.

I've been using git-mfc instead, which I think has a superset of the functionality in mfc-candidates.

Fri, Jul 31, 2:18 PM
markj abandoned D48950: mfc-candidates: Annotate variables as local.

I've been using git-mfc instead, which I think has a superset of the functionality in mfc-candidates.

Fri, Jul 31, 2:18 PM
markj accepted D58536: kqueue: do not buffer the whole knote report when sizing it.

This is also bugzilla PR 296835: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296835, please include that in the commit log message.

Fri, Jul 31, 2:12 PM
markj accepted D58266: iflib: restore TX watchdog functionality.

The comments are simultaneously too verbose and not very helpful. They consistently refer to "writeback", which isn't mentioned anywhere else in iflib and only one or twice in the e1000 drivers. A couple of them imply that a queue being frozen for X timer periods is hung, but that's not true, as a different comment explains.

Fri, Jul 31, 1:56 PM
markj committed rGb9d07a430822: ppp: Reject invalid endpoint discriminator options (authored by markj).
ppp: Reject invalid endpoint discriminator options
Fri, Jul 31, 1:30 PM
markj closed D58554: ppp: Reject invalid endpoint discriminator options.
Fri, Jul 31, 1:30 PM
markj closed D58316: malloc: Fix domainset usage in malloc_domainset() for large allocs.
Fri, Jul 31, 1:30 PM
markj committed rGb566e0a7232b: amd64: Mark the trapframe as initialized in ipi_bitmap_handler() (authored by markj).
amd64: Mark the trapframe as initialized in ipi_bitmap_handler()
Fri, Jul 31, 1:30 PM
markj committed rG0aca7ce7af35: malloc: Fix domainset usage in malloc_domainset() for large allocs (authored by markj).
malloc: Fix domainset usage in malloc_domainset() for large allocs
Fri, Jul 31, 1:30 PM
markj closed D58272: malloc: Refactor redzone and KASAN handling.
Fri, Jul 31, 1:30 PM
markj committed rG459aa032e872: malloc: Refactor redzone and sanitizer handling (authored by markj).
malloc: Refactor redzone and sanitizer handling
Fri, Jul 31, 1:30 PM
markj closed D58271: uma: Insert KASAN redzones after slab-allocated items.
Fri, Jul 31, 1:30 PM
markj committed rGf51a5e1d9c41: uma: Insert KASAN redzones after slab-allocated items (authored by markj).
uma: Insert KASAN redzones after slab-allocated items
Fri, Jul 31, 1:30 PM
markj added a comment to D58530: tests/sys/kern: adjust tests for new reaping behavior.

I see some failures in sys/capsicum tests too, sorry I missed those before.

Fri, Jul 31, 2:08 AM
markj accepted D57666: if_gif: Add netlink support with tests.
Fri, Jul 31, 2:01 AM

Thu, Jul 30

markj added a comment to D57666: if_gif: Add netlink support with tests.

I do not really understand why you moved the if_link_state_down() call out of gif_delete_tunnel(). Now SIOCDIFPHYADDR does not bring down the interface, isn't that a bug?

Thu, Jul 30, 8:39 PM
markj added a comment to D58562: amd64: Implement per-thread kernel stack canaries.

Nice! Mostly looks good, the only substantive comment is about the build integration.

Thu, Jul 30, 8:04 PM
markj updated the diff for D58555: ppp: Avoid overflow when formatting endpoint discriminator options.

Cast bytes to unsigned char, otherwise a negative byte will be sign
extended and occupy more than two bytes of the buffer.

Thu, Jul 30, 7:31 PM
markj added inline comments to D58272: malloc: Refactor redzone and KASAN handling.
Thu, Jul 30, 7:29 PM
markj updated the diff for D58272: malloc: Refactor redzone and KASAN handling.

Clean up KMSAN handling as well.

Thu, Jul 30, 7:29 PM
markj requested review of D58559: rip6: Fix handling of checksums in rip6_input().
Thu, Jul 30, 6:52 PM
markj committed rG2c98dc4e5ca9: git-mfc: Give a useful error message if a remote can't be found (authored by markj).
git-mfc: Give a useful error message if a remote can't be found
Thu, Jul 30, 5:17 PM
markj committed rGa7677a680f21: git-mfc: Add --abort and --continue flags (authored by markj).
git-mfc: Add --abort and --continue flags
Thu, Jul 30, 5:17 PM
markj closed D58514: git-mfc: Add --abort and --continue flags.
Thu, Jul 30, 5:16 PM
markj requested review of D58555: ppp: Avoid overflow when formatting endpoint discriminator options.
Thu, Jul 30, 3:04 PM
markj requested review of D58554: ppp: Reject invalid endpoint discriminator options.
Thu, Jul 30, 3:04 PM
markj accepted D58548: amd64: do not allow to set reserved bits in MXCSR for ptrace(PT_SETFPREGS).
Thu, Jul 30, 2:52 PM
markj accepted D58546: tests/procdesc: Fix race in pdopenpid_pdwait_only_one.
Thu, Jul 30, 2:15 PM
markj accepted D58552: if_vxlan(4): fix panic by validating unused drvspec values.
Thu, Jul 30, 2:08 PM
markj added inline comments to D58552: if_vxlan(4): fix panic by validating unused drvspec values.
Thu, Jul 30, 1:52 PM
markj added a comment to D58552: if_vxlan(4): fix panic by validating unused drvspec values.

This breaks the userspace ABI. Old ifconfig binaries won't work properly with a new kernel after this change.

I understand, that's why I said I can do it the other way.
I want to make sure it's needed, because users usually update their userland + kernel together.
So should I do it the other way?

Thu, Jul 30, 1:41 PM
markj added a comment to D58552: if_vxlan(4): fix panic by validating unused drvspec values.

This breaks the userspace ABI. Old ifconfig binaries won't work properly with a new kernel after this change.

Thu, Jul 30, 1:25 PM

Wed, Jul 29

markj updated the diff for D58271: uma: Insert KASAN redzones after slab-allocated items.

Address Ryan's feedback

Wed, Jul 29, 9:06 PM
markj added a comment to D58271: uma: Insert KASAN redzones after slab-allocated items.

I also wonder if we should have an option to add this redzone without KASAN. We could come up with a cheap-ish debugging feature to verify the redzone with uma_junk when we don't have KASAN. Not asking for that in this patch.

Wed, Jul 29, 9:06 PM
markj committed rG8710a12993b0: libdtrace: Fix up one more translator (authored by markj).
libdtrace: Fix up one more translator
Wed, Jul 29, 8:01 PM
markj committed rG815976ee1412: ktls: Propagate EPG_FLAG_ANON to mapped mbufs (authored by markj).
ktls: Propagate EPG_FLAG_ANON to mapped mbufs
Wed, Jul 29, 8:01 PM
markj closed D57557: ktls: Propagate EPG_FLAG_ANON to mapped mbufs.
Wed, Jul 29, 8:01 PM
markj accepted D58539: stand: Remove a pointless goto.
Wed, Jul 29, 7:31 PM
markj committed rGb9ea73ceb35c: git-arc: Make git arc patch -r smarter (authored by markj).
git-arc: Make git arc patch -r smarter
Wed, Jul 29, 6:28 PM
markj committed rGd8bcb13b79b4: libdtrace: Fix up translators after struct in_conninfo changes (authored by markj).
libdtrace: Fix up translators after struct in_conninfo changes
Wed, Jul 29, 6:28 PM
markj closed D58532: git-arc: Make git arc patch -r smarter.
Wed, Jul 29, 6:28 PM
markj changed the visibility for D58416: coredump: Don't assume that the number of ELF segments is consistent.
Wed, Jul 29, 5:57 PM
markj changed the visibility for D58421: sysvsem: Fix a TOCTOU race in semctl({GET,SET}ALL).
Wed, Jul 29, 5:57 PM
markj changed the visibility for D58223: kqueue: Avoid enqueuing an already-enqueued knote.
Wed, Jul 29, 5:57 PM
markj committed rG490365e5d076: jail: restore ktrace privileges for jailed root (authored by netchild).
jail: restore ktrace privileges for jailed root
Wed, Jul 29, 5:54 PM
markj committed rG7893a7edb43e: coredump: Don't assume that the number of ELF segments is consistent (authored by markj).
coredump: Don't assume that the number of ELF segments is consistent
Wed, Jul 29, 5:54 PM
markj committed rGb0254d23f508: wg(4): Add a test that the driver handles a decryption failure (authored by jhb).
wg(4): Add a test that the driver handles a decryption failure
Wed, Jul 29, 5:51 PM
markj committed rG00effd2ab0bf: jail: restore ktrace privileges for jailed root (authored by netchild).
jail: restore ktrace privileges for jailed root
Wed, Jul 29, 5:51 PM
markj committed rG70c2d227862f: wg(4): Check for crypto operation errors (authored by jhb).
wg(4): Check for crypto operation errors
Wed, Jul 29, 5:51 PM
markj committed rG4cd9804b1d29: OCF: Add a fail point to inject EBADMSG decryption errors (authored by jhb).
OCF: Add a fail point to inject EBADMSG decryption errors
Wed, Jul 29, 5:51 PM
markj committed rGaadd58dddcbc: Add UPDATING entries and bump version (authored by markj).
Add UPDATING entries and bump version
Wed, Jul 29, 5:51 PM
markj committed rG8592efddadf6: coredump: Don't assume that the number of ELF segments is consistent (authored by markj).
coredump: Don't assume that the number of ELF segments is consistent
Wed, Jul 29, 5:51 PM
markj committed rG5eb50510c6b3: sysvsem: Fix a TOCTOU race in semctl({GET,SET}ALL) (authored by markj).
sysvsem: Fix a TOCTOU race in semctl({GET,SET}ALL)
Wed, Jul 29, 5:51 PM
markj committed rG3be83b93661d: contrib/tzdata: import tzdata 2026c (authored by philip).
contrib/tzdata: import tzdata 2026c
Wed, Jul 29, 5:51 PM
markj committed rGe1c9b0b13a29: ktimer: Check for errors from realtimer_gettime() (authored by markj).
ktimer: Check for errors from realtimer_gettime()
Wed, Jul 29, 5:51 PM
markj committed rG8250729075f1: jail: restore ktrace privileges for jailed root (authored by netchild).
jail: restore ktrace privileges for jailed root
Wed, Jul 29, 5:51 PM
markj committed rG13be8d6d86f3: wg(4): Add a test that the driver handles a decryption failure (authored by jhb).
wg(4): Add a test that the driver handles a decryption failure
Wed, Jul 29, 5:51 PM
markj committed rG2864c9b3b511: OCF: Add a fail point to inject EBADMSG decryption errors (authored by jhb).
OCF: Add a fail point to inject EBADMSG decryption errors
Wed, Jul 29, 5:51 PM
markj committed rGd7ad56decf8f: wg(4): Check for crypto operation errors (authored by jhb).
wg(4): Check for crypto operation errors
Wed, Jul 29, 5:51 PM
markj committed rG5a4222a1b225: kqueue: Avoid enqueuing an already-enqueued knote (authored by markj).
kqueue: Avoid enqueuing an already-enqueued knote
Wed, Jul 29, 5:51 PM
markj committed rG596030c13dce: zvol: Fix uses of uninitialized variables in zvol_rename_minors_impl() (authored by markj).
zvol: Fix uses of uninitialized variables in zvol_rename_minors_impl()
Wed, Jul 29, 5:51 PM
markj committed rG8dd31fbcc50f: contrib/tzdata: import tzdata 2026c (authored by philip).
contrib/tzdata: import tzdata 2026c
Wed, Jul 29, 5:51 PM
markj committed rG15ce5ce04aa0: Make zvol_set_common() block until the operation has completed (authored by markj).
Make zvol_set_common() block until the operation has completed
Wed, Jul 29, 5:51 PM
markj committed rG42ae0454bfb2: zvol: Hold the zvol state writer lock when renaming (authored by markj).
zvol: Hold the zvol state writer lock when renaming
Wed, Jul 29, 5:51 PM
markj committed rGd51be7d44a82: FreeBSD: Fix zvol teardown races (authored by markj).
FreeBSD: Fix zvol teardown races
Wed, Jul 29, 5:51 PM
markj committed rG7b527b9b97ba: Add UPDATING entries and bump version (authored by markj).
Add UPDATING entries and bump version
Wed, Jul 29, 5:51 PM