x11/xephem: Drop 2nd copy of fixing perl path
We had both REPLACE_PERL and a hand-written SUBST to do that, surely
from long ago. Just use REPLACE_PERL; that's what it's for.
x11/xephem: Grab 3 more files of upstream pull request 126
Files outside of the old WRKSRC were not picked up by mkpatches.
Restore patch comments lost in BUILD_DIRS pivot.
x11/xephem: Pivot from WRKSRC to BUILD_DIRS
WRKSRC implies that the build does not look outside of it, but that's
not true. Instead, make WRKSRC top level, and instead invoke make in
(singleton) BUILD_DIRS.
This is a huge commit textually, but it's just a pivot in how the
subdir is used, adding BUILD_DIRS to paths, and renaming all the
patches.
NFCI; this should produce the same binary. Works on netbsd-10 amd64
in "look at sky view, didn't crash, not blank" testing.
x11/xephem: Prune documentation of pkgsrc-specific license grant
Long ago, xephem was not free software and Elwood wrote to me granting
permission to distribute pkgsrc-modified binaries. Since then, it
became "mit", and is clearly documented as such in the sources, so
this is ancient history.
x11/xephem: Add \todo about wrong WRKSRC
While WRKSRC points to the dir in which make should be invoked, the
build references files outside of that dir. So it's wrong, and
BUILD_DIRS should be used instead.
t_mbstowcs: Mark UTF-8 test cases xfail.
mbrtowc fails to reject invalid (legacy 5/6-byte) UTF-8.
Need to split this test up into:
1. correctly decoding the valid inputs
2. correctly rejecting the invalid inputs
Also don't stop at the first failing test in t_mbrtowc; keep going to
test everything, for better diagnostics at the end in the test
report.
As with t_mbrtowc, this should be split into multiple parts, TBD.
PR lib/60369: mbrtowc, mbrlen have wrong return value for some
invalid byte sequences: Invalid sequence
mm(4): Only grant kva exposure if user opens /dev/kmem.
Don't apply the same to /dev/null, /dev/zero, or anything else.
PR kern/60374: opening /dev/null exposes kva
compat32: Fix accidental use of error branch in recvmsg(2).
Avoids use-after-free / double-free.
PR kern/60373: compat32: kernel use-after-free in recvmsg
Pull up following revision(s) (requested by nia in ticket #2004):
lib/libnvmm/libnvmm.c: revision 1.21 (patch)
libnvmm(3): Check return value of malloc.
adapted from a patch by Aaron LI at DragonflyBSD, commit id
7c543ef0a3b08473f10dcc066e531c459fbc3879
Pull up following revision(s) (requested by kbowling in ticket #2022):
sys/uvm/uvm_km.c: revision 1.167
uvm_km_pgremove_intrsafe: drain TLB shootdown before freeing pages
Call pmap_update(pmap_kernel()) between pmap_kremove and the page
free so the shootdown completes first.
Reviewed by skrll@
Pull up following revision(s) (requested by kbowling in ticket #1292):
sys/uvm/uvm_km.c: revision 1.167
uvm_km_pgremove_intrsafe: drain TLB shootdown before freeing pages
Call pmap_update(pmap_kernel()) between pmap_kremove and the page
free so the shootdown completes first.
Reviewed by skrll@
Pull up following revision(s) (requested by kbowling in ticket #345):
sys/uvm/uvm_km.c: revision 1.167
uvm_km_pgremove_intrsafe: drain TLB shootdown before freeing pages
Call pmap_update(pmap_kernel()) between pmap_kremove and the page
free so the shootdown completes first.
Reviewed by skrll@
lua(4): Fix and test some issues.
- Require read permission for LUAINFO.
- Require write permission for all others:
. LUACREATE
. LUADESTROY
. LUALOAD
. LUAREQUIRE
- Don't panic in LUAINFO if there's zero states.
- Add missing sys/stdbool.h in sys/lua.h.
This is not a real test suite for lua.kmod -- it doesn't verify the
module does anything useful; it just verifies that _if_ you go out of
your way to load the experimental kernel module, it doesn't enable
unprivileged users to wreak havoc with /dev/lua.
PR misc/60375: lua.kmod enables local privilege escalation