summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-09-11After calling m_freem() on nmi_mrep (or nmi_mreq) set the pointer to NULL.Claudio Jeker
Only do this if struct nfsm_info doesn't have local scope. In some cases the caller would perfrom another m_freem and double free the mbuf and Bad Things(TM) would happen. Reported by Claes M Nyberg on bugs@; with & ok miod@
2024-09-11While I can understand that ext2fs is using ufs_ihashget() I'm stillClaudio Jeker
flabbergasted by the abuse from fuse. For whatever dumb reason fuse uses the ufs inode instead of having its own much simpler struct. Again this is a workaround to not crash when fuse is used. OK beck@
2024-09-11fstat(2) can't return an S_IFLNK, so delete that test.Philip Guenther
Also, switch to S_IS*() tests and update the manpage to reflect that POSIX-2024 has no substantive changes for wc(1) ok op@ millert@
2024-09-11Fix a typoYASUOKA Masahiko
2024-09-10Delete a test_ps() call that does not actually testIngo Schwarze
what it was intended to test. The intention was to test that src/bin/ps/utf8.c handles embedded NUL bytes correctly, just as the other tests in the same group test the handling of various other non-printable characters. But testing that does not work for multiple reasons. Neither does the shell pass the NUL byte to the called test program as intended, nor can argv[] in a C program contain a NUL byte in the middle of an argument, simply because in the C language, a string is defined to end at the first NUL byte. On top of all that, even the function mbswprint() that was supposed to be tested terminates the processing of the multi-byte input string as soon as it encounters a NUL byte (all of which is correct behaviour). So this particular subtest was totally bogus and only worked by accident, for reasons completely unrelated to the intended purpose. I don't think the test needs to be replaced by anything else. NUL bytes in the middle of a program argument just aren't a thing in the first place. Thanks to deraadt@ for asking what the purpose of this test_ps() call was.
2024-09-10nfsm_srvnamesiz() may set up an NFSERR_NAMETOL error, which nfsm_reply() wouldMiod Vallat
consider as not tragic enough to abort the operation, in order to batch error replies. This would end up invoking nfs_namei() using an uninitialized variable as length, and Bad Things(TM) would happen. Reported by Claes M Nyberg on bugs@; tweaks & ok claudio@
2024-09-10Use doc/html link for consistencyTheo Buehler
2024-09-10Add reference to the manifest numbers draftTheo Buehler
ok job
2024-09-10libcrypto hasn't had VIA padlock support compiled in for quite some time...Theo Buehler
prompted by a question by jmc
2024-09-10Fix build of m_print_chain() on sparc64.Alexander Bluhm
Use %zu to print mbuf MHLEN and MLEN in ddb, otherwise gcc complains. found by claudio@
2024-09-10ufs_ihashget() is also used by the ext2fs code but the DIP() makro doesClaudio Jeker
not handle that. So for now add an ugly hack here to support ext2fs. This fixes access to ext2fs after the last commit. A better fix can be implemented in tree. Reported and OK anton@
2024-09-10Be more careful with aspath that have 0 length (aka the empty AS_PATH).Claudio Jeker
Again malloc(0) is not portable and calling memcpy with a NULL pointer and a 0 length is not allowed by the C standard. OK tb@
2024-09-10community_copy needs to check if nentries is 0 and handle that specially.Claudio Jeker
Calling malloc / reallocarray with a 0 size is not portable and the memcpy with a possible NULL pointer as source and 0 len is seen as UB by newer C standards (grmbl). OK tb@
2024-09-10AID_VPN_IPv4 and AID_VPN_IPv6 require a labellen that is non-zero.Claudio Jeker
OK tb@
2024-09-10Enfroce proper encoding of ASPA announce/withdraw PDU.Claudio Jeker
An announce PDU requires at least one provider ASnum while a withdraw must not include any provider ASnums. The first is mandated by the ASPA profile and the 2nd by the 8210bis draft. Further cleanup some leftovers from the old per-AFI split of ASPA. OK tb@
2024-09-10Use reallocarray() instead of recallocarray(), this code does not need theClaudio Jeker
extra security measures of recallocarray() which adds a lot of overhead. OK tb@
2024-09-10Include CLUSTER_LIST in the bad attribute tests. Also add a 2nd sessionClaudio Jeker
which is iBGP so we can test both CLUSTER_LIST behaviours.
2024-09-10change bus notifier defines into inline functionsJonathan Gray
2024-09-10missing "Ar" in previous;Jason McIntyre
2024-09-09When accounting start the type attribute was added twice.YASUOKA Masahiko
from markus
2024-09-09Handle the CLUSTER_LIST attribute as described in RFC7606Claudio Jeker
Just drop the attribute if received from an external peer. Treat as withdraw if the len is 0 or not % 4. OK tb@
2024-09-09There is no need for an explicit size check for IMSG_RECONF_ASPA_TASClaudio Jeker
imsg_get_data() does the same and produces the same error. OK tb@
2024-09-09document the mlkem768x25519-sha256 key exchange algorithmChristian Weisgerber
2024-09-09Use msgbuf_init() instead of hand initalizing the msgbuf.Claudio Jeker
OK tb@
2024-09-09Print mbuf size also for non cluster.Alexander Bluhm
Command "ddb> show /c mbuf" always prints mbuf data size. In uipc_mbuf.c include db_interface.h as it contains prototype for m_print_chain(). OK mvs@
2024-09-09drm/amd/display: Skip wbscl_set_scaler_filter if filter is nullJonathan Gray
From Alex Hung e3a95f29647ae45d1ec9541cd7df64f40bf2120a in linux-6.6.y/6.6.50 c4d31653c03b90e51515b1380115d1aedad925dd in mainline linux
2024-09-09drm/amd/display: Check BIOS images before it is usedJonathan Gray
From Alex Hung e50bec62acaeec03afc6fa5dfb2426e52d049cf5 in linux-6.6.y/6.6.50 8b0ddf19cca2a352b2a7e01d99d3ba949a99c84c in mainline linux
2024-09-09drm/amd/display: use preferred link settings for dp signal onlyJonathan Gray
From Wenjing Liu 67cf14c04ff0ea5c246f80ea3a044c2afb93c99d in linux-6.6.y/6.6.50 abf34ca465f5cd182b07701d3f3d369c0fc04723 in mainline linux
2024-09-09drm/amd/display: Correct the defined value for AMDGPU_DMUB_NOTIFICATION_MAXJonathan Gray
From Wayne Lin 800a5ab673c4a61ca220cce177386723d91bdb37 in linux-6.6.y/6.6.50 ad28d7c3d989fc5689581664653879d664da76f0 in mainline linux
2024-09-09drm/amd/display: added NULL check at start of dc_validate_streamJonathan Gray
From winstang 154a50bf4221a6a6ccf88d565b8184da7c40a2dd in linux-6.6.y/6.6.50 26c56049cc4f1705b498df013949427692a4b0d5 in mainline linux
2024-09-09drm/amd/display: Don't use fsleep for PSR exit waits on dmub replayJonathan Gray
From Nicholas Kazlauskas da696cbb47941c40b01cc10ea5504dc5a4ebac6e in linux-6.6.y/6.6.50 b5236da757adc75d7e52c69bdc233d29249a0d0c in mainline linux
2024-09-09drm/amdgpu: add lock in kfd_process_dequeue_from_deviceJonathan Gray
From Yunxiang Li 381113ef01e28282f5f5a3267584b075427529f0 in linux-6.6.y/6.6.50 d225960c2330e102370815367b877baaf8bb8b5d in mainline linux
2024-09-09drm/amdgpu: add lock in amdgpu_gart_invalidate_tlbJonathan Gray
From Yunxiang Li ddfe95f2e1fcefeb9ab70476753e1fd0a083f59b in linux-6.6.y/6.6.50 18f2525d31401e5142db95ff3a6ec0f4147be818 in mainline linux
2024-09-09drm/amdgpu: add skip_hw_access checks for sriovJonathan Gray
From Yunxiang Li 494b42f35fc2a858941757dbbf5619f6ff405562 in linux-6.6.y/6.6.50 b3948ad1ac582f560e1f3aeaecf384619921c48d in mainline linux
2024-09-09drm/amdgu: fix Unintentional integer overflow for mall sizeJonathan Gray
From Jesse Zhang 54a11ce4ff2a01fc2a231c546a864883633d2b97 in linux-6.6.y/6.6.50 c09d2eff81a997c169e0cacacd6b60c5e3aa33f2 in mainline linux
2024-09-09drm/amdgpu: update type of buf size to u32 for eeprom functionsJonathan Gray
From Tao Zhou 0798e4330b5404c547e236c07a5a06309d0a2980 in linux-6.6.y/6.6.50 2aadb520bfacec12527effce3566f8df55e5d08e in mainline linux
2024-09-09drm/kfd: Correct pinned buffer handling at kfd restore and validate processJonathan Gray
From Xiaogang Chen cdc65b5f99988f9679908cdc5204dd183260bed9 in linux-6.6.y/6.6.50 f326d7cc745683f53052b84382bd10567b45cd5d in mainline linux
2024-09-09drm/amd/pm: check negtive return for table entriesJonathan Gray
From Jesse Zhang 7e8d106ca98aac5ba4fc8816e64fea994ab83d54 in linux-6.6.y/6.6.50 f76059fe14395b37ba8d997eb0381b1b9e80a939 in mainline linux
2024-09-09drm/amdgpu: the warning dereferencing obj for nbio_v7_4Jonathan Gray
From Jesse Zhang 7d265772e44d403071a2b573eac0db60250b1c21 in linux-6.6.y/6.6.50 d190b459b2a4304307c3468ed97477b808381011 in mainline linux
2024-09-09drm/amd/pm: check specific index for smu13Jonathan Gray
From Jesse Zhang 025798f44b8d19c33d48ff85aa5c172dc6576d47 in linux-6.6.y/6.6.50 a3ac9d1c9751f00026c2d98b802ec8a98626c3ed in mainline linux
2024-09-09drm/amd/pm: check specific index for aldebaranJonathan Gray
From Jesse Zhang d0230b37206888c49df41639551802dce27fa26e in linux-6.6.y/6.6.50 0ce8ef2639c112ae203c985b758389e378630aac in mainline linux
2024-09-09drm/amdgpu: fix the waring dereferencing hiveJonathan Gray
From Jesse Zhang 4ab720b6aa1ef5e71db1e534b5b45c80ac4ec58a in linux-6.6.y/6.6.50 1940708ccf5aff76de4e0b399f99267c93a89193 in mainline linux
2024-09-09drm/amdgpu: fix dereference after null checkJonathan Gray
From Jesse Zhang 0aad97bf6d0bc7a34a19f266b0b9fb2861efe64c in linux-6.6.y/6.6.50 b1f7810b05d1950350ac2e06992982974343e441 in mainline linux
2024-09-09drm/amdgpu: Fix the warning division or modulo by zeroJonathan Gray
From Jesse Zhang d116bb921e8b104f45d1f30a473ea99ef4262b9a in linux-6.6.y/6.6.50 1a00f2ac82d6bc6689388c7edcd2a4bd82664f3c in mainline linux
2024-09-09drm/amdgpu/pm: Check input value for CUSTOM profile mode setting on legacy SOCsJonathan Gray
From Ma Jun 58350786dbbddfb5ffcbb0ef976b5c9fef5870bc in linux-6.6.y/6.6.50 df0a9bd92fbbd3fcafcb2bce6463c9228a3e6868 in mainline linux
2024-09-09drm/amdkfd: Reconcile the definition and use of oem_id in struct ↵Jonathan Gray
kfd_topology_device From Michael Chen f163ba83e607f9fa71a342d37af5aeb83752ccdb in linux-6.6.y/6.6.50 10f624ef239bd136cdcc5bbc626157a57b938a31 in mainline linux
2024-09-09drm/amdgpu: fix mc_data out-of-bounds read warningJonathan Gray
From Tim Huang d0a43bf367ed640e527e8ef3d53aac1e71f80114 in linux-6.6.y/6.6.50 51dfc0a4d609fe700750a62f41447f01b8c9ea50 in mainline linux
2024-09-09drm/amdgpu: fix ucode out-of-bounds read warningJonathan Gray
From Tim Huang f2b7a9f3839e92f43559b2795b34640ca8cf839f in linux-6.6.y/6.6.50 8944acd0f9db33e17f387fdc75d33bb473d7936f in mainline linux
2024-09-09drm/amdgpu: Fix out-of-bounds read of df_v1_7_channel_numberJonathan Gray
From Ma Jun f9267972490f9fcffe146e79828e97acc0da588c in linux-6.6.y/6.6.50 d768394fa99467bcf2703bde74ddc96eeb0b71fa in mainline linux
2024-09-09drm/amdkfd: Check debug trap enable before write dbg_ev_fileJonathan Gray
From Lin.Cao e6ea3b8fe398915338147fe54dd2db8155fdafd8 in linux-6.6.y/6.6.50 547033b593063eb85bfdf9b25a5f1b8fd1911be2 in mainline linux