bsd.port.mk: add check-shlib-syms
check-shlib-syms runs check_sym for port's .so against system isntalled .so
Quite useful to determin does SHARED_LIBS need to be updated.
OK: sthen@, tb@, gonzalo@
Change CH_LOCATE equality function to be named _eq
Reduce risk of using e.g. memcmp there. _eq returns 1 for match and
0 for no match. Also make all arguemnts const. This makes it a bit
unclear which argument is which. First argument is from the hash table
the second argument is the arg passed to CH_LOCATE.
OK tb@
Avoid calling bus_dmamap_destroy() from interrupt context in qwx(4).
Keep Rx TID DMA memory allocated until the interface goes down,
rather than freeing DMA memory in interrupt context.
Fixes splassert failures reported in dmesg because of qwx(4), such as:
splassert: vm_map_assert_wrlock_ln: want 0 have 4
splassert: uvm_mapent_alloc: want 0 have 4
splassert: assertwaitok: want 0 have 4
Root cause of problem in qwx(4) pointed out by kettenis@, who also
reviewed several diffs until I arrived at a correct fix.
ok kettenis@ phessler@
lang/wasi-sdk (& lang/wasi-libc): preliminary work to ease the switch to llvm22
- set/use TRIPLE here and there and add it to SUBST_VARS, it will be
wasm32-wasip1 when building with llvm22
- add LIBPATH to SUBST_VARS
- amend wasi-libc/patches/patch-Makefile to account for symbol changes
when building with llvm22
bump REVISION to be on the safe side, although it isnt technically
needed (eg resulting PLISTs dont change)
no functional change intended
x509_addr: do not call memcmp() on NULL
If the minimum length is 0, either a->data or b->data could be NULL, so
do not call memcmp() and let the length comparison decide. Doing it this
way preserves the RFC 3779, section 2.2.3.3 semantics and avoids the UB.
A valid IPAddressFamily has an addressFamily element of 2 or 3 octets:
2 octets for the AFI and 1 octet for the optional SAFI. The check as
it is written compares the AFIs and, if they're equal, lets absent SAFI
be smaller than any other SAFI. So IPv4 (0x0001) sorts before IPv4
unicast (0x000101) and that in turn sorts before IPv6 (0x0002).
Found by beck while breaking OpenSSL
ok kenjiro
chacha: avoid -Wunterminated-string-initialization warning
The sizes of sigma[] and tau[] aren't used, so include a trailing NUL and
thereby avoid upsetting modern compilers about use of dangerous, valid C.
ok deraadt djm
drm/amdgpu/vcn4: Avoid overflow on msg bound check
From Benjamin Cheng
271cd5429513ff9b364a9bf8903e5b65b687eb25 in linux-6.18.y/6.18.32
65bce27ea6192320448c30267ffc17ffa094e713 in mainline linux