Commit Graph

305832 Commits

Author SHA1 Message Date
martin 124fe5e84c Mipsn64* has no 64bit compat, its userland is native n64 - instead it
has n32 compat.
2024-04-15 12:24:53 +00:00
simonb 586f421948 Add a newline to a printf message. 2024-04-15 08:06:36 +00:00
skrll 127563b6bc Fix alignment of ddb 'ps/[lw]' output. LID matches PID and has more digits. 2024-04-15 06:48:06 +00:00
andvar cec4798ac1 s/force_comile_error/force_compile_error/ 2024-04-14 18:02:55 +00:00
rillig 9c7f0367c1 make: make string matching platform-independent
Previously, whether the character range '[a-ä]' matched, depended on the
signedness of the plain 'char' type.  Since make operates on byte
strings and does not support UTF-8 or other multi-byte character
encodings, this edge case is not expected to occur in practice.

No change in the unit tests as this edge case is not covered by tests.
2024-04-14 15:21:20 +00:00
skrll 58b60df6e8 kern/58149: aarch64: Cannot return from a signal handler if SP was misaligned when the signal arrived
Apply the kernel diff from the PR

1. sendsig_siginfo() previously assumed that user SP was always aligned to
   16 bytes and could call signal handlers with SP misaligned. This is a
   wrong assumption because aarch64 demands that SP is aligned *only while*
   it's being used to access memory. Now it properly aligns it before
   pusing anything on the stack.

2. cpu_mcontext_validate() used to check if _REG_SP was aligned and
   considered the ucontext invalid otherwise. This meant if a signal was
   sent to a process whose SP was misaligned, the signal handler would fail
   to return because the ucontext passed from the kernel was an invalid
   one. Now setcontext(2) doesn't complain about misaligned SP.
2024-04-14 12:51:16 +00:00
rillig 141cc6832d make: add debug logging for .if and .for lines in -dp mode
This helps track down in which line a condition is evaluated.
2024-04-14 12:30:47 +00:00
kre d2a7bfe14b Revert previous until Christos has a chance to work out why it breaks
the builds.
2024-04-14 08:29:54 +00:00
skrll 08e3108a2e Trailing whitespace. 2024-04-14 07:56:13 +00:00
maya 1de18f2164 amd64 live image: support EFI as well as BIOS boot
The biggest caveat is that there's a small number of machines that try to
EFI boot but fail, so would prefer a BIOS only image. I'm not adding a
separate BIOS only image because the live image is pretty niche.
(For regular installation images, we do create a separate BIOS-only version)
2024-04-13 18:38:17 +00:00
christos f68fe2325c Don't build/install the compat plugin. 2024-04-13 17:22:33 +00:00
rillig 4ce516c154 tests/fmtcheck: show that fmtcheck does not support "%2$s" 2024-04-13 14:02:51 +00:00
skrll 479be87edc port-arm/58135: reproducible pmap KASSERT failure for armv7 with NFS root
Don't unconditionally set XN in pmap_clearbit - only set it if a mapping
exists VM_PROT_EXEC is being cleared.

I've simplified the #ifdefs in the patch from the PR.
2024-04-13 12:28:01 +00:00
skrll e28131a8c8 Restore a space I accidentally removed from a copyright with
$NetBSD: pmap.c,v 1.396 2020/03/13 16:14:18 skrll Exp $
2024-04-13 10:36:01 +00:00
andvar 75ed7a9075 viac7temp(4): define module metadata using MODULE() macro and implement
viac7temp_modcmd() to handle module load/unload events.

Fixes PR kern/58148. Look OK by mrg@.

XXX pullup-10, -9, -8
2024-04-13 09:12:09 +00:00
nakayama 1927f9fe53 "./usr/libdata/debug/usr/lib/@ARCH_SUBDIR@/security" directory is
created by mtree regardless of MKDEBUG option, so move the entry from
debug32 to base32.
2024-04-13 08:50:18 +00:00
christos 28614955c7 PR/58136: Paul Ripke: Fix use after free. 2024-04-13 02:01:38 +00:00
kre 30112b560c Edgar Fuß pointed out that sh(1) did not mention comments (at all).
This has been true forever, and no-one else (including me) ever seems
to have noticed this ommission.

Correct that.

While in the area, improve the general sections on the Lexical structure
of the shell's input, and including some refinements to how quoting is
described.
2024-04-12 19:09:50 +00:00
jakllsch 308afeb1b5 remove now-unused assignment 2024-04-12 19:06:45 +00:00
jakllsch 151a4210f9 include opt_ntp.h for PPS_SYNC 2024-04-12 16:54:37 +00:00
jakllsch 3963e60893 Filter out -Wp,-iremap,* from CPPFLAGS as is done in hostprog.mk
Seems to fix build of libnbcompat in reproducible mode on host toolchains w/o -iremap
2024-04-12 16:28:43 +00:00
hannken 6053b8da68 Files libgcc_eh_g.a and libgcc_s_g.a are debuglib, not debug. 2024-04-12 14:22:51 +00:00
wiz a13182364e mark *32 libc++ with libcxx 2024-04-12 11:40:09 +00:00
gson 7809b23883 Require at least 64 MB RAM to run the getrusage_maxrss test case as it
allocates 40 MB and we should leave some for the system, too.
2024-04-12 07:16:50 +00:00
rillig f5fb6d1056 lint: clean up and speed up the check for snprintb 2024-04-12 05:44:38 +00:00
rillig dae6022bba lint: in snprintb, warn about all escaped characters in descriptions 2024-04-12 05:17:48 +00:00
pgoyette c1fde47216 Repair handling of ccd sysctls to not use newp as an index.
This is a work-around for kern/58051.  It is not a complete fix.
2024-04-12 05:04:02 +00:00
christos d63dcf4bc7 fix previous. Doing assignmnents of conditionals does not work for being
used as conditionals (thanks rillig@)
2024-04-11 19:12:11 +00:00
christos 3bab0f2422 avoid lint warning on the vax 2024-04-11 18:41:03 +00:00
wiz 0a8d830c32 add libc++ files to *32 sets 2024-04-11 15:29:16 +00:00
riastradh 7602e31d2a sys_futex.c: Fix illustration of futex(2).
In this illustration, we need to _set_ bit 1 to claim ownership, not
_clear_ bit 1 to claim ownership.

No functional change intended -- comment only.
2024-04-11 13:51:36 +00:00
jandberg 692d6a7b84 Mention the 16-color screenmode. 2024-04-11 13:06:29 +00:00
andvar b08e4eba21 mcx(4): enforce full-duplex mark in mcx_media_status(), when link is up.
LACP protocol requires full-duplex to be enabled for lagg(4) to work,
however mcx(4) was not setting this capability making it to fail.

Fixes PR kern/58124.  OK'd by msaitoh@
2024-04-11 10:42:42 +00:00
nia a749751a21 sync categories with main debug set - somehow missed in test build... 2024-04-11 08:19:30 +00:00
knakahara 5a9ce3a7bf Fix invalid IPv6 route when ipsecif(4) is deleted tunnel. Pointed out by ohishi@IIJ.
The pointed bug is fixed by modification in nd6_need_cache().
Others are similar bugs.

XXX pullup-9, 10
2024-04-11 07:34:37 +00:00
andvar 65b579494c fix typo in method name: part_attr_fornat_str -> part_attr_format_str. 2024-04-11 06:42:18 +00:00
nia 316aa9d969 UPDATING: note new sets 2024-04-11 06:20:29 +00:00
riastradh b73702cbe4 Nix /var/run/named entry from set lists.
Normally we don't do this, but /var/run/named is

(a) used by running daemons, so postinstall should not delete it, and
(b) deleted at boot-time anyway by /etc/rc.d/mountcritlocal, so
there's no sense in having it checked by mtree.

However, this means that update builds need manual intervention to
delete $DESTDIR/var/run/named or else checkflist will fail, so add a
note to UPDATING about this.

Do the same with /var/run/lwresd just in case.

PR misc/57877
2024-04-11 02:15:39 +00:00
riastradh 50118341b7 doc/3RDPARTY: Tidy up am-utils entry.
Add vendor branch and release branch pattern.
2024-04-11 02:08:17 +00:00
jschauma 00a3fda738 +FYSA for your situational awareness
+NIPR	non-classified IP router (network)
+RIPR	releasable IP router (network)
+SIPR	secret IP router (network)

(all US military speak)
2024-04-10 20:50:18 +00:00
andvar 14cbf669be s/Unfornately/Unfortunately/ in comment. 2024-04-10 20:00:12 +00:00
rillig c991d4dc63 ed: fix inconsistency in comment 2024-04-10 17:52:41 +00:00
nia e7890c79c1 Add missing directory from the new set of PAM files that get installed 2024-04-10 16:14:26 +00:00
nia 4036855604 Changes since the end of March 2024-04-10 14:24:31 +00:00
christos 72e5ca92c9 Now that the bug in bsd.lib.mk, MAKELINKLIB is not needed anymore (as it
should not be). Pointed out by kre@
2024-04-09 22:38:17 +00:00
christos f0be4a1c8e Merge two identical if's and fix a logic error in them ( && instead of ||) 2024-04-09 22:37:23 +00:00
kre a217a3cac7 Revert previous, we have no /etc/skel/.editrc (currently anyway).
This change looks to have been accidentally included in the big
sets reduction/division.

This should fix the builds.
2024-04-09 21:02:17 +00:00
wiz 2029ba4789 doc: openssl 3.3.0 out 2024-04-09 17:06:12 +00:00
nia 545236f400 Add new sets: base32, debug32, manhtml
- base32 contains (when MKCOMPAT=yes) shared libraries for 32-bit
  compatibility, previously included in base

- debug32 contains (when MKCOMPAT=yes) debug symbols and static libraries
  containing debug symbols for 32-bit compatiblity, previously included
  in debug

- manhtml contains (when MKHTML=yes) the HTML files previously included
  in 'man', which are of limited utility without third-party software.

The motivation for this change is to be able to easily exclude sets
from CD-ROM images that go over the size limit without xz compression
(which many NetBSD platforms struggle to extract at acceptable speeds).
2024-04-09 15:17:21 +00:00
yamaguchi f37b6fa5da lagg(4): allocate memory for struct lagg_req by calloc(3)
to fix build error on clang
2024-04-09 08:53:08 +00:00