Page MenuHomeFreeBSD

markj (Mark Johnston)
User

Projects (9)

User Details

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

Recent Activity

Yesterday

markj added a comment to D59920: rtlbtfw: add firmware to base.

A couple of comments:

  • the firmware blobs should really live under contrib/rtlbtfw rather than being hidden away like this; kernel firmware blobs all live under sys/contrib, by contrast
  • it's not clear where these blobs actually came from--could you please add a text file which describes where they come from and how they can be updated?
Sun, Oct 11, 4:32 PM
markj added a comment to D60603: nfsclient: Make per-entry directory positions usable.

Rick is much more qualified to review this than me. I'm happy to go through the implementation if the idea seems sound.

Sun, Oct 11, 2:30 PM
markj added a reviewer for D60603: nfsclient: Make per-entry directory positions usable: rmacklem.
Sun, Oct 11, 2:29 PM

Sat, Oct 10

markj added a comment to D59981: Makefile.inc1: Build clang-tblgen when MK_LLVM_BINUTILS_BOOTSTRAP=yes.

I reproduced the problem as well. The issue arises when we need to bootstrap a compiler in order to do the build because the host toolchain is too old, i.e., these messages get printed:

Sat, Oct 10, 6:01 PM · build
markj added a comment to D60359: bhyve: Add rfb unix socket access rights configuration.

This feature won't work with unprivileged bhyve, which can't change the owner and group of the file.

Sat, Oct 10, 5:57 PM
markj updated the diff for D60481: bhyveload: Factor global variables into a software context.

Fix the qualifier on loader_hdl.

Sat, Oct 10, 3:46 PM
markj added a comment to D60538: virtio_console: Make the transmit path usable without the tty lock.

Also, serialise each port's virtqueues with a spin mutex
and keep the transmit buffer in the per-port softc where
it outlives both the call and the port, so a system
console can transmit where the tty mutex cannot be taken.

Sat, Oct 10, 1:23 AM
markj added a comment to D60536: if_me: Do not reuse gre(4)'s static sysctl OID number.

Is there any reason to use IFT_TUNNEL in if_gre?

Sat, Oct 10, 1:16 AM

Fri, Oct 9

markj updated the diff for D60554: sound: Revalidate after reacquiring locks when resizing buffers.

Fix an error path in sndbuf_remalloc().

Fri, Oct 9, 9:55 PM
markj updated the diff for D60553: sound: Check for errors from sndbuf_resize().

Remove the CHANNEL_SETFRAGMENTS implementation in uaudio. It
was just returning 1 anyway, forcing a fallback to
CHANNEL_SETBLOCKSIZE.

Fri, Oct 9, 9:51 PM
markj requested review of D60554: sound: Revalidate after reacquiring locks when resizing buffers.
Fri, Oct 9, 9:14 PM
markj requested review of D60553: sound: Check for errors from sndbuf_resize().
Fri, Oct 9, 9:14 PM
markj accepted D60439: makefs: count "." in the link count and size of dataset roots.
Fri, Oct 9, 2:27 PM
markj updated the diff for D60481: bhyveload: Factor global variables into a software context.

Address review comments

Fri, Oct 9, 1:53 PM

Thu, Oct 8

markj added a comment to D60473: nvmft: Add tests for various various shutdown/disconnect scenarios.

Hum, I just realized that there are a few tests which require that ctld not be running, see usr.sbin/ctladm/tests/port.sh. I guess there's not much we can do about that unless we go back to requiring each test start/stop ctld, which in turn makes them slow and non-parallelizable.

Thu, Oct 8, 7:40 PM
markj added a reverting change for rGcb7009867ae6: socket: Restore handling of IPPROTO_DIVERT: rG5bf78497dc3a: socket: Remove the divert(4) socket compat shim again.
Thu, Oct 8, 6:19 PM
markj committed rG6b1d5fec57f9: netipsec: Fix V_spd_size updates (authored by markj).
netipsec: Fix V_spd_size updates
Thu, Oct 8, 6:19 PM
markj committed rG5bf78497dc3a: socket: Remove the divert(4) socket compat shim again (authored by markj).
socket: Remove the divert(4) socket compat shim again
Thu, Oct 8, 6:19 PM
markj closed D60418: netipsec: Fix V_spd_size updates.
Thu, Oct 8, 6:19 PM
markj closed D60390: socket: Remove divert(4) socket compat shim.
Thu, Oct 8, 6:19 PM
markj added a reverting change for D59018: socket: Restore handling of IPPROTO_DIVERT: rG5bf78497dc3a: socket: Remove the divert(4) socket compat shim again.
Thu, Oct 8, 6:19 PM
markj requested review of D60485: dhclient: Add some regression tests.
Thu, Oct 8, 6:05 PM
markj requested review of D60484: dhclient: Avoid out-of-bounds reads in check_classless_option().
Thu, Oct 8, 6:05 PM
markj added a comment to D59981: Makefile.inc1: Build clang-tblgen when MK_LLVM_BINUTILS_BOOTSTRAP=yes.

I can't reproduce the problem described in the change description. I had no problems building and booting a riscv VM on an arm64 system running commit d9e2caccfac1. I ran:

Thu, Oct 8, 6:03 PM · build
markj requested review of D60481: bhyveload: Factor global variables into a software context.
Thu, Oct 8, 4:36 PM
markj added inline comments to D60450: mkimg: Add per-partition alignment.
Thu, Oct 8, 4:14 PM
markj committed rG62f54beab05a: tests/sys/kern: Skip some timer tests if ncpu == 1 (authored by markj).
tests/sys/kern: Skip some timer tests if ncpu == 1
Thu, Oct 8, 3:23 PM
markj added inline comments to D60450: mkimg: Add per-partition alignment.
Thu, Oct 8, 2:54 PM
markj added a comment to D60450: mkimg: Add per-partition alignment.

Shouldn't this also get a man page update?

Thu, Oct 8, 2:37 PM

Wed, Oct 7

markj added inline comments to D57346: p1003_1b: Add capability mode checks.
Wed, Oct 7, 8:24 PM
markj accepted D57348: rtprio(_thread): Add capability mode checks.
Wed, Oct 7, 8:19 PM
markj accepted D57385: getpgid,getsid: Add capability mode checks.
Wed, Oct 7, 8:11 PM
markj accepted D60044: rc.d/mountd: Do not require /etc/exports.
Wed, Oct 7, 4:05 PM
markj added inline comments to D60421: kern: add primitive checked versions of copyin/copyout.
Wed, Oct 7, 3:52 PM
markj accepted D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.
Wed, Oct 7, 3:38 PM
markj added inline comments to D60120: sound: Drain the dsp cdev before freeing resources.
Wed, Oct 7, 3:11 PM
markj committed rGfa6fe034a73c: inotify.2: Add some entries to the BUGS section (authored by markj).
inotify.2: Add some entries to the BUGS section
Wed, Oct 7, 2:56 PM
markj committed rGc2ac0db7150c: devfs: Explicitly disable inotify (authored by markj).
devfs: Explicitly disable inotify
Wed, Oct 7, 2:56 PM
markj closed D60364: devfs: Explicitly disable inotify.
Wed, Oct 7, 2:56 PM
markj accepted D60420: makefs/zfs: Allow the autotrim pool property to be set.

Looks fine to me aside from a couple of nits. Please go ahead and commit without re-uploading if you want.

Wed, Oct 7, 2:43 PM
markj accepted D60434: libthr: Reorder pthread mutex to prevent false sharing.
Wed, Oct 7, 2:34 PM
markj added inline comments to D60127: sound: Do not take PCM_LOCK just to busy the device.
Wed, Oct 7, 2:24 PM
markj committed rG67f85bf4b3f1: gve: fix double free on ring allocation failure (authored by jtranoleary_google.com).
gve: fix double free on ring allocation failure
Wed, Oct 7, 2:06 PM
markj committed rGd45b063c06d4: gve: fix kernel panic on attach failure (authored by jtranoleary_google.com).
gve: fix kernel panic on attach failure
Wed, Oct 7, 2:06 PM
markj closed D60386: gve: fix double free on ring allocation failure.
Wed, Oct 7, 2:05 PM
markj closed D60385: gve: fix kernel panic on attach failure.
Wed, Oct 7, 2:05 PM
markj added a comment to D60271: arm64: avoid full icache flushes on PIPT icaches.
In D60271#1385821, @alc wrote:
In D60271#1383119, @alc wrote:

Yes. I would test GENERIC-NODEBUG kernels without and with this patch. I have /etc/src.conf:

WITHOUT_LLVM_ASSERTIONS=yes
#
WITH_CLEAN=yes
WITH_MALLOC_PRODUCTION=yes

I run:

#!/bin/csh
cd /usr/src
rm -fr /usr/obj/usr/src
while ( 1 )
    date
    sysctl vm.pmap vm.reserv vm.stats.vm.v_vm_faults
    time make -j16 buildworld > & /dev/null 
    rm -fr /usr/obj/usr/src
end

with -j adjusted for the machine and the script's output redirected to a log.

Unpatched output: https://reviews.freebsd.org/P717
Patched output: https://reviews.freebsd.org/P718

Timings from an unpatched kernel:

936.90 real     45789.09 user      3280.64 sys
933.97 real     45789.59 user      3314.96 sys
935.05 real     45774.25 user      3334.41 sys
934.40 real     45794.90 user      3302.60 sys
932.76 real     45846.53 user      3315.03 sys
933.13 real     45788.78 user      3318.50 sys

and a patched kernel:

938.43 real     45847.32 user      3243.15 sys
933.22 real     45670.20 user      3268.07 sys
933.84 real     45820.26 user      3269.70 sys
933.28 real     45730.27 user      3252.91 sys
939.21 real     45792.15 user      3287.05 sys
930.78 real     45835.46 user      3260.92 sys

which indicates that the change slightly reduced system CPU time.

Thanks. This system is ZFS-based, yes? Interestingly, you're getting 25% more L3C mappings than I see on UFS-based systems, presumably from loading executable files.

Wed, Oct 7, 1:33 PM
markj committed rGa23901a37be9: linux: Initialize per-VNET state earlier (authored by markj).
linux: Initialize per-VNET state earlier
Wed, Oct 7, 1:29 PM
markj committed rG5c20c75b67e3: epair: Make vnet_epair_uninit() run earlier (authored by markj).
epair: Make vnet_epair_uninit() run earlier
Wed, Oct 7, 1:29 PM
markj closed D60388: epair: Make vnet_epair_uninit() run earlier.
Wed, Oct 7, 1:29 PM
markj closed D60389: linux: Initialize per-VNET state earlier.
Wed, Oct 7, 1:29 PM

Tue, Oct 6

markj added a comment to D60417: arm64 pmap_fault: a local TLB invalidation suffices when enabling write access.
In D60417#1385873, @alc wrote:

pmap_enter() should similarly be using a local invalidation when it is upgrading a R/O mapping to R/W. Comparing the amd64 and arm64 pmap_enter()s is what led me to discover all of this.

amd64 will do a (targeted) remote invalidation when upgrading a R/O mapping, I believe. Do you mean that it too should only issue a local invalidation in that case?

Tue, Oct 6, 8:14 PM
markj added a comment to D60417: arm64 pmap_fault: a local TLB invalidation suffices when enabling write access.
In D60417#1385873, @alc wrote:

pmap_enter() should similarly be using a local invalidation when it is upgrading a R/O mapping to R/W. Comparing the amd64 and arm64 pmap_enter()s is what led me to discover all of this.

Tue, Oct 6, 8:07 PM
markj accepted D60417: arm64 pmap_fault: a local TLB invalidation suffices when enabling write access.
Tue, Oct 6, 8:03 PM
markj requested review of D60418: netipsec: Fix V_spd_size updates.
Tue, Oct 6, 7:01 PM
markj added inline comments to D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.
Tue, Oct 6, 2:46 PM
markj added inline comments to D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.
Tue, Oct 6, 2:35 PM
markj added a reviewer for D60387: hv_kvp: Fix some bugs and nits: whu.
Tue, Oct 6, 2:25 PM
markj accepted D60398: openssl: build the legacy provider the way upstream does.
Tue, Oct 6, 2:07 PM
markj accepted D60397: openssl: make libcrypto export the same symbols as upstream.

Do you have any script which could be used to verify the linker script after future imports?

Tue, Oct 6, 1:55 PM
markj accepted D60395: openssl: build libcrypto and libssl from upstream's source set.
Tue, Oct 6, 1:49 PM
markj accepted D60396: openssl: configure with --openssldir=/etc/ssl.
Tue, Oct 6, 1:38 PM
markj accepted D60402: rtld.c: avoid double-free on dso load failure in do_load_object().
Tue, Oct 6, 1:25 PM
markj accepted D60393: devfs_open: do not deref dsw after dev_relthread().
Tue, Oct 6, 12:18 AM

Mon, Oct 5

markj accepted D60386: gve: fix double free on ring allocation failure.
Mon, Oct 5, 10:43 PM
markj accepted D60385: gve: fix kernel panic on attach failure.
Mon, Oct 5, 10:42 PM
markj added a comment to D60384: gve: align dma buffers to requested boundary.

This patch and the two that follow it fix boot panics caused by gve on some ARM images which don't have https://reviews.freebsd.org/D59476 . gve fails to attach properly due to DMA issues and then panics when trying to unwind allocations due to null pointer dereferences.

Mon, Oct 5, 10:41 PM
markj added inline comments to D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.
Mon, Oct 5, 10:37 PM
markj added a comment to D60377: sys/pcpu.h: Implement IS_BSP() for all arches, provide BSP_CPUID().

Where is the include loop exactly? I can't see it. IMO we should try to fix that instead of introducing a new header.

Mon, Oct 5, 10:29 PM
markj added a reverting change for rGcb7009867ae6: socket: Restore handling of IPPROTO_DIVERT: D60390: socket: Remove divert(4) socket compat shim.
Mon, Oct 5, 10:26 PM
markj requested review of D60390: socket: Remove divert(4) socket compat shim.
Mon, Oct 5, 10:25 PM
markj added a reverting change for D59018: socket: Restore handling of IPPROTO_DIVERT: D60390: socket: Remove divert(4) socket compat shim.
Mon, Oct 5, 10:25 PM
markj closed D60247: netinet: Deprecate OSIOCAIFADDR and OSIOCAIFADDR_IN6.
Mon, Oct 5, 10:24 PM
markj committed rG4bb60157646d: netinet: Deprecate OSIOCAIFADDR and OSIOCAIFADDR_IN6 (authored by markj).
netinet: Deprecate OSIOCAIFADDR and OSIOCAIFADDR_IN6
Mon, Oct 5, 10:24 PM
markj added a comment to D60388: epair: Make vnet_epair_uninit() run earlier.

Different cloner drivers are quite inconsistent with each other about which sysinit subsystem they belong to. Some further cleanup here would be great, here I am just trying to minimally fix a panic I see when running the test suite with the linuxulator loaded.

Mon, Oct 5, 10:18 PM
markj requested review of D60389: linux: Initialize per-VNET state earlier.
Mon, Oct 5, 10:14 PM
markj requested review of D60388: epair: Make vnet_epair_uninit() run earlier.
Mon, Oct 5, 10:14 PM
markj requested review of D60387: hv_kvp: Fix some bugs and nits.
Mon, Oct 5, 10:06 PM
markj added a comment to D60271: arm64: avoid full icache flushes on PIPT icaches.
In D60271#1383119, @alc wrote:

Yes. I would test GENERIC-NODEBUG kernels without and with this patch. I have /etc/src.conf:

WITHOUT_LLVM_ASSERTIONS=yes
#
WITH_CLEAN=yes
WITH_MALLOC_PRODUCTION=yes

I run:

#!/bin/csh
cd /usr/src
rm -fr /usr/obj/usr/src
while ( 1 )
    date
    sysctl vm.pmap vm.reserv vm.stats.vm.v_vm_faults
    time make -j16 buildworld > & /dev/null 
    rm -fr /usr/obj/usr/src
end

with -j adjusted for the machine and the script's output redirected to a log.

Mon, Oct 5, 8:57 PM
markj created P718 Command-Line Input.
Mon, Oct 5, 8:54 PM
markj created P717 Command-Line Input.
Mon, Oct 5, 8:54 PM
markj added inline comments to D60127: sound: Do not take PCM_LOCK just to busy the device.
Mon, Oct 5, 8:49 PM
markj accepted D60378: sys.mk: CTFMERGE: don't assume objfiles always have CTF sections.
Mon, Oct 5, 7:53 PM
markj added inline comments to D60127: sound: Do not take PCM_LOCK just to busy the device.
Mon, Oct 5, 2:55 PM
markj accepted D60285: ufssuspend(4): mark non-passable.
Mon, Oct 5, 2:21 PM
markj requested review of D60364: devfs: Explicitly disable inotify.
Mon, Oct 5, 1:59 PM
markj committed rG80af0a32e48b: tcp: Preserve borrowed ICMPv6 error mbufs (authored by Andrew Griffiths <andrew@calif.io>).
tcp: Preserve borrowed ICMPv6 error mbufs
Mon, Oct 5, 1:24 PM
markj closed D60143: tcp: Preserve borrowed ICMPv6 error mbufs.
Mon, Oct 5, 1:23 PM
markj closed D60184: netinet6: Fix the OSIOCAIFADDR_IN6 handler.
Mon, Oct 5, 1:21 PM
markj committed rGc109a681456d: netinet6: Fix the OSIOCAIFADDR_IN6 handler (authored by markj).
netinet6: Fix the OSIOCAIFADDR_IN6 handler
Mon, Oct 5, 1:21 PM
markj added inline comments to D60283: kern/coredump_vnode.c: avoid dumping to the mount point we suspended.
Mon, Oct 5, 1:20 PM
markj accepted D59262: stand: userboot: improve userdisk error handling.
Mon, Oct 5, 1:13 PM
markj added a comment to D60271: arm64: avoid full icache flushes on PIPT icaches.

I can test this patch on it this weekend if you tell me what exactly you'd like to try.

Mon, Oct 5, 1:05 PM
markj accepted D60280: uiomove_object_page: a failed copy can still dirty the page.
Mon, Oct 5, 1:01 PM
markj added inline comments to D60285: ufssuspend(4): mark non-passable.
Mon, Oct 5, 12:55 PM
markj added a comment to D40022: git-mfc: A script to merge commits and find things to merge.
In D40022#1384219, @imp wrote:

So I don't know if this landed in main, or a better one did, but I'm going to walk away from this one.

Mon, Oct 5, 12:37 PM

Fri, Oct 2

markj added a comment to D60271: arm64: avoid full icache flushes on PIPT icaches.
In D60271#1383042, @alc wrote:

Do any of you have access to a machine with IDC, but not DIC, e.g., an older Ampere I think? The results on a small Cortex-X1/A78 system are at best inclusive.

Fri, Oct 2, 11:08 PM
markj committed R9:92722ee35c8b: pgpkeys: Extend the expiration date on my keys (authored by markj).
pgpkeys: Extend the expiration date on my keys
Fri, Oct 2, 5:24 PM
markj accepted D60232: vmm: release the lock when vrtc_snapshot() fails.
Fri, Oct 2, 3:48 PM
markj accepted D59996: libc/stdlib/getenv.c: always allocate new environment.
Fri, Oct 2, 1:59 PM