Page MenuHomeFreeBSD

markj (Mark Johnston)
User

Projects (10)

User Details

User Since
Mar 12 2014, 1:00 AM (610 w, 2 d)

Recent Activity

Yesterday

markj added a comment to D53787: ipfilter: Disable ipfs(8) by default.

Looks good to me aside from the comment.

Thu, Nov 20, 3:06 PM
markj accepted D53731: bhyve: Introduce monitor mode.
Thu, Nov 20, 3:04 PM
markj added inline comments to D53729: vmm: Add ability to destroy VMs on close.
Thu, Nov 20, 2:51 PM
markj committed rG9cafea4c44a7: ObsoleteFiles.inc: Fix up incorrect merge (authored by markj).
ObsoleteFiles.inc: Fix up incorrect merge
Thu, Nov 20, 1:55 PM
markj accepted D53820: sys/_types.h: define fallback __(u)intcap_t.
Thu, Nov 20, 1:50 PM

Wed, Nov 19

markj updated subscribers of D53830: sys/stdint.h: add C23 _WIDTH macros.
Wed, Nov 19, 10:20 PM
markj accepted D53819: sys/_types.h: define __(u)int(f)ptr_t for CHERI.
Wed, Nov 19, 10:08 PM
markj updated the diff for D53835: tpm20: Disable the entropy harvester when suspending.

Upon resume, schedule harvesting further in the future.

Wed, Nov 19, 9:54 PM
markj added inline comments to D53835: tpm20: Disable the entropy harvester when suspending.
Wed, Nov 19, 9:24 PM
markj updated the diff for D53835: tpm20: Disable the entropy harvester when suspending.

Fix a compile error

Wed, Nov 19, 9:23 PM
markj requested review of D53835: tpm20: Disable the entropy harvester when suspending.
Wed, Nov 19, 9:10 PM
markj added a comment to D53831: libc/tests: add test for *_MAX, *_MIN, and *_WIDTH.

This looks like it's really testing the host's (cross-)build environment. That seems useful, but it's not the same as testing the installation itself, e.g., a test could invoke cc to compile this file or something similar and verify that it succeeded. Should we do both? Is there some reason this test on its own is sufficient?

Wed, Nov 19, 8:54 PM
markj committed rG0e62ebd20172: bhyve: Move the slirp backend out into a separate process (authored by markj).
bhyve: Move the slirp backend out into a separate process
Wed, Nov 19, 4:51 PM
markj committed rGe22cc773f1a9: jail: Make jaildesc_ops const (authored by markj).
jail: Make jaildesc_ops const
Wed, Nov 19, 4:51 PM
markj closed D53454: bhyve: Move the slirp backend out into a separate process.
Wed, Nov 19, 4:51 PM
markj committed rG1f6e3abf4171: inotify: Work around the vput() bug directly (authored by markj).
inotify: Work around the vput() bug directly
Wed, Nov 19, 4:17 PM
markj accepted D53818: sys/_types.h: centralize __vm_offset_t and __vm_size_t definitions.
Wed, Nov 19, 3:45 PM
markj accepted D53823: add types: (u)int64ptr_t.
Wed, Nov 19, 3:45 PM
markj accepted D53826: max_align_t: apply alignof to 'long double' for long double alignment.
Wed, Nov 19, 3:41 PM
markj added inline comments to D53820: sys/_types.h: define fallback __(u)intcap_t.
Wed, Nov 19, 3:07 PM
markj accepted D53825: sys/limits.h: add C23 _WIDTH macros.

Approved

Wed, Nov 19, 3:04 PM
markj accepted D53822: sys/_types.h: add __intptr_t to __mbstate_t.
Wed, Nov 19, 3:00 PM
markj added a comment to D53817: new type: ptraddr_t.

How should ptraddr_t and vm_offset_t coexist? Are they semantically different, or should we gradually replace uses of vm_offset_t with ptraddr_t, or?

Right now vm_offset_t is inconsistent and sometimes equivalent to a ptraddr_t and sometimes to a uintptr_t. In CheriBSD we've converted a significant number of vm_offset_t's to a new vm_pointer_t because we need provenance preservation. I think @jhb wants to convert many of those into void *, but I'm a little unclear on the overalls scope. @alfredo.mazzinghi_cl.cam.ac.uk thinks we do end up with vm_pointer_t at least for a while as too much math is done on those for using void * to be comfortable.

Wed, Nov 19, 2:41 PM
markj added a comment to D53722: gdb: Fix the cache sync in write_instr().

Having talked to a Linux dev who is familiar with the kvm code I think we need to:

  1. ensure all VCPUs are stopped
Wed, Nov 19, 2:39 PM
markj added a comment to D53817: new type: ptraddr_t.

How should ptraddr_t and vm_offset_t coexist? Are they semantically different, or should we gradually replace uses of vm_offset_t with ptraddr_t, or?

Wed, Nov 19, 2:17 PM
markj committed rG32605b159f3f: gdb: Fix some PEP 8 violations (authored by markj).
gdb: Fix some PEP 8 violations
Wed, Nov 19, 2:01 PM
markj added a comment to D52968: vmm: My attempt at fixing the rendezvous deadlock.
In D52968#1225882, @jbo wrote:

Well, that commit is a random whitespace change... and the fix for the deadlock is not in stable/14 at all. I will try to backport it if you can test the resulting patch.

I could have sworn I saw this patch being MFC'd into stable/14...
Guessing I'm just having a bad day - apologies for the noise then :/

I will glady test any backported patch.

Wed, Nov 19, 1:14 AM
markj added a comment to D53657: libc: implement C23 <stdbit.h> functions.
In D53657#1229282, @des wrote:

Needs tests.

Wed, Nov 19, 12:28 AM

Tue, Nov 18

markj added inline comments to D53805: ipf: Validate string offsets in ipnat structures.
Tue, Nov 18, 8:23 PM
markj added a comment to D53805: ipf: Validate string offsets in ipnat structures.
In D53805#1229199, @cy wrote:
In D53805#1228989, @cy wrote:

Rather than set IPFERROR within the function we return a return code and let the caller set the IPFERROR. Do you mind if I take this and flesh it out a bit?

Please go ahead!

Would you mind if the review will include the three commits (squashed) required to implement the ipfilter and ipnat verifications? Context matters.

Tue, Nov 18, 7:34 PM
markj added a comment to D53805: ipf: Validate string offsets in ipnat structures.
In D53805#1228989, @cy wrote:

Rather than set IPFERROR within the function we return a return code and let the caller set the IPFERROR. Do you mind if I take this and flesh it out a bit?

Tue, Nov 18, 7:06 PM
markj added a comment to D53787: ipfilter: Disable ipfs(8) by default.

This looks ok to me with Ed's suggestion applied.

Tue, Nov 18, 4:58 PM
markj committed rGd795c753e262: kevent: Hold the knlist mutex when invoking f_event(NOTE_FORK) (authored by markj).
kevent: Hold the knlist mutex when invoking f_event(NOTE_FORK)
Tue, Nov 18, 4:25 PM
markj committed rG39ee24182b92: rc.subr: Support setting the audit user when starting services (authored by markj).
rc.subr: Support setting the audit user when starting services
Tue, Nov 18, 4:25 PM
markj committed rG71f6592a0150: rc.subr: Remove misguided cpuset usage (authored by markj).
rc.subr: Remove misguided cpuset usage
Tue, Nov 18, 4:25 PM
markj committed rG1238610a27d5: setaudit: Add an update mode (authored by markj).
setaudit: Add an update mode
Tue, Nov 18, 4:25 PM
markj committed rGdcb0790bad43: setaudit: Initial import (authored by markj).
setaudit: Initial import
Tue, Nov 18, 4:25 PM
markj committed rG551191e14e22: setaudit: Fix handling of numeric UIDs (authored by markj).
setaudit: Fix handling of numeric UIDs
Tue, Nov 18, 4:25 PM
markj committed rGa9be8f996819: setaudit: Bump WARNS and fix some style bugs (authored by markj).
setaudit: Bump WARNS and fix some style bugs
Tue, Nov 18, 4:25 PM
markj closed D53762: kevent: Hold the knlist mutex when invoking f_event(NOTE_FORK).
Tue, Nov 18, 4:25 PM
markj committed rG7861d051de2e: rc.subr: Try to make svjc option handling a bit easier to read (authored by markj).
rc.subr: Try to make svjc option handling a bit easier to read
Tue, Nov 18, 4:25 PM
markj closed D53747: rc.subr: Support setting the audit user when starting services.
Tue, Nov 18, 4:25 PM
markj closed D53746: rc.subr: Remove misguided cpuset usage.
Tue, Nov 18, 4:25 PM
markj closed D53672: setaudit: Add an update mode.
Tue, Nov 18, 4:25 PM
markj closed D53669: setaudit: Initial import.
Tue, Nov 18, 4:25 PM
markj closed D53671: setaudit: Fix handling of numeric UIDs.
Tue, Nov 18, 4:25 PM
markj closed D53670: setaudit: Bump WARNS and fix some style bugs.
Tue, Nov 18, 4:25 PM
markj closed D53754: rc.subr: Try to make svjc option handling a bit easier to read.
Tue, Nov 18, 4:25 PM
markj added inline comments to D53752: ipfilter: Verify ipnat on entry into kernel.
Tue, Nov 18, 4:24 PM
markj requested review of D53805: ipf: Validate string offsets in ipnat structures.
Tue, Nov 18, 4:16 PM
markj added a comment to D53729: vmm: Add ability to destroy VMs on close.

Looks good overall.

Tue, Nov 18, 3:42 PM
markj added inline comments to D53731: bhyve: Introduce monitor mode.
Tue, Nov 18, 3:31 PM
markj added a comment to D53728: kern: Introduce RLIMIT_VMM.

usr.bin/procstat/procstat_rlimit.c should be updated too.

Tue, Nov 18, 3:16 PM
markj committed rG6e8e1de9fb06: vmm: Move vm_maxcpu handling into MI code (authored by markj).
vmm: Move vm_maxcpu handling into MI code
Tue, Nov 18, 3:03 PM
markj committed rG55096ebddc15: arm64/vmm: Move the vgic_max_cpu_count() check (authored by markj).
arm64/vmm: Move the vgic_max_cpu_count() check
Tue, Nov 18, 3:03 PM
markj committed rG272c8c2b7cfa: vmm: Consolidate VM name length checking (authored by markj).
vmm: Consolidate VM name length checking
Tue, Nov 18, 3:03 PM
markj committed rG10b2ebb5a368: amd64/vmm: Remove an unused function (authored by markj).
amd64/vmm: Remove an unused function
Tue, Nov 18, 3:03 PM
markj committed rG16fe30d92da3: vmm: Move the module load handler to vmm_dev.c (authored by markj).
vmm: Move the module load handler to vmm_dev.c
Tue, Nov 18, 3:03 PM
markj committed rGaf1dd9cf3d9b: amd64/vmm: Remove useless global variables (authored by markj).
amd64/vmm: Remove useless global variables
Tue, Nov 18, 3:03 PM
markj committed rG869faf4c4823: amd64/vmm: Factor vcpu_notify_event() into two functions (authored by markj).
amd64/vmm: Factor vcpu_notify_event() into two functions
Tue, Nov 18, 3:03 PM
markj committed rG557047e9fa51: vmm: Simplify the VM_ALLOC_MEMSEG ioctl a bit (authored by markj).
vmm: Simplify the VM_ALLOC_MEMSEG ioctl a bit
Tue, Nov 18, 3:03 PM
markj committed rG187e4b42f4e1: multicast tests: Run in VNET jails (authored by markj).
multicast tests: Run in VNET jails
Tue, Nov 18, 3:03 PM
markj added a comment to D53661: man/man3: add cross references to stdbit(3).

Approved

Tue, Nov 18, 2:44 PM
markj accepted D53661: man/man3: add cross references to stdbit(3).
Tue, Nov 18, 2:44 PM
markj accepted D53799: stand: Add back missing EFIAPI define.

Seems ok, this is really just a Tested-by: markj

Tue, Nov 18, 4:40 AM
markj accepted D53796: GCE: Add /usr/src and /usr/ports to METALOG.
Tue, Nov 18, 2:01 AM
markj accepted D53797: release: Add a MISSING_METALOGS hack to VMs.
Tue, Nov 18, 1:53 AM
markj added inline comments to D53796: GCE: Add /usr/src and /usr/ports to METALOG.
Tue, Nov 18, 1:51 AM
markj accepted D53796: GCE: Add /usr/src and /usr/ports to METALOG.

This won't preserve symlinks. That probably won't hurt too much.

Tue, Nov 18, 1:48 AM
markj accepted D53795: release: Add /boot/loader.conf to some cloudware.

We should really just do this in a central place in vmimage.subr, but that can be a separate change.

Tue, Nov 18, 1:39 AM

Mon, Nov 17

markj updated the diff for D53762: kevent: Hold the knlist mutex when invoking f_event(NOTE_FORK).

Fix the comment.

Mon, Nov 17, 9:37 PM
markj updated the diff for D53762: kevent: Hold the knlist mutex when invoking f_event(NOTE_FORK).
  • Add a comment.
  • Acquire the kqueue lock earlier if we're activating the knote, otherwise we will pick up and drop the kqueue lock twice in a row.
Mon, Nov 17, 6:56 PM
markj added inline comments to D53762: kevent: Hold the knlist mutex when invoking f_event(NOTE_FORK).
Mon, Nov 17, 6:02 PM
markj committed rGe2956be814a1: file: Simplify an INVARIANTS check in _fdrop() (authored by markj).
file: Simplify an INVARIANTS check in _fdrop()
Mon, Nov 17, 4:40 PM
markj committed rGecc1e61d3140: file: Qualify pointers to capsicum rights as const (authored by markj).
file: Qualify pointers to capsicum rights as const
Mon, Nov 17, 4:40 PM
markj accepted D53784: contrib/mandoc: add -ieee754-2008.

Approved

Mon, Nov 17, 4:26 PM
markj accepted D53730: bhyve: Eliminate exit status magic numbers.
Mon, Nov 17, 3:10 PM
markj added inline comments to D53762: kevent: Hold the knlist mutex when invoking f_event(NOTE_FORK).
Mon, Nov 17, 1:55 PM
markj added a comment to D53784: contrib/mandoc: add -ieee754-2008.
In D53784#1228124, @fuz wrote:

Presumably this should be submitted upstream as well: https://mandoc.bsd.lv/

I think mdoc.7 needs to be updated too.

I'm ok with this landing in the meantime if it makes life easier.

The plan is to proceed like with D47284, that is, put the bandaid in right now and report it upstream.

Mon, Nov 17, 1:46 PM
markj added a comment to D53785: organization.dot: Add srcmgr.

Is this list including the lurkers or they are all full srcmgr?
Asking because this is not sync'd with https://www.freebsd.org/administration/#t-srcmgr

Mon, Nov 17, 1:46 PM

Sun, Nov 16

markj committed rG1390bba42caf: file: Add a fdclose method (authored by markj).
file: Add a fdclose method
Sun, Nov 16, 6:25 PM
markj committed rGebc17879f088: inotify: Work around the vput() bug directly (authored by markj).
inotify: Work around the vput() bug directly
Sun, Nov 16, 6:24 PM
markj closed D53744: file: Add a fdclose method.
Sun, Nov 16, 6:24 PM
markj closed D53774: inotify: Work around the vput() bug directly.
Sun, Nov 16, 6:24 PM
markj added a comment to D53784: contrib/mandoc: add -ieee754-2008.

Presumably this should be submitted upstream as well: https://mandoc.bsd.lv/

Sun, Nov 16, 4:57 PM
markj added a comment to D53783: msun: expose the C23 functions we already support in <math.h>.

Approved.

Sun, Nov 16, 4:44 PM
markj requested review of D53785: organization.dot: Add srcmgr.
Sun, Nov 16, 4:22 PM

Sat, Nov 15

markj accepted D53777: bsdinstall: Enable FreeBSD-base repo when pkgbase.
Sat, Nov 15, 10:04 PM
markj requested review of D53774: inotify: Work around the vput() bug directly.
Sat, Nov 15, 6:03 PM
markj committed rG47fdacee69ec: arm64/vmm: Don't set MDSCR_EL1.KDE when enabling single-stepping (authored by markj).
arm64/vmm: Don't set MDSCR_EL1.KDE when enabling single-stepping
Sat, Nov 15, 5:43 PM
markj committed rG295f7255a391: arm64/vmm: Fix handling of MDCR_EL2.TDE (authored by markj).
arm64/vmm: Fix handling of MDCR_EL2.TDE
Sat, Nov 15, 5:43 PM
markj committed rG51931e1f0f33: Revert "vnode: Rework vput() to avoid holding the vnode lock after decrementing" (authored by markj).
Revert "vnode: Rework vput() to avoid holding the vnode lock after decrementing"
Sat, Nov 15, 2:35 AM
markj added a reverting change for rG99cb3dca4773: vnode: Rework vput() to avoid holding the vnode lock after decrementing: rG51931e1f0f33: Revert "vnode: Rework vput() to avoid holding the vnode lock after decrementing".
Sat, Nov 15, 2:35 AM
markj added a reverting change for D52608: vnode: Rework vput() to avoid holding the vnode lock after decrementing: rG51931e1f0f33: Revert "vnode: Rework vput() to avoid holding the vnode lock after decrementing".
Sat, Nov 15, 2:35 AM

Fri, Nov 14

markj requested review of D53762: kevent: Hold the knlist mutex when invoking f_event(NOTE_FORK).
Fri, Nov 14, 5:51 PM
markj committed rG1563da200d4d: queue.3: Add MLINKs for *_EMPTY_ATOMIC (authored by markj).
queue.3: Add MLINKs for *_EMPTY_ATOMIC
Fri, Nov 14, 2:32 PM
markj requested review of D53754: rc.subr: Try to make svjc option handling a bit easier to read.
Fri, Nov 14, 2:31 PM
markj updated the diff for D53747: rc.subr: Support setting the audit user when starting services.

Update rc.conf.5 too

Fri, Nov 14, 2:25 PM
markj added a comment to D53711: ministat: Simplify DumpPlot.

Ok, so PlotSet() sets pl->data[j * pl->width + x] |= val where 0<=val<MAX_DS. So your assertion is true, but only because MAX_DS is a power of 2.

Fri, Nov 14, 2:17 PM
markj added a comment to D53747: rc.subr: Support setting the audit user when starting services.
In D53747#1227297, @0mp wrote:

Looks OK.

Would you also have the time to document NAME_audit_user and audit_user in rc.conf(5)? In particular, the difference between command-based and function-based services is worth documenting.

Fri, Nov 14, 2:00 PM