summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-07tests/lint: merge duplicate tests for C11 _Atomicrillig
2023-07-06+CAC - cryptographic access controljschauma
2023-07-06t_sig_backtrace: Flush stdout before writing to STDOUT_FILENO.riastradh
Avoids confusing ordering of output.
2023-07-06lint: add type safety for accessing properties of basic typesrillig
No functional change.
2023-07-06tests/lint: ensure consistent preprocessor filenames in testsrillig
The deviations often happen when copying or renaming tests.
2023-07-06Add Alder Lake-N.msaitoh
2023-07-06bsdmalloc(3): fix malloc() signatureuwe
2023-07-05tests/libexec/ld.elf_so: Fix helper library makefiles.riastradh
1. Consolidate logic into a single helper.mk to reduce duplication. 2. Set NO* variables, not MK* variables which are reserved for user. 3. Avoid eager X!= in favour of lazy ${X:sh}. 4. Mark _g.a set list entries obsolete. Never should've been built! PR misc/57462
2023-07-05libbsdmalloc: Use a multiply-overflow that clang supports too.riastradh
XXX pullup-10
2023-07-05BUILDING: wording tweakslukem
2023-07-05mk.conf(5): document rump variableslukem
Update mk.conf(5) with the rump variables from - lib/librumpuser/README.compileopts - sys/rump/README.compileopts Add cross-references back to mk.conf(5) in those files. Ensure that the Default: is listed last in a description, for consistency with the convention in this file.
2023-07-05Update build instruction for Solaris 11.4 hostspalle
2023-07-05t_posix_memalign: Simplify.riastradh
No functional change intended.
2023-07-05libbsdmalloc: Make aligned_alloc(A, S) actually align when A > S.riastradh
XXX pullup-10
2023-07-05Fix sysctl invocation testing for missing entropy.martin
2023-07-05t_posix_memalign: Fix this to reflect restriction lifted in C17.riastradh
2023-07-05tests/lint: spell platform identifiers for 'long double' consistentlyrillig
The test file names don't have a hyphen, so the identifiers shouldn't have one either.
2023-07-05tests/lint: add platform-specific tests for troublesome pointer castsrillig
2023-07-05Revert "fsck_ffs(8): Ensure A divides S before aligned_alloc(A, S)."riastradh
C17 lifted this restriction.
2023-07-05Revert "newfs(8): Ensure A divides S before aligned_alloc(A, S)."riastradh
C17 lifted this restriction.
2023-07-05Revert "nvmectl(8): Ensure A divides S before aligned_alloc(A, S)."riastradh
C17 lifted this restriction.
2023-07-05libbsdmalloc: Lift C11 divisibility restriction on aligned_alloc.riastradh
Restriction was lifted in C17. XXX pullup-10
2023-07-05Revert "jemalloc: Enforce alignment-must-divide-size rule of aligned_alloc."riastradh
Apparently this restriction was lifted in C17, and this was even documented in a part of the man page I didn't notice because I got stuck at the incomplete sentence `The aligned_alloc function conforms to.'. Sorry for the noise, folks.
2023-07-05Updates for ctwm-4.1.0nia
2023-07-05bsdmalloc.3: fix typos in function parametersrillig
2023-07-05CPU model 0x5a is not Atom E3500 but Atom Z3500.msaitoh
2023-07-05libbsdmalloc: Fix build with DEBUG.riastradh
Nix __P while here. XXX pullup-10
2023-07-05Install a copy of dhcpcd.conf under /usr/share/examplesgutteridge
Addresses PR bin/57487 from Taylor R Campbell.
2023-07-04mdoc.local: fix libbsdmalloc string nameuwe
2023-07-04fsck_ffs(8): Fix whitespace issues.riastradh
- Nix trailing whitespace. - Omit excessive blank lines. - Insert missing blank lines between $NetBSD$ and copyright. No functional change intended.
2023-07-04nvmectl(8): Ensure A divides S before aligned_alloc(A, S).riastradh
Required by C11 Sec. 7.22.3.1 The aligned_alloc function, para. 2, p. 348: The value of alignment shall be a valid alignment supported by the implementation and the value of size shall be an integral multiple of alignment. XXX pullup-10
2023-07-04newfs(8): Ensure A divides S before aligned_alloc(A, S).riastradh
Required by C11 Sec. 7.22.3.1 The aligned_alloc function, para. 2, p. 348: The value of alignment shall be a valid alignment supported by the implementation and the value of size shall be an integral multiple of alignment. XXX pullup-10
2023-07-04fsck_ffs(8): Ensure A divides S before aligned_alloc(A, S).riastradh
Required by C11 Sec. 7.22.3.1 The aligned_alloc function, para. 2, p. 348: The value of alignment shall be a valid alignment supported by the implementation and the value of size shall be an integral multiple of alignment. XXX pullup-10
2023-07-04libc: Fix missing membar_consumer in dl_iterate_phdr.riastradh
Pairs with the existing membar_producer. XXX pullup-8 XXX pullup-9 XXX pullup-10
2023-07-04libbsdmalloc: Nix K&R definitions. Bump WARNS to 3.riastradh
2023-07-04libbsdmalloc: New man page.riastradh
XXX pullup-10
2023-07-04libbsdmalloc: Bump shlib minor.riastradh
New symbols, new minor. XXX pullup-10
2023-07-04libbsdmalloc: Nix trailing whitespace.riastradh
No functional change intended. XXX pullup-10
2023-07-04libbsdmalloc: Provide all allocator front ends and fork hooks.riastradh
Front ends: - aligned_alloc - calloc - posix_memalign Fork hooks: - _malloc_prefork - _malloc_postfork - _malloc_postfork_child Otherwise these will pull in the jemalloc definitions from libc, which (a) defeats the purpose, and (b) won't work correctly with fork and threads. Thanks to kre@ and the thread on tech-userlevel for pointing me in the right direction to making this actually work to override jemalloc: https://mail-index.netbsd.org/tech-userlevel/2023/06/30/msg013957.html Note: libbsdmalloc doesn't set errno=ENOMEM on malloc failure, but these front ends do (even aligned_alloc, which is from C11, which doesn't define ENOMEM at all, but this pacifies our aligned_alloc tests in t_posix_memalign.c). Might want to fix that. XXX pullup-10
2023-07-04t_posix_memalign: Expand test cases and properties.riastradh
- Test cartesian product of a sampling of sizes and a sampling of alignments. - Verify all the edge cases I could find in posix_memalign and aligned_alloc, including failure modes. - Test an unreasonably large (but aligned) allocation size. - Use ATF_CHECK_* instead of ATF_REQUIRE_* so all failures will be reported, not just the first one. - While here, build with -fno-builtin-aligned_alloc and with -fno-builtin-posix_memalign to make sure the compiler doesn't try any shenanigans. XXX pullup-10
2023-07-04jemalloc: Enforce alignment-must-divide-size rule of aligned_alloc.riastradh
C11, Sec. 7.22.3.1 The aligned_alloc function, paragraph 2, p. 348: The value of alignment shall be a valid alignment supported by the implementation and the value of size shall be an integral multiple of alignment. posix_memalign does not appear to have any corresponding constraint. XXX pullup-10
2023-07-04riscv: Fix (U)INT64_C suffix to match gcc's built-in idea of types.riastradh
XXX pullup-10
2023-07-04tpm(4): Switch tsleep to kpause.riastradh
Nothing is interrupt-driven here, so no need for condvars to allow more prompt wakeups.
2023-07-03lint: consistently use portable type size in integer constraintsrillig
Since tree.c 1.546 from 2023-07-03, lint no longer warned about possible loss of accuracy when converting from 'long' to 'int' on an ILP32 platform that uses 'unsigned long' for size_t, when run in portable mode (-p), which is enabled by default in the NetBSD build. The integer constraints avoid false-positive warnings by looking at the actual values an expression can take. The function can_represent is guarded by a condition that uses the portable_size_in_bits, but then internally used the opposite size_in_bits, which led to inconsistent results. The warning looks confusing though, as on an ILP32 platform, 'int' and 'long' have the same size and representation, therefore there cannot be an actual loss of accuracy. The warning may need to be reworded to explicitly mention the portability mode, in which sizeof(int) is assumed to be 3 instead of 4, to catch possible loss of accuracy on other platforms.
2023-07-03PR/57500: Palle Lyckegaard: include missing tools/compat/regex.h forchristos
__{BEGIN,END}_DECLS.
2023-07-03Enable MEMORY_DISK_DYNAMIC & co. to match std.generic64jakllsch
Allows loading of ramdisk.fs via u-boot initrd (to run sysinst)
2023-07-03tests/lint: move platform-specific query tests to separate filesrillig
This fixes the tests on 'unsigned char' platforms. Thanks martin@ for the notification.
2023-07-03lint: sync usage messages with realityrillig
2023-07-03lint: invert the -u, -v and -z flagsrillig
Now they behave the same as in the manual page. No functional change.
2023-07-03lint: remove redundant comments for command line flagsrillig