DragonFlyBSD/src cedece0 — sbin/ifconfig regdomain.c

ifconfig(8): avoid deprecated declaration warnings

The latest expat deprecates XML_GetCurrentLineNumber(), resulting in
fatal warnings that stop the build.  Replace callouts with the recommended
XML_GetCurrentLineNumber64() function for a clean build.
DeltaFile
+14-14sbin/ifconfig/regdomain.c
+14-141 files

DragonFlyBSD/src d4aa332 — lib/libexpat libbsdxml.3 Makefile

expat: update v2.5.0 to v2.11.0
DeltaFile
+22-23lib/libexpat/expat_config.h
+6-12lib/libexpat/Makefile
+2-2lib/libexpat/libbsdxml.3
+30-373 files

DragonFlyBSD/src c1dffa2 — contrib/expat Changes, contrib/expat/lib internal.h expat.h

Merge branch 'vendor/EXPAT'
DeltaFile
+3,685-1,651contrib/expat/lib/xmlparse.c
+1,342-7contrib/expat/Changes
+254-278contrib/expat/lib/xmltok.c
+150-148contrib/expat/lib/xmltok.h
+158-58contrib/expat/lib/expat.h
+85-90contrib/expat/lib/internal.h
+5,674-2,23226 files not shown
+6,667-2,71532 files

DragonFlyBSD/src c8e2fbd — contrib/expat Changes, contrib/expat/lib internal.h expat.h

Upgrade expat from 2.5.0 to 2.11.0 on the vendor branch
DeltaFile
+3,685-1,651contrib/expat/lib/xmlparse.c
+1,342-7contrib/expat/Changes
+254-278contrib/expat/lib/xmltok.c
+150-148contrib/expat/lib/xmltok.h
+158-58contrib/expat/lib/expat.h
+85-90contrib/expat/lib/internal.h
+5,674-2,23226 files not shown
+6,667-2,71532 files

DragonFlyBSD/src 189520f — contrib/xz README.DRAGONFLY, lib/liblzma Symbol.map Makefile

xz tools: update from v5.2.5 to v5.8.5
DeltaFile
+228-86lib/liblzma/config.h
+228-85usr.bin/xz/config.h
+141-60lib/liblzma/Makefile
+71-24usr.bin/xz/Makefile
+25-0lib/liblzma/Symbol.map
+10-7contrib/xz/README.DRAGONFLY
+703-2625 files not shown
+737-27911 files

DragonFlyBSD/src 2029dff — contrib/xz NEWS, contrib/xz/src/liblzma/common string_conversion.c stream_decoder_mt.c

Merge branch 'vendor/XZ'
DeltaFile
+2,697-0contrib/xz/NEWS
+2,030-0contrib/xz/src/liblzma/common/stream_decoder_mt.c
+1,363-0contrib/xz/src/liblzma/common/string_conversion.c
+760-307contrib/xz/src/xz/xz.1
+548-348contrib/xz/src/liblzma/lzma/lzma_decoder.c
+697-165contrib/xz/src/xz/coder.c
+8,095-820209 files not shown
+23,939-4,865215 files

DragonFlyBSD/src d3f414f — contrib/xz README.DRAGONFLY, lib/liblzma Symbol.map Makefile

xz tools: update from v5.2.5 to v5.8.5
DeltaFile
+228-86lib/liblzma/config.h
+228-85usr.bin/xz/config.h
+141-60lib/liblzma/Makefile
+71-24usr.bin/xz/Makefile
+25-0lib/liblzma/Symbol.map
+10-7contrib/xz/README.DRAGONFLY
+703-2625 files not shown
+737-27911 files

DragonFlyBSD/src e581ebd — contrib/xz NEWS, contrib/xz/src/liblzma/common string_conversion.c stream_decoder_mt.c

Upgrade xz from 5.2.5 to 5.8.5 on the vendor branch.
DeltaFile
+2,697-0contrib/xz/NEWS
+2,030-0contrib/xz/src/liblzma/common/stream_decoder_mt.c
+1,363-0contrib/xz/src/liblzma/common/string_conversion.c
+760-307contrib/xz/src/xz/xz.1
+548-348contrib/xz/src/liblzma/lzma/lzma_decoder.c
+697-165contrib/xz/src/xz/coder.c
+8,095-820209 files not shown
+23,939-4,865215 files

DragonFlyBSD/src 5da7322 — sys/dev/drm drm_auth.c

drm: fix DRM master bookkeeping after a VT switch

drm_is_current_master() only checked drm_file.is_master, which is never
cleared.  After a VT switch DROP_MASTER clears dev->master, but X's
following SET_MASTER hit that check and returned without restoring it.
From then on the device had no master while X still looked like one:

- DROP_MASTER failed with EINVAL, and X logged "drmDropMaster failed:
  Invalid argument" on every later VT switch;
- clients that opened the node became master themselves through
  drm_master_open() and registered their magic in their own master
  object, so X's AUTH_MAGIC failed (DRI2 authentication errors);
- with no master, drm_fb_helper_is_bound() no longer kept the fbdev
  helper off the display, so the console could take it on connector
  hotplug.

Compare the file's master with dev->master, as Linux does.  This also
stops a former master from dropping the mastership of a later
SET_MASTER caller.

    [3 lines not shown]
DeltaFile
+2-1sys/dev/drm/drm_auth.c
+2-11 files

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 rc.shutdown 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-1include/paths.h
+1-1etc/rc.shutdown
+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