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@
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
drm/amdgpu/vcn3: Avoid overflow on msg bound check
From Benjamin Cheng
016b64a0313ea5346cf526e30c8d3e66aca10175 in linux-6.18.y/6.18.32
e6e9faba8100628990cccd13f0f044a648c303cf in mainline linux
drm/amdgpu: rework how we handle TLB fences
From Alex Deucher
f0d3bb6f5125c69ce872a7574afd6d9e1f7ea349 in linux-6.18.y/6.18.32
69c5fbd2b93b5ced77c6e79afe83371bca84c788 in mainline linux
Revert "drm/amdgpu: don't attach the tlb fence for SI"
From Prike Liang
13e9ea445191390269a6f092d009b68e086e601b in linux-6.18.y/6.18.32
9163fe4d790fb4e16d6b0e23f55b43cddd3d4a65 in mainline linux
drm/amdgpu: Fix validating flush_gpu_tlb_pasid()
From Timur Kristof
576b73b246564c8fa75572d45c1ed9b053b4be5b in linux-6.18.y/6.18.32
e3a6eff92bbd960b471966d9afccb4d584546d17 in mainline linux
drm/amdgpu: validate the flush_gpu_tlb_pasid()
From Prike Liang
fd78e63459ab6fe99b9fd026c420808d09eaa8be in linux-6.18.y/6.18.32
f4db9913e4d3dabe9ff3ea6178f2c1bc286012b8 in mainline linux
drm/amdgpu/pm: align Hawaii mclk workaround with radeon
From Alex Deucher
f8f546883e8777493157ccc4fac5794c502fcbd2 in linux-6.18.y/6.18.32
1987c79b4fe5789dfa14423e78b5c25f6acf3e9d in mainline linux
drm/amdgpu/pm: add missing revision check for CI
From Alex Deucher
6fed6e9f10622db34a18ee6ce155cbe0fa211b23 in linux-6.18.y/6.18.32
2a561b361b7681509710f3cfc3d95d54c87ac69f in mainline linux
drm/amdgpu/sdma4: replace BUG_ON with WARN_ON in fence emission
From John B. Moore
0b91ea46bb68abf98a082bf239092253bbd6aaa2 in linux-6.18.y/6.18.32
78d2e624fa073c14970aa097adcf3ea31c157a66 in mainline linux
drm/amdkfd: Make all TLB-flushes heavy-weight
From Felix Kuehling
6fbd52d210c15f3987e04d8fa2cf6ca3ace2d0d8 in linux-6.18.y/6.18.32
9b4e3495d1bd2469bf94b74930c153c2d534ddb7 in mainline linux
drm/amdgpu/gfx9: drop unnecessary 64-bit fence flag check in KIQ
From John B. Moore
71614ab2a683490bf7f43bf25afcf0d2a57a8403 in linux-6.18.y/6.18.32
7bbfb2559bcec39d1a4e1182d931a2046112c352 in mainline linux
drm/amdgpu: zero-initialize GART table on allocation
From Philip Yang
b17175d0a375b3ed5e81597dac4983fdb46e478d in linux-6.18.y/6.18.32
e6c2e6c2e1fa066968a16aca1cb66cd1bdde7741 in mainline linux
drm/radeon: add missing revision check for CI
From Alex Deucher
264ee64cf86794353e4fcb363282e3f9cf5249b3 in linux-6.18.y/6.18.32
17223816498f7b117d138d18eb0eba63604dc74e in mainline linux
drm: Set old handle to NULL before prime swap in change_handle
From Francis, David
672464dd53231509c9c771110798c56d4660e19e in linux-6.18.y/6.18.32
5e28b7b94408897e41c63477aabc9e1db439bc8c in mainline linux
drm/amdkfd: validate SVM ioctl nattr against buffer size
From Alysa Liu
db9530a9873a7c85d2266a922589ebcf427fa631 in linux-6.18.y/6.18.32
045e0ff208f0838a246c10204105126611b267a1 in mainline linux