CVS commit: src/sys/kern

2021-06-02 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Jun  2 08:46:17 UTC 2021

Modified Files:
src/sys/kern: kern_ksyms.c

Log Message:
Revert "ksyms(4): Don't skip symbol tables that are soon to be freed."

Apparently the equality kassert this restored doesn't work; to be
analyzed.


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/sys/kern/kern_ksyms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-06-02 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Jun  2 09:23:32 UTC 2021

Modified Files:
src/sys/kern: subr_psref.c

Log Message:
psref(9): Make use-after-free panic message more obvious.

Previously it would almost always manifest as

mismatched psref target class: 0x0 (ref) != 0x... (expected)

and now it will manifest as

psref target already destroyed: 0x...


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/kern/subr_psref.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/mk

2021-06-02 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jun  2 10:28:21 UTC 2021

Modified Files:
src/share/mk: bsd.dtb.mk

Log Message:
Add support for installing a copy of dtb files to the base dtb directory
when DTBSUBDIR is defined.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/mk/bsd.dtb.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2021-06-02 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Wed Jun  2 10:31:18 UTC 2021

Modified Files:
src/distrib/sets/lists/dtb: ad.aarch64 ad.aarch64eb ad.earmv6
ad.earmv6eb ad.earmv6hf ad.earmv6hfeb ad.earmv7 ad.earmv7hf
ad.earmv7hfeb
src/sys/dtb/arm64/rockchip: Makefile

Log Message:
Install a copy of rk3399-pinebook-pro.dtb to the base dtb directory for
compatibility with the factory firmware. Normally this is frowned upon,
but this is the only easy way to boot NetBSD on this board without
having to crack open the case and/or hook up a serial console.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/distrib/sets/lists/dtb/ad.aarch64
cvs rdiff -u -r1.5 -r1.6 src/distrib/sets/lists/dtb/ad.aarch64eb \
src/distrib/sets/lists/dtb/ad.earmv7 \
src/distrib/sets/lists/dtb/ad.earmv7hf \
src/distrib/sets/lists/dtb/ad.earmv7hfeb
cvs rdiff -u -r1.4 -r1.5 src/distrib/sets/lists/dtb/ad.earmv6 \
src/distrib/sets/lists/dtb/ad.earmv6eb \
src/distrib/sets/lists/dtb/ad.earmv6hf \
src/distrib/sets/lists/dtb/ad.earmv6hfeb
cvs rdiff -u -r1.1 -r1.2 src/sys/dtb/arm64/rockchip/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2021-06-02 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Wed Jun  2 11:32:24 UTC 2021

Modified Files:
src/sys/dev/pci: if_iwmreg.h

Log Message:
Can't left shift a signed int by 31. Found by kubsan.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/pci/if_iwmreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cjep_sun2x] src/share/mk

2021-06-02 Thread Chris Pinnock
Module Name:src
Committed By:   cjep
Date:   Wed Jun  2 14:22:55 UTC 2021

Modified Files:
src/share/mk [cjep_sun2x]: bsd.x11.mk

Log Message:
Work towards X sources building statically and on sun2.

Setup specific make variables to contain the full set of library
flags (LDADD and DPADD) for programs in the xorg suite. Each list
contains all needed dependencies so that the programs will build
statically.

Suggested by mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.138.4.1 src/share/mk/bsd.x11.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cjep_sun2x] src/external/mit/ctwm/bin/ctwm

2021-06-02 Thread Chris Pinnock
Module Name:src
Committed By:   cjep
Date:   Wed Jun  2 14:27:56 UTC 2021

Modified Files:
src/external/mit/ctwm/bin/ctwm [cjep_sun2x]: Makefile

Log Message:
Use new X11 LDADD/DPADD flags. Now builds on sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.11.4.1 src/external/mit/ctwm/bin/ctwm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cjep_sun2x] src/external/mit/xorg/bin

2021-06-02 Thread Chris Pinnock
Module Name:src
Committed By:   cjep
Date:   Wed Jun  2 14:46:25 UTC 2021

Modified Files:
src/external/mit/xorg/bin/bitmap [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/editres [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-cache [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-cat [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-conflist [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-list [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-match [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-pattern [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-query [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-scan [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fc-validate [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/fstobdf [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/ico [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/listres [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/oclock [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/proxymngr [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/setxkbmap [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/smproxy [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/transset [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/twm [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xcmsdb [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xconsole [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xcutsel [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xedit/xedit [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xev [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xf86dga [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xfindproxy [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xfontsel [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xgc [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xhost [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xinit [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xkbcomp [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xkbevd [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xkbprint [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xkill [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xload [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xlsatoms [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xlsclients [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xlsfonts [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xmag [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xman [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xmessage [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xmh [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xmodmap [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xmore [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xprop [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xrandr [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xrdb [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xrefresh [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xsetmode [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xsetpointer [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xsetwallpaper [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xsm [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xstdcmap [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xvinfo [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xwd [cjep_sun2x]: Makefile
src/external/mit/xorg/bin/xwud [cjep_sun2x]: Makefile

Log Message:
Use x11 variables for LDADD and DPADD. Now builds on sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.36.1 src/external/mit/xorg/bin/bitmap/Makefile
cvs rdiff -u -r1.3 -r1.3.36.1 src/external/mit/xorg/bin/editres/Makefile
cvs rdiff -u -r1.4 -r1.4.8.1 src/external/mit/xorg/bin/fc-cache/Makefile
cvs rdiff -u -r1.3 -r1.3.8.1 src/external/mit/xorg/bin/fc-cat/Makefile
cvs rdiff -u -r1.1 -r1.1.10.1 src/external/mit/xorg/bin/fc-conflist/Makefile
cvs rdiff -u -r1.3 -r1.3.8.1 src/external/mit/xorg/bin/fc-list/Makefile
cvs rdiff -u -r1.4 -r1.4.8.1 src/external/mit/xorg/bin/fc-match/Makefile
cvs rdiff -u -r1.3 -r1.3.8.1 src/external/mit/xorg/bin/fc-pattern/Makefile
cvs rdiff -u -r1.4 -r1.4.8.1 src/external/mit/xorg/bin/fc-query/Makefile
cvs rdiff -u -r1.3 -r1.3.8.1 src/external/mit/xorg/bin/fc-scan/Makefile
cvs rdiff -u -r1.2 -r1.2.8.1 src/external/mit/xorg/bin/fc-validate/Makefile
cvs rdiff -u -r1.3 -r1.3.24.1 src/external/mit/xorg/bin/fstobdf/Makefile
cvs rdiff -u -r1.3 -r1.3.10.1 src/external/mit/xorg/bin/ico/Makefile
cvs rdiff -u -r1.2 -r1.2.36.1 src/external/mit/xorg/bin/listres/Makefile
cvs rdiff -u -r1.3 -r1.3.36.1 src/external/mit/xorg/bin/oclock/Makefil

CVS commit: [cjep_sun2x] src/external/mit/xorg/bin/xclipboard

2021-06-02 Thread Chris Pinnock
Module Name:src
Committed By:   cjep
Date:   Wed Jun  2 14:55:47 UTC 2021

Modified Files:
src/external/mit/xorg/bin/xclipboard [cjep_sun2x]: Makefile

Log Message:
Use x11 variables for LDADD and DPADD. Now builds on sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.36.1 src/external/mit/xorg/bin/xclipboard/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/xorg-server.old/dist/hw/xfree86/os-support/bsd

2021-06-02 Thread Rin Okuyama
Module Name:xsrc
Committed By:   rin
Date:   Wed Jun  2 15:01:18 UTC 2021

Modified Files:
xsrc/external/mit/xorg-server.old/dist/hw/xfree86/os-support/bsd:
ppc_video.c

Log Message:
Declare IOPortBase for mips, as done for xorg-server.

Fix build for sgimips, which still uses xorg-server.old.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
xsrc/external/mit/xorg-server.old/dist/hw/xfree86/os-support/bsd/ppc_video.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cjep_sun2x] src/external/mit/xorg/bin/xcompmgr

2021-06-02 Thread Chris Pinnock
Module Name:src
Committed By:   cjep
Date:   Wed Jun  2 15:02:43 UTC 2021

Modified Files:
src/external/mit/xorg/bin/xcompmgr [cjep_sun2x]: Makefile

Log Message:
Use x11 variables for LDADD and DPADD. Now builds on sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.4.1 src/external/mit/xorg/bin/xcompmgr/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cjep_sun2x] src/external/mit/xorg/bin/xcalc

2021-06-02 Thread Chris Pinnock
Module Name:src
Committed By:   cjep
Date:   Wed Jun  2 15:03:56 UTC 2021

Modified Files:
src/external/mit/xorg/bin/xcalc [cjep_sun2x]: Makefile

Log Message:
Use x11 variables for LDADD and DPADD. Now builds on sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.8.1 src/external/mit/xorg/bin/xcalc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cjep_sun2x] src/external/mit/xorg/bin/xbiff

2021-06-02 Thread Chris Pinnock
Module Name:src
Committed By:   cjep
Date:   Wed Jun  2 15:04:23 UTC 2021

Modified Files:
src/external/mit/xorg/bin/xbiff [cjep_sun2x]: Makefile

Log Message:
Use x11 variables for LDADD and DPADD. Now builds on sun2.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.8.1 src/external/mit/xorg/bin/xbiff/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [cjep_sun2x] src/external/mit/xorg/bin/appres

2021-06-02 Thread Chris Pinnock
Module Name:src
Committed By:   cjep
Date:   Wed Jun  2 15:31:33 UTC 2021

Modified Files:
src/external/mit/xorg/bin/appres [cjep_sun2x]: Makefile

Log Message:
Convert to x11 mk vars.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.24.1 src/external/mit/xorg/bin/appres/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-06-02 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Wed Jun  2 15:43:33 UTC 2021

Modified Files:
src/sys/kern: kern_ksyms.c

Log Message:
Fix regression introduced in rev 1.90:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/kern_ksyms.c#rev1.90

in which the last element of ksyms_symtabs is skipped by mistake.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/kern/kern_ksyms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2021-06-02 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Wed Jun  2 15:45:29 UTC 2021

Modified Files:
src/sys/conf: Makefile.kern.inc
src/sys/external/bsd/drm2/drm: files.drmkms
src/sys/external/bsd/drm2/i915drm: files.i915drmkms
src/sys/external/bsd/drm2/nouveau: files.nouveau
src/sys/external/bsd/drm2/radeon: files.radeon

Log Message:
drm2: build with -fwrapv, since the Linux kernel does and we don't
want to spend too much time fixing their code. silences a lot of
KUBSAN warnings.

we need to use COPTS to have per-option compiler flags. help from
Riastradh.


To generate a diff of this commit:
cvs rdiff -u -r1.280 -r1.281 src/sys/conf/Makefile.kern.inc
cvs rdiff -u -r1.34 -r1.35 src/sys/external/bsd/drm2/drm/files.drmkms
cvs rdiff -u -r1.40 -r1.41 src/sys/external/bsd/drm2/i915drm/files.i915drmkms
cvs rdiff -u -r1.29 -r1.30 src/sys/external/bsd/drm2/nouveau/files.nouveau
cvs rdiff -u -r1.28 -r1.29 src/sys/external/bsd/drm2/radeon/files.radeon

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dkwedge

2021-06-02 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Wed Jun  2 15:59:08 UTC 2021

Modified Files:
src/sys/dev/dkwedge: dk.c

Log Message:
Copy mode of open wedges with the same parent and validate it.
Remove race on mode value when closing.


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sys/dev/dkwedge/dk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/amd64/installimage

2021-06-02 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Jun  2 16:07:33 UTC 2021

Modified Files:
src/distrib/amd64/installimage: Makefile

Log Message:
The install image grew again - update size


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/distrib/amd64/installimage/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/dkwedge

2021-06-02 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Wed Jun  2 17:56:41 UTC 2021

Modified Files:
src/sys/dev/dkwedge: dk.c

Log Message:
Clear sc_mode only on last close.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/sys/dev/dkwedge/dk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-06-02 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Jun  2 21:34:58 UTC 2021

Modified Files:
src/sys/kern: kern_tc.c

Log Message:
timecounter(9): Zero the next pointer after tc_detach.

This reverts it to a state where tc_init works again.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/kern/kern_tc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2021-06-02 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed Jun  2 21:35:17 UTC 2021

Modified Files:
src/sys/dev/ic: tpm.c

Log Message:
tpm(4): Preserve error if any on ending commands.

This way we don't spuriously suppress an error, such as
TPM_DEACTIVATED, in a loop where we rely on it.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/ic/tpm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2021-06-02 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jun  2 22:32:29 UTC 2021

Modified Files:
src/share/man/man4: urtwn.4

Log Message:
Add commented out ASUSTek USB-N13 B1

The urtwn driver attaches, but I didn't have a chance to try if it
actually works.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/share/man/man4/urtwn.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-06-02 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jun  3 01:00:15 UTC 2021

Modified Files:
src/sys/kern: kern_ksyms.c

Log Message:
ksyms(4): Fix race in ksymsread iteration.

TAILQ_NEXT(ksyms_last_snapshot) might change while we are iterating,
but ksyms_last_snapshot itself cannot, so invert the loop structure.

Discussed with rin@.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/kern/kern_ksyms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-06-02 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Jun  3 01:00:24 UTC 2021

Modified Files:
src/sys/kern: kern_ksyms.c

Log Message:
ksyms(4): Don't skip symbol tables that are soon to be freed, take 2.

They will not actually be freed until /dev/ksyms is closed, so
continued access to them remains kosher.

The previous change was busted because of an off-by-one error in a
previous previous change's iteration over the symtabs; that error has
since been corrected.


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/kern/kern_ksyms.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.