Page MenuHomeFreeBSD

markj (Mark Johnston)
User

Projects (9)

User Details

User Since
Mar 12 2014, 1:00 AM (599 w, 4 d)

Recent Activity

Today

markj committed rG4341f92251ae: share/mk: Fix a heuristic in bsd.cpu.mk (authored by markj).
share/mk: Fix a heuristic in bsd.cpu.mk
Sun, Sep 7, 4:09 PM
markj closed D52340: share/mk: Fix a heuristic in bsd.cpu.mk.
Sun, Sep 7, 4:09 PM
markj added inline comments to D52310: ng_hci: Deconst NG_HCI_BDADDR_ANY.
Sun, Sep 7, 4:06 PM
markj accepted D52410: kern: replace several EBADF with EINVAL.
Sun, Sep 7, 4:04 PM

Fri, Sep 5

markj requested review of D52405: release: Build distribution sets with --mtime set.
Fri, Sep 5, 8:35 PM
markj requested review of D52404: Makefile.inc1: Set an mtime when building distribution sets.
Fri, Sep 5, 8:35 PM
markj added a comment to D52340: share/mk: Fix a heuristic in bsd.cpu.mk.

Does anyone have an objection to committing this? Cross-build testing on github is broken currently without it.

Fri, Sep 5, 4:27 PM
markj added a comment to D51156: 15.0R/relnotes: Add breaking bridge changes.

The release note is wrong now: for now, bridge will continue to accept member interfaces with addresses assigned.

Fri, Sep 5, 3:59 PM
markj requested review of D52396: committers-guide: Mention RELNOTES in a couple of places.
Fri, Sep 5, 3:19 PM
markj accepted D52395: sys/power.h: Add `_KERNEL` guards.
Fri, Sep 5, 2:58 PM
markj added a comment to D52386: vfs: Avoid null dereference.
In D52386#1196305, @kib wrote:
In D52386#1196301, @des wrote:

Why not fix up the one VOP_READDIR caller which doesn't pass an eof pointer?

Because eofflag is documented to be optional and nullable, there may be third-party code that expects that to be the case, and removing the existing null checks would be more work than adding the handful that were missing.

Where is it documented, in VOP_READDIR.9? Then change the documentation as well.

We do not maintain neither KBI nor KPI compatibility for VFS (or VM), so this change should be even mergeable to stable branches.

Fri, Sep 5, 1:14 PM

Thu, Sep 4

markj added a comment to D52387: release: Add variables for makefs and mkimg arguments.

Are we sure all these scripts aren't set -u? Even if that's true, I don't love relying on that.

Yes, they are definitely not set -u-clean. I don't quite follow though: how does this patch rely on that? : ${FOO:=bar} is ok even with set -u configured.

The setting of the default values for ..ARGS looks to be stacked on top of this, so in this patch they are not yet defined unless the external environment sets them?

Thu, Sep 4, 8:50 PM
markj updated the diff for D52388: release: Set default timestamps for makefs and mkimg outputs.

Use GITEPOCH, i.e., the commit time of the most recent commit to provide the timestamp.

Thu, Sep 4, 8:47 PM
markj added a comment to D52387: release: Add variables for makefs and mkimg arguments.

Are we sure all these scripts aren't set -u? Even if that's true, I don't love relying on that.

Thu, Sep 4, 8:38 PM
markj added a comment to D52386: vfs: Avoid null dereference.

Why not fix up the one VOP_READDIR caller which doesn't pass an eof pointer?

Thu, Sep 4, 8:26 PM
markj requested review of D52388: release: Set default timestamps for makefs and mkimg outputs.
Thu, Sep 4, 6:12 PM
markj requested review of D52387: release: Add variables for makefs and mkimg arguments.
Thu, Sep 4, 6:12 PM
markj committed rG65688fcb79ee: share/sendmail: Use consistent ordering when processing files (authored by markj).
share/sendmail: Use consistent ordering when processing files
Thu, Sep 4, 6:10 PM
markj closed D52349: share/sendmail: Use consistent ordering when processing files.
Thu, Sep 4, 6:10 PM
markj added inline comments to D52369: iflib: report output drops and handle ENOBUFS properly.
Thu, Sep 4, 4:05 PM
markj accepted D52335: bridge: Print a warning if member_ifaddrs=1.
Thu, Sep 4, 2:42 PM
markj added inline comments to D52043: acpi: Use sleep types defined in sys/power.h.
Thu, Sep 4, 2:37 PM
markj added inline comments to D52044: sys/power: Sleep type reporting by PM backends.
Thu, Sep 4, 2:30 PM
markj added a comment to D52036: sys/power: Generic sleep types.

Maybe we should just replace POWER_SLEEP_STATE_* entirely if allowed.

Thu, Sep 4, 2:22 PM
markj committed rG407c4d1eeb80: openssl: Disable KTLS in bootstrap libraries (authored by markj).
openssl: Disable KTLS in bootstrap libraries
Thu, Sep 4, 1:30 PM
markj closed D52341: openssl: Disable KTLS in bootstrap libraries.
Thu, Sep 4, 1:29 PM
markj requested review of D52382: tools/build: Provide modern sysctl.h for bootstrap tools.
Thu, Sep 4, 1:28 PM
markj added a comment to D52360: libnv: Fix handling of nvlist_dump() and nvlist_send() for child nvlists.

Why is that the goal? What's the problem with sending an nvlist that's part of another list? It's a natural and useful thing to be able to do. The only thing preventing it seems to be an oversight in the nvlist traversal code.

The main idea was to have something like ownership of a nvlist. When you use nvlist_move to transfer an object into nvlist, you are moving ownership of that object to that list. The assumption is that if you continue to reference the original list afterward, you’re probably doing something wrong. Like having a dangling reference. Otherwise one can use for example nvlist_xfer or nvlist_destroy as you forget that this nvlist is a part of bigger one.

Thu, Sep 4, 1:02 PM

Wed, Sep 3

markj added a comment to D52360: libnv: Fix handling of nvlist_dump() and nvlist_send() for child nvlists.

The goal, which obviously was not met, was to prevent sending an nvlist that is part of another list (array or list).

Wed, Sep 3, 6:45 PM
markj requested review of D52360: libnv: Fix handling of nvlist_dump() and nvlist_send() for child nvlists.
Wed, Sep 3, 4:39 PM
markj committed rG13e7b21901a5: Makefile.inc1: Build openssl as a certctl dependency on old FreeBSD (authored by markj).
Makefile.inc1: Build openssl as a certctl dependency on old FreeBSD
Wed, Sep 3, 4:15 PM
markj closed D52291: Makefile.inc1: Build openssl as a certctl dependency on old FreeBSD.
Wed, Sep 3, 4:15 PM
markj added inline comments to D52310: ng_hci: Deconst NG_HCI_BDADDR_ANY.
Wed, Sep 3, 4:11 PM
markj added a comment to D52329: bhyve: insert VM name to the VNC screen title.

@markj , would you mind to backport it as well? Very useful!

Wed, Sep 3, 3:46 PM
markj committed rG0e7f8abb4526: bhyve: insert VM name to the VNC screen title (authored by naito.yuichiro_gmail.com).
bhyve: insert VM name to the VNC screen title
Wed, Sep 3, 3:45 PM
markj closed D52329: bhyve: insert VM name to the VNC screen title.
Wed, Sep 3, 3:45 PM
markj accepted D52329: bhyve: insert VM name to the VNC screen title.

Looks ok to me. IMO it is unnecessary to store the string length in the softc, but it's ok.

Wed, Sep 3, 3:40 PM
markj accepted D52355: dtrace_lockstat.4: Fix description.
Wed, Sep 3, 1:38 PM
markj added a comment to D52291: Makefile.inc1: Build openssl as a certctl dependency on old FreeBSD.

Any further comments on or objections to the patch? I'd like to commit this soon: without it syzbot builds are broken since the syzbot host is running a quite old version of FreeBSD.

Wed, Sep 3, 1:33 PM

Tue, Sep 2

markj requested review of D52349: share/sendmail: Use consistent ordering when processing files.
Tue, Sep 2, 8:06 PM
markj abandoned D50952: kerberos5: Avoid embedding full paths in generated files.

I fear the underlying code code isn't safe. The problem is that each of the value of GEN_* is a target on its own. As a demonstrator I created a trivial makefile:

GEN=a b c d
${GEN}:
        touch ${GEN}

I you ask it to make multiple targets in parallel with something like make -j40 a b c d the generator runs more than once:

--- a ---
--- b ---
--- c ---
--- d ---
--- a ---
touch a b c d
--- b ---
touch a b c d
--- c ---
touch a b c d
--- d ---
touch a b c d

It probably works out ok in practice because it just recreates the files with the same contents, but I'm afraid adding the sed will introduce more races. I'm not sure what the correct solution is. Make doesn't really deal well with multiple outputs.

Tue, Sep 2, 7:07 PM
markj committed rG45488e95b4c6: mandoc: Install mandoc.db.5 (authored by markj).
mandoc: Install mandoc.db.5
Tue, Sep 2, 6:40 PM
markj closed D52343: mandoc: Install mandoc.db.5.
Tue, Sep 2, 6:40 PM
markj requested review of D52343: mandoc: Install mandoc.db.5.
Tue, Sep 2, 5:02 PM
markj accepted D52336: bridge: Set member_ifaddrs=1 by default.

Please commit this to main, it’s not appropriate to leave that broken

Tue, Sep 2, 4:56 PM
markj updated the diff for D52340: share/mk: Fix a heuristic in bsd.cpu.mk.

Check whether BOOTSTRAPPING is defined

Tue, Sep 2, 4:29 PM
markj added inline comments to D52340: share/mk: Fix a heuristic in bsd.cpu.mk.
Tue, Sep 2, 3:59 PM
markj updated the diff for D52340: share/mk: Fix a heuristic in bsd.cpu.mk.

Fix typos

Tue, Sep 2, 3:58 PM
markj added inline comments to D52340: share/mk: Fix a heuristic in bsd.cpu.mk.
Tue, Sep 2, 3:55 PM
markj requested review of D52341: openssl: Disable KTLS in bootstrap libraries.
Tue, Sep 2, 3:40 PM
markj requested review of D52340: share/mk: Fix a heuristic in bsd.cpu.mk.
Tue, Sep 2, 3:40 PM
markj accepted D52327: unix/stream: fix EVFILT_WRITE after we did shutdown(2).
Tue, Sep 2, 2:28 PM
markj added inline comments to D51735: bhyve: introduce cancel interface for usb device.
Tue, Sep 2, 1:10 PM
markj added inline comments to D52310: ng_hci: Deconst NG_HCI_BDADDR_ANY.
Tue, Sep 2, 12:57 PM
markj added inline comments to D52329: bhyve: insert VM name to the VNC screen title.
Tue, Sep 2, 12:55 PM

Sat, Aug 30

markj updated the diff for D52291: Makefile.inc1: Build openssl as a certctl dependency on old FreeBSD.

Only change behaviour for FreeBSD

Sat, Aug 30, 3:53 PM
markj retitled D52291: Makefile.inc1: Build openssl as a certctl dependency on old FreeBSD from Makefile.inc1: Build certctl as a bootstrap tool on old FreeBSD to Makefile.inc1: Build openssl as a certctl dependency on old FreeBSD.
Sat, Aug 30, 3:30 PM
markj accepted D52293: kern/kern_thread.c: improve assert in thread_single_end().
Sat, Aug 30, 3:06 PM
markj committed rGa7aac8c20497: vnode: Assert that VOP_LOCK succeeds in freevnode() (authored by markj).
vnode: Assert that VOP_LOCK succeeds in freevnode()
Sat, Aug 30, 2:58 PM
markj closed D52245: vnode: Assert that VOP_LOCK succeeds in freevnode().
Sat, Aug 30, 2:58 PM

Fri, Aug 29

markj added a comment to D52245: vnode: Assert that VOP_LOCK succeeds in freevnode().
In D52245#1193462, @kib wrote:

If doing this, I believe it would be also useful to assert that the vnode is not locked on the freevnode() entry.

That seems reasonable.

This assumption is wrong for the call to vdropl() under VI_DEFINACT in vgonel(). But it seems true for all other calls.

Fri, Aug 29, 11:55 PM
markj requested review of D52291: Makefile.inc1: Build openssl as a certctl dependency on old FreeBSD.
Fri, Aug 29, 11:35 PM
markj updated the diff for D52245: vnode: Assert that VOP_LOCK succeeds in freevnode().

Assert that the vnode is unlocked in freevnode().

Fri, Aug 29, 11:01 PM
markj added a comment to D52245: vnode: Assert that VOP_LOCK succeeds in freevnode().
In D52245#1193462, @kib wrote:

Did you observed this in real world?

Fri, Aug 29, 10:56 PM
markj added a comment to D52232: random: Allow pure entropy sources to provide a min-entropy estimate.
In D52232#1193347, @cem wrote:

Well, 8 bits per sample, but yes this might turn out to be excessive. Perhaps I should include a tunable to override that value.

I guess I wouldn't expect any source to provide only one byte per sample, so that's only ~2 bits per byte at word-size input, which is not super high.

Fri, Aug 29, 9:07 PM
markj requested review of D52245: vnode: Assert that VOP_LOCK succeeds in freevnode().
Fri, Aug 29, 8:27 PM
markj accepted D52242: make_dev.9: add a note about the device cred usage.
Fri, Aug 29, 5:48 PM
markj accepted D51474: vm_fault: try to only sbusy valid page that is not writeable.
In D51474#1193369, @kib wrote:

Comment updates.

Mark, do you want the 'In collaboration with: markj' tag for this change?

Fri, Aug 29, 5:46 PM
markj added inline comments to D51156: 15.0R/relnotes: Add breaking bridge changes.
Fri, Aug 29, 3:46 PM
markj accepted D51474: vm_fault: try to only sbusy valid page that is not writeable.

I think the change is ok, my notes are mostly about code comments.

Fri, Aug 29, 3:39 PM
markj updated the diff for D52233: random: Exclude the timestamp from healthtest for pure sources.

Add a comment.

Fri, Aug 29, 1:50 PM
markj updated the diff for D52230: random: Fix synchronization of hc_source_mask.
  • Add a comment above hc_source_mask.
  • Load the mask once before looping over its bits.
Fri, Aug 29, 1:40 PM
markj updated the diff for D52228: random: Make the min-entropy estimate configurable.

Get rid of an unneeded variable.

Fri, Aug 29, 1:39 PM
markj added inline comments to D52228: random: Make the min-entropy estimate configurable.
Fri, Aug 29, 1:38 PM
markj added a comment to D52232: random: Allow pure entropy sources to provide a min-entropy estimate.
In D52232#1193086, @cem wrote:

8 bits per byte might be high for some sources... I'm not sure. It's probably fine for the relatively simplistic tests in the health test?

Fri, Aug 29, 1:22 PM
markj added inline comments to D52233: random: Exclude the timestamp from healthtest for pure sources.
Fri, Aug 29, 1:18 PM
markj added a comment to D52230: random: Fix synchronization of hc_source_mask.
In D52230#1193071, @cem wrote:

Should we add a comment on the hc_source_mask definition about its locking/access protocol? LGTM.

Fri, Aug 29, 1:16 PM

Thu, Aug 28

markj requested review of D52233: random: Exclude the timestamp from healthtest for pure sources.
Thu, Aug 28, 9:48 PM
markj requested review of D52232: random: Allow pure entropy sources to provide a min-entropy estimate.
Thu, Aug 28, 9:48 PM
markj requested review of D52231: random.4: Document the kern.random.nist_healthtest_enabled tunable.
Thu, Aug 28, 9:47 PM
markj requested review of D52230: random: Fix synchronization of hc_source_mask.
Thu, Aug 28, 9:47 PM
markj requested review of D52229: random: Make the entropy source registration interface more uniform.
Thu, Aug 28, 9:47 PM
markj requested review of D52228: random: Make the min-entropy estimate configurable.
Thu, Aug 28, 9:47 PM
markj added inline comments to D50067: ix/ixv: Add support for new Intel Ethernet E610 family devices.
Thu, Aug 28, 7:58 PM
markj added inline comments to D52201: db/hash_page.c: Reswap memory buffer in __put_page when dealing with a different byte order.
Thu, Aug 28, 1:13 PM

Wed, Aug 27

markj accepted D52192: irdma: normalize .CURDIR-relative paths to SRCTOP.
Wed, Aug 27, 9:09 PM
markj accepted D52149: nvme: Call vm_fault_hold_pages instead of vmapbuf.
Wed, Aug 27, 6:16 PM
markj accepted D52177: tzcode: Add a test case for thin jails.
Wed, Aug 27, 4:33 PM
markj added inline comments to D51735: bhyve: introduce cancel interface for usb device.
Wed, Aug 27, 4:05 PM
markj added inline comments to D52166: bhyve: implement single USB device passthrough support.
Wed, Aug 27, 3:52 PM
markj accepted D51735: bhyve: introduce cancel interface for usb device.
Wed, Aug 27, 3:41 PM
markj added a comment to D51735: bhyve: introduce cancel interface for usb device.

You don't need to call ue_cancel in pci_xhci_cmd_reset_ep()?

Wed, Aug 27, 1:40 PM
markj accepted D52165: vm_fault: improve interface for vm_fault_quick_hold_pages().
Wed, Aug 27, 1:17 PM

Tue, Aug 26

markj added inline comments to D52165: vm_fault: improve interface for vm_fault_quick_hold_pages().
Tue, Aug 26, 8:30 PM
markj accepted D52171: udp: slightly refactor udp_append().
Tue, Aug 26, 5:28 PM
markj accepted D52170: udp: don't leak mbuf if tunnel didn't consume and inpcb is gone.
Tue, Aug 26, 5:27 PM
markj accepted D52165: vm_fault: improve interface for vm_fault_quick_hold_pages().
Tue, Aug 26, 4:48 PM
markj added inline comments to D52149: nvme: Call vm_fault_hold_pages instead of vmapbuf.
Tue, Aug 26, 4:37 PM
markj added inline comments to D52149: nvme: Call vm_fault_hold_pages instead of vmapbuf.
Tue, Aug 26, 12:55 PM

Mon, Aug 25

markj accepted D52149: nvme: Call vm_fault_hold_pages instead of vmapbuf.
Mon, Aug 25, 9:39 PM