opencolorio: package wants expat >= 2.6.0.
Express this requirement in the package Makefile so on a system like
NetBSD 10 we pull in pkgsrc expat instead of system. Fixes configure
(and builds) for this platform.
zfs: reject all mount op flags for now
- our logic in zfs_vfsops.c is inconsistent. sometimes it checks
uap->flags, sometimes vfsp->vfs_flag. (aka mnt_flag)
- our userland tools (zfs, mount_zfs) currently don't seem to have
a way to pass these flags anyway. (zmount in libzfs always passes
0 to both of mount(2) 'flags' argument and 'uap->flags'. although
it stores something in uap->mflag and uap->optptr, nothing uses
them. it doesn't even set MS_OPTIONSTR. we don't implement
MS_OPTIONSTR anyway.)
this commit simply rejects them for safety. as these operations have
never been implemented in NetBSD, it shouldn't have any impact to users.
maybe someday we should fix these, but i guess it involves some
ABI changes, which i'm not in a mood to do right now.
related to PR/60026https://gnats.netbsd.org/60026
uvm_mmap.c: fix overflow check
this is my best guess of the intention of the original code,
where "*addr + *size < *addr" seems always false because "*size" is 0.
Apply upstream commit "Change file initialization to use INIT_GDB_FILE macro".
Tom Tromey on Thu, 26 Jun 2025, id 5fe70629ceafc157d896adec7799a8888d51dd6b
prometheus-lts: Complete the build
go-module.mk redefine EXTRACT_ONLY and so the PROMETHEUS_WEB_UI was
never extracted. Define EXTRACT_ONLY to address that.
kernel_lock_spinout: fix an assertion failure
it's possible for the calling lwp to be preempted in the middle
of this function and migrated to the "holder" cpu.
this commit would fix the following crash seen on my qemu/nvmm VM
on a busy host:
```
[ 36199.6483272] cpu0[1851 nbxz]: kernel lock spinout
[ 36199.6483272] panic: kernel diagnostic assertion "curcpu() != ci" failed: file "/root/git/netbsd-src/sys/kern/subr_ipi.c", line 358
[ 36199.6483272] cpu0: Begin traceback...
[ 36199.6483272] vpanic() at netbsd:vpanic+0x189
[ 36199.6634956] kern_assert() at netbsd:kern_assert+0x4b
[ 36199.6634956] ipi_unicast() at netbsd:ipi_unicast+0x1a2
[ 36199.6634956] _kernel_lock() at netbsd:_kernel_lock+0x254
[ 36199.6634956] bdev_strategy() at netbsd:bdev_strategy+0xab
[ 36199.6634956] spec_strategy() at netbsd:spec_strategy+0x77
[ 36199.6634956] VOP_STRATEGY() at netbsd:VOP_STRATEGY+0x3c
[ 36199.6755210] uvm_swap_io() at netbsd:uvm_swap_io+0x2c1
[8 lines not shown]
zfs: fix zfs_range_lock_try
the change "zfs: add zfs_range_lock_try" was incomplete.
i've observed the following deadlock:
```
db{0}> tr /a ffff96777f74f400
trace: pid 0 lid 125 at 0xffffce80c3203b50
sleepq_block() at netbsd:sleepq_block+0xf4
cv_wait() at netbsd:cv_wait+0xca
pool_grow() at netbsd:pool_grow+0x47b
pool_get() at netbsd:pool_get+0xae
pool_cache_get_slow() at netbsd:pool_cache_get_slow+0x136
pool_cache_get_paddr() at netbsd:pool_cache_get_paddr+0x27d
kmem_intr_alloc() at netbsd:kmem_intr_alloc+0x13c
kmem_alloc() at netbsd:kmem_alloc+0x2a
zfs_range_lock_impl() at zfs:zfs_range_lock_impl+0x30
zfs_netbsd_putpages() at zfs:zfs_netbsd_putpages+0x1c0
VOP_PUTPAGES() at netbsd:VOP_PUTPAGES+0x43
[6 lines not shown]