DragonFlyBSD/src da06007 — usr.bin/dsynth progress.js

dsynth: remove unused pkgsrc.se link from progress.js
DeltaFile
+0-1usr.bin/dsynth/progress.js
+0-11 files

DragonFlyBSD/src bf121c4 — nrelease/gui/etc ttys fstab, nrelease/gui/etc/X11 xorg.conf

world: replace legacy pkgsrc paths with dports locations

While there, remove some obsolete/unnecessary contents from
nrelease/gui skel.
DeltaFile
+6-6test/x86_64/Makefile
+0-11nrelease/gui/etc/X11/xorg.conf
+1-2nrelease/gui/etc/fstab
+1-1nrelease/gui/root/.fluxbox/menu
+1-1nrelease/gui/root/.fluxbox/init
+1-1nrelease/gui/etc/ttys
+10-223 files not shown
+13-259 files

DragonFlyBSD/src 42138a6 — etc login.conf, etc/defaults rc.conf

world: remove legacy pkgsrc paths
DeltaFile
+3-5share/man/man8/rc.8
+2-3share/man/man7/security.7
+2-2etc/login.conf
+2-2etc/defaults/rc.conf
+1-1usr.bin/man/man.sh
+1-1tools/gitrev.sh
+11-143 files not shown
+14-179 files

DragonFlyBSD/src 41b8eec — usr.sbin Makefile, usr.sbin/rvn Makefile rvn.c

Add usr.sbin/rvn

This is the Ravenports bootstrap stub program.
if /raven/sbin/rvn is already installed, it is exec'd with
original arguments.  Otherwise, with the user's confirmation,
rvn is downloaded and installed in place.
DeltaFile
+412-0usr.sbin/rvn/rvn.c
+10-0usr.sbin/rvn/Makefile
+1-0usr.sbin/Makefile
+423-03 files

DragonFlyBSD/src 165105c — usr.sbin Makefile, usr.sbin/rvn Makefile rvn.c

Add usr.sbin/rvn

This is the Ravenports bootstrap stub program.
if /raven/sbin/rvn is already installed, it is exec'd with
original arguments.  Otherwise, with the user's confirmation,
rvn is downloaded and installed in place.
DeltaFile
+412-0usr.sbin/rvn/rvn.c
+10-0usr.sbin/rvn/Makefile
+1-0usr.sbin/Makefile
+423-03 files

DragonFlyBSD/src 19d59b1 — sys/dev/misc/syscons syscons.c

syscons: hold syscons_mtx when scclose() finishes a pending VT switch

A vty in VT_PROCESS mode that has not released the screen leaves
SWITCH_WAIT_REL set on sc->old_scp.  If the process controlling that vty
then dies, scclose() calls finish_vt_rel(scp, TRUE) before it takes
syscons_mtx.  With SWITCH_WAIT_REL set, finish_vt_rel() goes on to
switch to the new screen, and exchange_scr() calls update_kbd_state()
(and, for a K_XLATE vty, save_kbd_state()) with unlock != 0, which drop
and re-acquire syscons_mtx around kbd_ioctl().  Unlocking a mutex that
was never taken panics in _mtx_unlock().

Take syscons_mtx before finish_vt_rel() and keep the existing locked
section.  Clearing SWITCH_WAIT_ACQ and switch_in_progress is then
serialised against the other syscons_mtx holders as well.

Bug: https://bugs.dragonflybsd.org/issues/3496
Reported-by: vjkarbo
DeltaFile
+1-1sys/dev/misc/syscons/syscons.c
+1-11 files

DragonFlyBSD/src 3c24f0e — etc rc.shutdown rc.subr, etc/rc.d rcconf othermta

rc.subr: Update load_rc_config() to make the argument optional

Make the argument optional, so only try to load the per-service config
file (i.e., /etc/rc.conf.d/${service}) when specified.

Remove the 'XXX' dummy mark from scripts that has no service name to
call load_rc_config().

Derived-from: FreeBSD
DeltaFile
+12-10etc/rc.subr
+10-7share/man/man8/rc.subr.8
+1-2etc/rc.shutdown
+1-1etc/rc.d/rcconf
+1-1etc/rc.d/othermta
+1-1etc/rc.d/netoptions
+26-221 files not shown
+27-237 files

DragonFlyBSD/src dff65f6 — usr.sbin/service service.sh

service(8): Enable jail detection to skip "nojail"

DragonFly has implemented the "jail.jailed" sysctl in commit
4e558034a6febf3a5bba02db3c73eca402cd4d98, so use it to enable the jail
handling in service(8).

In addition, clean up the code to reduce duplicate.
DeltaFile
+15-24usr.sbin/service/service.sh
+15-241 files

DragonFlyBSD/src d40d790 — sys/dev/virtual/nvmm nvmm_os.h

nvmm: Tweak nvmm_os.h a bit

* Reuse cpu_ccfence() for __insn_barrier().
* Rename the name of rwlock and mutex locks to make it more intuitive.
DeltaFile
+3-3sys/dev/virtual/nvmm/nvmm_os.h
+3-31 files

DragonFlyBSD/src b534ff7 — sys/sys cdefs.h linker_set.h

<sys/cdefs.h>: Simplify __GLOBL() and move to <sys/linker_set.h>

Simplify __GLOBL() by removing __GLOBL1() (obtained-from: FreeBSD).

Move the __GLOBL() macro to its only user: <sys/liner_set.h>.

While there, also remove the obsolete and disabled __MAKE_SET() macro.
DeltaFile
+5-9sys/sys/linker_set.h
+0-7sys/sys/cdefs.h
+5-162 files

DragonFlyBSD/src 246e752 — sys/sys cdefs.h

<sys/cdefs.h>: Tweak __cachealign macro

Don't check __GNUC__ and always define the __cachealign macro with
__aligned(). The __aligned__ attribute is supported by all current
compilers and it affects the ABI, so it's better to always define it.
DeltaFile
+6-22sys/sys/cdefs.h
+6-221 files

DragonFlyBSD/src a775393 — sys/cpu/x86_64/include tls.h, sys/netgraph/bpf ng_bpf.h

<sys/cdefs.h>: Remove __ARRAY_ZERO compat for flexible array member

It was added in commit 18ba5b61aa74313775925e79837259d0e0ea913b to
satisfy GCC 2.x when the flexible array member was not well supported.
Now this macro is obsolete and so remove it.
DeltaFile
+0-6sys/sys/cdefs.h
+1-1sys/netgraph/bpf/ng_bpf.h
+1-1sys/cpu/x86_64/include/tls.h
+2-83 files

DragonFlyBSD/src bb26c3f — sys/sys cdefs.h

<sys/cdefs.h>: Remove unused and obsolete '__usereg'

This macro was added in commit f754816e98c48671805f81055cf309543b3add1e
from 2003 and seems never used in the source tree.  It might be useful
in the 32-bit era decades ago, but doesn't make sense nowadays,
specially with much more advanced compilers.
DeltaFile
+0-12sys/sys/cdefs.h
+0-121 files

DragonFlyBSD/src 8755071 — lib/libc/thread thr_sem.c

libc/thread: Use __containerof() from <sys/cdefs.h>
DeltaFile
+1-7lib/libc/thread/thr_sem.c
+1-71 files

DragonFlyBSD/src d6d8c24 — lib/libc/thread thr_umtx.c thr_sem.c

libc/thread: Use <machine/cpufunc.h> to avoid redefining cpu_ccfence()
DeltaFile
+1-2lib/libc/thread/thr_umtx.c
+1-2lib/libc/thread/thr_sem.c
+1-2lib/libc/thread/thr_join.c
+1-2lib/libc/thread/thr_cond.c
+4-84 files

DragonFlyBSD/src 76dcc02 — sys/cpu/x86_64/include cpufunc.h, sys/platform/pc64/include smp.h globaldata.h

<machine/cpufunc.h>: Remove unused includes to avoid thread dependency

* Clean up cpufunc.h to remove unused includes, struct forward
  declerations, and outdated comment. The main intention is to remove
  the thread dependency so this header can be used in lib/libc/thread.
* Update smp.h to include <sys/cpumask.h> for cpumask_t, which was
  included via <sys/thread.h>.
* Include <sys/cpumask.h> in globaldata.h to be more self-contained.
DeltaFile
+4-16sys/cpu/x86_64/include/cpufunc.h
+3-0sys/platform/pc64/include/globaldata.h
+1-1sys/platform/pc64/include/smp.h
+8-173 files

DragonFlyBSD/src e00a1f8 — sys/kern kern_time.c

kernel: FAST uptime clocks from the kpmap in clock_gettime(2)

The system call answered CLOCK_MONOTONIC_FAST and CLOCK_UPTIME_FAST
with getnanouptime(), which counts from gd_hardclock.time, the next
tick, and so runs up to a tick ahead.  After ten calls libc reads
ts_uptime from the kpmap instead, the time of the last tick, so both
clocks stepped back by up to a tick in every process.  Zig's
std.time.Instant panics when that happens.

Read the kpmap in the system call as well, with the upticks protocol
from sys/upmap.h.  CLOCK_REALTIME_FAST is not affected.

Reviewed-by: @dillon
Bug: https://bugs.dragonflybsd.org/issues/3493
DeltaFile
+28-1sys/kern/kern_time.c
+28-11 files

DragonFlyBSD/src 674c017 — sys/dev/drm/include/linux gfp.h

drm: zero pages in alloc_page() and alloc_pages() for __GFP_ZERO

alloc_page() and alloc_pages() ignore __GFP_ZERO.  alloc_page() calls
vm_page_alloczwq() without VM_ALLOC_ZERO, which hands out the page with
whatever it last held, and vm_page_alloc_contig() does not zero either.

TTM asks for zeroed pages for every buffer a client creates
(TTM_PAGE_FLAG_ZERO_ALLOC) and only clears the pages it reuses from its
own pools.  Cached buffers get their pages from alloc_page(), and new
pages for the write-combined and uncached pools come from
alloc_pages(), so a client can map a new buffer and read what the page
held before: freed memory of other processes or the kernel.  i915 asks
for zeroed scratch and status pages, and TTM for a zeroed dummy read
page, the same way.

Pass VM_ALLOC_ZERO for __GFP_ZERO in alloc_page(), and zero the pages
in alloc_pages().

Reviewed-by: @dillon
DeltaFile
+9-2sys/dev/drm/include/linux/gfp.h
+9-21 files

DragonFlyBSD/src 21db329 — sys/net if.c

net: Announce IFAN_DEPARTURE message after route/address deletions

The if_detach() function previously announced IFAN_DEPARTURE before
deleting the routes/addresses, so a userland program could receive a
RTM_DELADDR message after the interface had gone and thus cause
confusion.  For example, bringing down a wg(4) interface would cause
dhcpcd(8) to emit the following warnings:

```
dhcpcd_handlelink: No such process
dhcpcd_handlelink: No such process
```

Fix this bug by moving the IFAN_DEPARTURE annoucement after the
route/address deletions.

This is a regression introduced in commit b4051e2552 (ifnet: Make ifnet
and ifindex2ifnet MPSAFE).
DeltaFile
+6-2sys/net/if.c
+6-21 files

DragonFlyBSD/src e1ff3e6 — etc/defaults rc.conf, share/man/man5 rc.conf.5

etc: Switch the default dhcp_client to dhcpcd

The dhcpcd(8) has been in base for many years and it supports both IPv4
and IPv6, replacing both dhclient(8) and rtsold(8). Now switch the
default dhcp_client in defaults/rc.conf to dhcpcd.

However, the recommended way of using dhcpcd(8) is to simply run it as a
master daemon by setting "dhcpcd_enable=YES" in rc.conf, without the
need to configure individual interfaces with "ifconfig_<ifname>=DHCP".

The man pages are updated to document the new default and the
recommendation.
DeltaFile
+19-2share/man/man8/dhcp.8
+16-4share/man/man5/rc.conf.5
+1-1etc/defaults/rc.conf
+36-73 files

DragonFlyBSD/src 7ed2a31 — sbin/dhcpcd Makefile

dhcpcd(8): Clean up Makefile a bit

Use FILESGROUPS to install default hooks and example hooks.
DeltaFile
+7-7sbin/dhcpcd/Makefile
+7-71 files

DragonFlyBSD/src be227a3 — sbin/dhcpcd Makefile config.h

dhcpcd(8): Update config.h and Makefile
DeltaFile
+13-7sbin/dhcpcd/config.h
+14-4sbin/dhcpcd/Makefile
+27-112 files

DragonFlyBSD/src ee16f06 — contrib/dhcpcd README.DRAGONFLY, contrib/dhcpcd/src common.h

contrib/dhcpcd: Patch common.h to fix timespec* redefinition errors

common.h defines timespec* macros when they're not defined yet. However,
another header (e.g., dhcpcd.h) that's included after common.h may
include <net/if.h> to pull in <sys/time.h>, which always defines
timespec* macros, and thus cause redefinition errors.

Fix it by including <sys/time.h> in common.h.
DeltaFile
+1-1contrib/dhcpcd/README.DRAGONFLY
+1-0contrib/dhcpcd/src/common.h
+2-12 files

DragonFlyBSD/src 15ba621 — contrib/dhcpcd README.DRAGONFLY

contrib/dhcpcd: Update README.DRAGONFLY
DeltaFile
+5-5contrib/dhcpcd/README.DRAGONFLY
+5-51 files

DragonFlyBSD/src a2039ba — contrib/dhcpcd/compat rb.c rbtree.c, contrib/dhcpcd/src eloop.c if-options.c

Merge branch 'vendor/DHCPCD'

Upgrade from 10.0.7 to 10.5.3

In addition, revert the unnecessary local modifications to:
- compat/strtoi.c
- compat/strtou.c
As a result, there is no local modifications now.
DeltaFile
+944-876contrib/dhcpcd/src/dhcp.c
+901-791contrib/dhcpcd/src/dhcp6.c
+1,357-0contrib/dhcpcd/compat/rbtree.c
+0-1,350contrib/dhcpcd/compat/rb.c
+834-477contrib/dhcpcd/src/if-options.c
+561-601contrib/dhcpcd/src/eloop.c
+4,597-4,09585 files not shown
+11,974-9,60791 files

DragonFlyBSD/src ee75778 — contrib/dhcpcd/src if.c

vendor/DHCPCD: Treat IFT_WIREGUARD as IFT_TUNNEL

Backported from upstream: https://github.com/NetworkConfiguration/dhcpcd/commit/8f5706ef4fb393500c4875efe09e2d30ab48796c
DeltaFile
+3-0contrib/dhcpcd/src/if.c
+3-01 files

DragonFlyBSD/src e2efea5 — contrib/dhcpcd/compat rb.c rbtree.c, contrib/dhcpcd/src eloop.c if-options.c

vendor/DHCPCD: Upgrade from 10.0.7 to 10.5.3
DeltaFile
+944-876contrib/dhcpcd/src/dhcp.c
+901-791contrib/dhcpcd/src/dhcp6.c
+1,357-0contrib/dhcpcd/compat/rbtree.c
+0-1,350contrib/dhcpcd/compat/rb.c
+834-477contrib/dhcpcd/src/if-options.c
+561-601contrib/dhcpcd/src/eloop.c
+4,597-4,09585 files not shown
+11,963-9,60791 files

DragonFlyBSD/src 6efc785 — sys/dev/virtual/nvmm nvmm.c

nvmm: unmap comm page from user side when vcpu_create() fails

Avoid leaking a created user-side comm mapping.
DeltaFile
+2-0sys/dev/virtual/nvmm/nvmm.c
+2-01 files

DragonFlyBSD/src 71ed233 — sys/dev/virtual/nvmm nvmm_dragonfly.c

nvmm: fix os_vmobj_map_user() to use a hint to map into process space

This fixes a real bug that the function previously could map an object
at the address 0; for example, a mapped comm page could have a zero
address, breaking the '!= NULL' condition.

Fix the bug by using a hint from vm_map_hint() when mapping into the
current process space.  This is the similar behavior used in kern_mmap()
for a mmap(2).

By the way, this extra hint code exists in the NetBSD's implementation,
so it was my mistake when porting this function to DragonFly.
DeltaFile
+5-0sys/dev/virtual/nvmm/nvmm_dragonfly.c
+5-01 files

DragonFlyBSD/src 175de3b — sys/sys mount.h param.h, sys/vfs/msdosfs msdosfs_vfsops.c

vm: refuse mmap() of files on msdosfs and ntfs with small clusters

msdosfs and ntfs with clusters smaller than a page read a file through
separate cluster buffers, so one page covers several clusters that
cannot back a coherent mapping of the file.

Add the internal mount flag MNTK_NOMMAP, set it at mount time when the
cluster size is below PAGE_SIZE (it cannot change on a remount), and
fail mmap() of a regular file on a flagged mount with EOPNOTSUPP.

The check sits in vm_mmap(), which both mmap(2) (via kern_mmap()) and
fp_mmap() call.  Image activation is not covered: imgact_elf inserts
the vnode object directly, so a binary stored on a flagged mount is
still mapped while it runs.

Side effects on such mounts: tail(1) and md5(1) with offsets use mmap()
and thus fail with "Operation not supported". cat(1), cp(1), cmp(1) and
md5(1) of whole files work. A shared library stored there cannot be
loaded by rtld(1).

    [3 lines not shown]
DeltaFile
+8-0sys/vm/vm_mmap.c
+6-0sys/vfs/ntfs/ntfs_vfsops.c
+6-0sys/vfs/msdosfs/msdosfs_vfsops.c
+2-1sys/sys/param.h
+1-0sys/sys/mount.h
+23-15 files