openbsd
7 weeks agoEnfroce proper encoding of ASPA announce/withdraw PDU.
claudio [Tue, 10 Sep 2024 08:41:13 +0000 (08:41 +0000)]
Enfroce proper encoding of ASPA announce/withdraw PDU.

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@

7 weeks agoUse reallocarray() instead of recallocarray(), this code does not need the
claudio [Tue, 10 Sep 2024 08:37:52 +0000 (08:37 +0000)]
Use reallocarray() instead of recallocarray(), this code does not need the
extra security measures of recallocarray() which adds a lot of overhead.
OK tb@

7 weeks agoInclude CLUSTER_LIST in the bad attribute tests. Also add a 2nd session
claudio [Tue, 10 Sep 2024 08:27:00 +0000 (08:27 +0000)]
Include CLUSTER_LIST in the bad attribute tests. Also add a 2nd session
which is iBGP so we can test both CLUSTER_LIST behaviours.

7 weeks agochange bus notifier defines into inline functions
jsg [Tue, 10 Sep 2024 05:45:16 +0000 (05:45 +0000)]
change bus notifier defines into inline functions

7 weeks agomissing "Ar" in previous;
jmc [Tue, 10 Sep 2024 05:33:32 +0000 (05:33 +0000)]
missing "Ar" in previous;

7 weeks agoWhen accounting start the type attribute was added twice.
yasuoka [Mon, 9 Sep 2024 23:38:29 +0000 (23:38 +0000)]
When accounting start the type attribute was added twice.
from markus

7 weeks agoHandle the CLUSTER_LIST attribute as described in RFC7606
claudio [Mon, 9 Sep 2024 15:00:45 +0000 (15:00 +0000)]
Handle the CLUSTER_LIST attribute as described in RFC7606

Just drop the attribute if received from an external peer.
Treat as withdraw if the len is 0 or not % 4.
OK tb@

7 weeks agoThere is no need for an explicit size check for IMSG_RECONF_ASPA_TAS
claudio [Mon, 9 Sep 2024 14:58:47 +0000 (14:58 +0000)]
There is no need for an explicit size check for IMSG_RECONF_ASPA_TAS
imsg_get_data() does the same and produces the same error.
OK tb@

7 weeks agodocument the mlkem768x25519-sha256 key exchange algorithm
naddy [Mon, 9 Sep 2024 14:41:21 +0000 (14:41 +0000)]
document the mlkem768x25519-sha256 key exchange algorithm

7 weeks agoUse msgbuf_init() instead of hand initalizing the msgbuf.
claudio [Mon, 9 Sep 2024 12:59:49 +0000 (12:59 +0000)]
Use msgbuf_init() instead of hand initalizing the msgbuf.
OK tb@

7 weeks agoPrint mbuf size also for non cluster.
bluhm [Mon, 9 Sep 2024 11:27:03 +0000 (11:27 +0000)]
Print mbuf size also for non cluster.

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@

7 weeks agodrm/amd/display: Skip wbscl_set_scaler_filter if filter is null
jsg [Mon, 9 Sep 2024 10:02:33 +0000 (10:02 +0000)]
drm/amd/display: Skip wbscl_set_scaler_filter if filter is null

From Alex Hung
e3a95f29647ae45d1ec9541cd7df64f40bf2120a in linux-6.6.y/6.6.50
c4d31653c03b90e51515b1380115d1aedad925dd in mainline linux

7 weeks agodrm/amd/display: Check BIOS images before it is used
jsg [Mon, 9 Sep 2024 10:00:20 +0000 (10:00 +0000)]
drm/amd/display: Check BIOS images before it is used

From Alex Hung
e50bec62acaeec03afc6fa5dfb2426e52d049cf5 in linux-6.6.y/6.6.50
8b0ddf19cca2a352b2a7e01d99d3ba949a99c84c in mainline linux

7 weeks agodrm/amd/display: use preferred link settings for dp signal only
jsg [Mon, 9 Sep 2024 09:58:02 +0000 (09:58 +0000)]
drm/amd/display: use preferred link settings for dp signal only

From Wenjing Liu
67cf14c04ff0ea5c246f80ea3a044c2afb93c99d in linux-6.6.y/6.6.50
abf34ca465f5cd182b07701d3f3d369c0fc04723 in mainline linux

7 weeks agodrm/amd/display: Correct the defined value for AMDGPU_DMUB_NOTIFICATION_MAX
jsg [Mon, 9 Sep 2024 09:56:10 +0000 (09:56 +0000)]
drm/amd/display: Correct the defined value for AMDGPU_DMUB_NOTIFICATION_MAX

From Wayne Lin
800a5ab673c4a61ca220cce177386723d91bdb37 in linux-6.6.y/6.6.50
ad28d7c3d989fc5689581664653879d664da76f0 in mainline linux

7 weeks agodrm/amd/display: added NULL check at start of dc_validate_stream
jsg [Mon, 9 Sep 2024 09:53:32 +0000 (09:53 +0000)]
drm/amd/display: added NULL check at start of dc_validate_stream

From winstang
154a50bf4221a6a6ccf88d565b8184da7c40a2dd in linux-6.6.y/6.6.50
26c56049cc4f1705b498df013949427692a4b0d5 in mainline linux

7 weeks agodrm/amd/display: Don't use fsleep for PSR exit waits on dmub replay
jsg [Mon, 9 Sep 2024 09:51:03 +0000 (09:51 +0000)]
drm/amd/display: Don't use fsleep for PSR exit waits on dmub replay

From Nicholas Kazlauskas
da696cbb47941c40b01cc10ea5504dc5a4ebac6e in linux-6.6.y/6.6.50
b5236da757adc75d7e52c69bdc233d29249a0d0c in mainline linux

7 weeks agodrm/amdgpu: add lock in kfd_process_dequeue_from_device
jsg [Mon, 9 Sep 2024 09:49:12 +0000 (09:49 +0000)]
drm/amdgpu: add lock in kfd_process_dequeue_from_device

From Yunxiang Li
381113ef01e28282f5f5a3267584b075427529f0 in linux-6.6.y/6.6.50
d225960c2330e102370815367b877baaf8bb8b5d in mainline linux

7 weeks agodrm/amdgpu: add lock in amdgpu_gart_invalidate_tlb
jsg [Mon, 9 Sep 2024 09:47:46 +0000 (09:47 +0000)]
drm/amdgpu: add lock in amdgpu_gart_invalidate_tlb

From Yunxiang Li
ddfe95f2e1fcefeb9ab70476753e1fd0a083f59b in linux-6.6.y/6.6.50
18f2525d31401e5142db95ff3a6ec0f4147be818 in mainline linux

7 weeks agodrm/amdgpu: add skip_hw_access checks for sriov
jsg [Mon, 9 Sep 2024 09:46:24 +0000 (09:46 +0000)]
drm/amdgpu: add skip_hw_access checks for sriov

From Yunxiang Li
494b42f35fc2a858941757dbbf5619f6ff405562 in linux-6.6.y/6.6.50
b3948ad1ac582f560e1f3aeaecf384619921c48d in mainline linux

7 weeks agodrm/amdgu: fix Unintentional integer overflow for mall size
jsg [Mon, 9 Sep 2024 09:44:41 +0000 (09:44 +0000)]
drm/amdgu: fix Unintentional integer overflow for mall size

From Jesse Zhang
54a11ce4ff2a01fc2a231c546a864883633d2b97 in linux-6.6.y/6.6.50
c09d2eff81a997c169e0cacacd6b60c5e3aa33f2 in mainline linux

7 weeks agodrm/amdgpu: update type of buf size to u32 for eeprom functions
jsg [Mon, 9 Sep 2024 09:42:49 +0000 (09:42 +0000)]
drm/amdgpu: update type of buf size to u32 for eeprom functions

From Tao Zhou
0798e4330b5404c547e236c07a5a06309d0a2980 in linux-6.6.y/6.6.50
2aadb520bfacec12527effce3566f8df55e5d08e in mainline linux

7 weeks agodrm/kfd: Correct pinned buffer handling at kfd restore and validate process
jsg [Mon, 9 Sep 2024 09:41:07 +0000 (09:41 +0000)]
drm/kfd: Correct pinned buffer handling at kfd restore and validate process

From Xiaogang Chen
cdc65b5f99988f9679908cdc5204dd183260bed9 in linux-6.6.y/6.6.50
f326d7cc745683f53052b84382bd10567b45cd5d in mainline linux

7 weeks agodrm/amd/pm: check negtive return for table entries
jsg [Mon, 9 Sep 2024 09:39:49 +0000 (09:39 +0000)]
drm/amd/pm: check negtive return for table entries

From Jesse Zhang
7e8d106ca98aac5ba4fc8816e64fea994ab83d54 in linux-6.6.y/6.6.50
f76059fe14395b37ba8d997eb0381b1b9e80a939 in mainline linux

7 weeks agodrm/amdgpu: the warning dereferencing obj for nbio_v7_4
jsg [Mon, 9 Sep 2024 09:37:34 +0000 (09:37 +0000)]
drm/amdgpu: the warning dereferencing obj for nbio_v7_4

From Jesse Zhang
7d265772e44d403071a2b573eac0db60250b1c21 in linux-6.6.y/6.6.50
d190b459b2a4304307c3468ed97477b808381011 in mainline linux

7 weeks agodrm/amd/pm: check specific index for smu13
jsg [Mon, 9 Sep 2024 09:35:48 +0000 (09:35 +0000)]
drm/amd/pm: check specific index for smu13

From Jesse Zhang
025798f44b8d19c33d48ff85aa5c172dc6576d47 in linux-6.6.y/6.6.50
a3ac9d1c9751f00026c2d98b802ec8a98626c3ed in mainline linux

7 weeks agodrm/amd/pm: check specific index for aldebaran
jsg [Mon, 9 Sep 2024 09:34:36 +0000 (09:34 +0000)]
drm/amd/pm: check specific index for aldebaran

From Jesse Zhang
d0230b37206888c49df41639551802dce27fa26e in linux-6.6.y/6.6.50
0ce8ef2639c112ae203c985b758389e378630aac in mainline linux

7 weeks agodrm/amdgpu: fix the waring dereferencing hive
jsg [Mon, 9 Sep 2024 09:33:21 +0000 (09:33 +0000)]
drm/amdgpu: fix the waring dereferencing hive

From Jesse Zhang
4ab720b6aa1ef5e71db1e534b5b45c80ac4ec58a in linux-6.6.y/6.6.50
1940708ccf5aff76de4e0b399f99267c93a89193 in mainline linux

7 weeks agodrm/amdgpu: fix dereference after null check
jsg [Mon, 9 Sep 2024 09:32:06 +0000 (09:32 +0000)]
drm/amdgpu: fix dereference after null check

From Jesse Zhang
0aad97bf6d0bc7a34a19f266b0b9fb2861efe64c in linux-6.6.y/6.6.50
b1f7810b05d1950350ac2e06992982974343e441 in mainline linux

7 weeks agodrm/amdgpu: Fix the warning division or modulo by zero
jsg [Mon, 9 Sep 2024 09:30:22 +0000 (09:30 +0000)]
drm/amdgpu: Fix the warning division or modulo by zero

From Jesse Zhang
d116bb921e8b104f45d1f30a473ea99ef4262b9a in linux-6.6.y/6.6.50
1a00f2ac82d6bc6689388c7edcd2a4bd82664f3c in mainline linux

7 weeks agodrm/amdgpu/pm: Check input value for CUSTOM profile mode setting on legacy SOCs
jsg [Mon, 9 Sep 2024 09:28:27 +0000 (09:28 +0000)]
drm/amdgpu/pm: Check input value for CUSTOM profile mode setting on legacy SOCs

From Ma Jun
58350786dbbddfb5ffcbb0ef976b5c9fef5870bc in linux-6.6.y/6.6.50
df0a9bd92fbbd3fcafcb2bce6463c9228a3e6868 in mainline linux

7 weeks agodrm/amdkfd: Reconcile the definition and use of oem_id in struct kfd_topology_device
jsg [Mon, 9 Sep 2024 09:26:32 +0000 (09:26 +0000)]
drm/amdkfd: Reconcile the definition and use of oem_id in struct kfd_topology_device

From Michael Chen
f163ba83e607f9fa71a342d37af5aeb83752ccdb in linux-6.6.y/6.6.50
10f624ef239bd136cdcc5bbc626157a57b938a31 in mainline linux

7 weeks agodrm/amdgpu: fix mc_data out-of-bounds read warning
jsg [Mon, 9 Sep 2024 09:24:57 +0000 (09:24 +0000)]
drm/amdgpu: fix mc_data out-of-bounds read warning

From Tim Huang
d0a43bf367ed640e527e8ef3d53aac1e71f80114 in linux-6.6.y/6.6.50
51dfc0a4d609fe700750a62f41447f01b8c9ea50 in mainline linux

7 weeks agodrm/amdgpu: fix ucode out-of-bounds read warning
jsg [Mon, 9 Sep 2024 09:22:20 +0000 (09:22 +0000)]
drm/amdgpu: fix ucode out-of-bounds read warning

From Tim Huang
f2b7a9f3839e92f43559b2795b34640ca8cf839f in linux-6.6.y/6.6.50
8944acd0f9db33e17f387fdc75d33bb473d7936f in mainline linux

7 weeks agodrm/amdgpu: Fix out-of-bounds read of df_v1_7_channel_number
jsg [Mon, 9 Sep 2024 09:19:49 +0000 (09:19 +0000)]
drm/amdgpu: Fix out-of-bounds read of df_v1_7_channel_number

From Ma Jun
f9267972490f9fcffe146e79828e97acc0da588c in linux-6.6.y/6.6.50
d768394fa99467bcf2703bde74ddc96eeb0b71fa in mainline linux

7 weeks agodrm/amdkfd: Check debug trap enable before write dbg_ev_file
jsg [Mon, 9 Sep 2024 09:17:44 +0000 (09:17 +0000)]
drm/amdkfd: Check debug trap enable before write dbg_ev_file

From Lin.Cao
e6ea3b8fe398915338147fe54dd2db8155fdafd8 in linux-6.6.y/6.6.50
547033b593063eb85bfdf9b25a5f1b8fd1911be2 in mainline linux

7 weeks agodrm/amdgpu: Fix out-of-bounds write warning
jsg [Mon, 9 Sep 2024 09:16:02 +0000 (09:16 +0000)]
drm/amdgpu: Fix out-of-bounds write warning

From Ma Jun
a60d1f7ff62e453dde2d3b4907e178954d199844 in linux-6.6.y/6.6.50
be1684930f5262a622d40ce7a6f1423530d87f89 in mainline linux

7 weeks agodrm/amdgpu: Fix the uninitialized variable warning
jsg [Mon, 9 Sep 2024 09:14:09 +0000 (09:14 +0000)]
drm/amdgpu: Fix the uninitialized variable warning

From Ma Jun
f71ef2bb69dde228e0788e8e309d3d9d73f458c3 in linux-6.6.y/6.6.50
7e39d7ec35883a168343ea02f40e260e176c6c63 in mainline linux

7 weeks agodrm/amdgpu/pm: Fix uninitialized variable agc_btc_response
jsg [Mon, 9 Sep 2024 09:12:21 +0000 (09:12 +0000)]
drm/amdgpu/pm: Fix uninitialized variable agc_btc_response

From Ma Jun
3ad44174a5767dbe1dede02b160a4acfa9899d4f in linux-6.6.y/6.6.50
df4409d8a04dd39d7f2aa0c5f528a56b99eaaa13 in mainline linux

7 weeks agodrm/amdgpu/pm: Fix uninitialized variable warning for smu10
jsg [Mon, 9 Sep 2024 09:10:54 +0000 (09:10 +0000)]
drm/amdgpu/pm: Fix uninitialized variable warning for smu10

From Ma Jun
3e04fa97077da6124b4c2a4f582d1e4aa3d704a0 in linux-6.6.y/6.6.50
336c8f558d596699d3d9814a45600139b2f23f27 in mainline linux

7 weeks agodrm/amd/pm: fix uninitialized variable warnings for vangogh_ppt
jsg [Mon, 9 Sep 2024 09:09:08 +0000 (09:09 +0000)]
drm/amd/pm: fix uninitialized variable warnings for vangogh_ppt

From Tim Huang
97667de35ba771ed50430c5541c217c035b37810 in linux-6.6.y/6.6.50
b2871de6961d24d421839fbfa4aa3008ec9170d5 in mainline linux

7 weeks agodrm/amd/amdgpu: Check tbo resource pointer
jsg [Mon, 9 Sep 2024 09:07:31 +0000 (09:07 +0000)]
drm/amd/amdgpu: Check tbo resource pointer

From Asad Kamal
4dfec5f5501a27e0a0da00e136d65ef9011ded4c in linux-6.6.y/6.6.50
6cd2b872643bb29bba01a8ac739138db7bd79007 in mainline linux

7 weeks agodrm/amd/display: Fix index may exceed array range within fpu_update_bw_bounding_box
jsg [Mon, 9 Sep 2024 09:05:54 +0000 (09:05 +0000)]
drm/amd/display: Fix index may exceed array range within fpu_update_bw_bounding_box

From Hersen Wu
4003bac784380fed1f94f197350567eaa73a409d in linux-6.6.y/6.6.50
188fd1616ec43033cedbe343b6579e9921e2d898 in mainline linux

7 weeks agodrm/amd/display: Skip inactive planes within ModeSupportAndSystemConfiguration
jsg [Mon, 9 Sep 2024 09:03:58 +0000 (09:03 +0000)]
drm/amd/display: Skip inactive planes within ModeSupportAndSystemConfiguration

From Hersen Wu
8406158a546441b73f0b216aedacbf9a1e5748fb in linux-6.6.y/6.6.50
a54f7e866cc73a4cb71b8b24bb568ba35c8969df in mainline linux

7 weeks agodrm/amd/display: Ensure index calculation will not overflow
jsg [Mon, 9 Sep 2024 09:02:02 +0000 (09:02 +0000)]
drm/amd/display: Ensure index calculation will not overflow

From Alex Hung
3dc6bb57dab36b38b7374af0ac916174c146b6ed in linux-6.6.y/6.6.50
8e2734bf444767fed787305ccdcb36a2be5301a2 in mainline linux

7 weeks agodrm/amd/display: Fix Coverity INTEGER_OVERFLOW within decide_fallback_link_setting_ma...
jsg [Mon, 9 Sep 2024 09:00:17 +0000 (09:00 +0000)]
drm/amd/display: Fix Coverity INTEGER_OVERFLOW within decide_fallback_link_setting_max_bw_policy

From Hersen Wu
94b0689984dd6a9e9f2303a1510333d18204ba88 in linux-6.6.y/6.6.50
83c0c8361347cf43937348e8ca0a487679c003ae in mainline linux

7 weeks agodrm/amd/display: Spinlock before reading event
jsg [Mon, 9 Sep 2024 08:57:58 +0000 (08:57 +0000)]
drm/amd/display: Spinlock before reading event

From Alex Hung
af43ed726fa517b19f900b56965ad29933820545 in linux-6.6.y/6.6.50
ae13c8a5cff92015b9a3eb7cee65ebc75859487f in mainline linux

7 weeks agodrm/amd/display: Fix Coverity INTEGER_OVERFLOW within dal_gpio_service_create
jsg [Mon, 9 Sep 2024 08:56:25 +0000 (08:56 +0000)]
drm/amd/display: Fix Coverity INTEGER_OVERFLOW within dal_gpio_service_create

From Hersen Wu
313d3dd4ca0e898897f4255a4c1f3d9c1f400fe2 in linux-6.6.y/6.6.50
c6077aa66fa230d12f37fef01161ef080d13b726 in mainline linux

7 weeks agodrm/amd/display: Fix Coverity INTERGER_OVERFLOW within construct_integrated_info
jsg [Mon, 9 Sep 2024 08:54:26 +0000 (08:54 +0000)]
drm/amd/display: Fix Coverity INTERGER_OVERFLOW within construct_integrated_info

From Hersen Wu
13faa9d401a5aa7a3b5211adb8ba0e9dddecaabb in linux-6.6.y/6.6.50
176abbcc71952e23009a6ed194fd203b99646884 in mainline linux

7 weeks agodrm/amd/display: Check msg_id before processing transcation
jsg [Mon, 9 Sep 2024 08:52:26 +0000 (08:52 +0000)]
drm/amd/display: Check msg_id before processing transcation

From Alex Hung
cb63090a17d3abb87f132851fa3711281249b7d2 in linux-6.6.y/6.6.50
fa71face755e27dc44bc296416ebdf2c67163316 in mainline linux

7 weeks agodrm/amd/display: Check num_valid_sets before accessing reader_wm_sets[]
jsg [Mon, 9 Sep 2024 08:51:04 +0000 (08:51 +0000)]
drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[]

From Alex Hung
21f9cb44f8c60bf6c26487d428b1a09ad3e8aebf in linux-6.6.y/6.6.50
b38a4815f79b87efb196cd5121579fc51e29a7fb in mainline linux

7 weeks agodrm/amd/display: Add array index check for hdcp ddc access
jsg [Mon, 9 Sep 2024 08:49:00 +0000 (08:49 +0000)]
drm/amd/display: Add array index check for hdcp ddc access

From Hersen Wu
8b5ccf3d011969417be653b5a145c72dbd30472c in linux-6.6.y/6.6.50
4e70c0f5251c25885c31ee84a31f99a01f7cf50e in mainline linux

7 weeks agodrm/amd/display: Check index for aux_rd_interval before using
jsg [Mon, 9 Sep 2024 08:47:23 +0000 (08:47 +0000)]
drm/amd/display: Check index for aux_rd_interval before using

From Alex Hung
48e0b68e2360b16edf2a0bae05c0051c00fbb48a in linux-6.6.y/6.6.50
9ba2ea6337b4f159aecb177555a6a81da92d302e in mainline linux

7 weeks agodrm/amd/display: Stop amdgpu_dm initialize when stream nums greater than 6
jsg [Mon, 9 Sep 2024 08:45:55 +0000 (08:45 +0000)]
drm/amd/display: Stop amdgpu_dm initialize when stream nums greater than 6

From Hersen Wu
94cb77700fa4ae6200486bfa0ba2ac547534afd2 in linux-6.6.y/6.6.50
84723eb6068c50610c5c0893980d230d7afa2105 in mainline linux

7 weeks agodrm/amd/display: Check gpio_id before used as array index
jsg [Mon, 9 Sep 2024 08:44:25 +0000 (08:44 +0000)]
drm/amd/display: Check gpio_id before used as array index

From Alex Hung
08e7755f754e3d2cef7d3a7da538d33526bd6f7c in linux-6.6.y/6.6.50
2a5626eeb3b5eec7a36886f9556113dd93ec8ed6 in mainline linux

7 weeks agodrm/amdgpu: avoid reading vf2pf info size from FB
jsg [Mon, 9 Sep 2024 08:42:39 +0000 (08:42 +0000)]
drm/amdgpu: avoid reading vf2pf info size from FB

From Zhigang Luo
30e60db4296c75f0d7a09c9beedcdab2e044cc2c in linux-6.6.y/6.6.50
3bcc0ee14768d886cedff65da72d83d375a31a56 in mainline linux

7 weeks agodrm/amd/pm: fix uninitialized variable warnings for vega10_hwmgr
jsg [Mon, 9 Sep 2024 08:41:10 +0000 (08:41 +0000)]
drm/amd/pm: fix uninitialized variable warnings for vega10_hwmgr

From Tim Huang
1a2c89396ddc2f8c4a5ae2dc0ab9618944c8c9f0 in linux-6.6.y/6.6.50
5fa7d540d95d97ddc021a74583f6b3da4df9c93a in mainline linux

7 weeks agodrm/amd/pm: fix the Out-of-bounds read warning
jsg [Mon, 9 Sep 2024 08:39:21 +0000 (08:39 +0000)]
drm/amd/pm: fix the Out-of-bounds read warning

From Jesse Zhang
f1e261ced9bcad772a45a2fcdf413c3490e87299 in linux-6.6.y/6.6.50
12c6967428a099bbba9dfd247bb4322a984fcc0b in mainline linux

7 weeks agodrm/amd/pm: Fix negative array index read
jsg [Mon, 9 Sep 2024 08:36:51 +0000 (08:36 +0000)]
drm/amd/pm: Fix negative array index read

From Jesse Zhang
4711b1347cb9f0c3083da6d87c624d75f9bd1d50 in linux-6.6.y/6.6.50
c8c19ebf7c0b202a6a2d37a52ca112432723db5f in mainline linux

7 weeks agodrm/amd/pm: fix warning using uninitialized value of max_vid_step
jsg [Mon, 9 Sep 2024 08:35:23 +0000 (08:35 +0000)]
drm/amd/pm: fix warning using uninitialized value of max_vid_step

From Jesse Zhang
59dd0d4b33269c5173c648cb2c62f9649618e766 in linux-6.6.y/6.6.50
17e3bea65cdc453695b2fe4ff26d25d17f5339e9 in mainline linux

7 weeks agodrm/amd/pm: fix uninitialized variable warning for smu8_hwmgr
jsg [Mon, 9 Sep 2024 08:33:40 +0000 (08:33 +0000)]
drm/amd/pm: fix uninitialized variable warning for smu8_hwmgr

From Tim Huang
1dbce92f325060551f98629e885e18fcc99fa012 in linux-6.6.y/6.6.50
86df36b934640866eb249a4488abb148b985a0d9 in mainline linux

7 weeks agodrm/amd/pm: fix uninitialized variable warning
jsg [Mon, 9 Sep 2024 08:31:19 +0000 (08:31 +0000)]
drm/amd/pm: fix uninitialized variable warning

From Jesse Zhang
fc0cb02efdfbf8f913417bb06ac16a1a985523e7 in linux-6.6.y/6.6.50
7c836905520703dbc8b938993b6d4d718bc739f3 in mainline linux

7 weeks agodrm/amdgpu/pm: Check the return value of smum_send_msg_to_smc
jsg [Mon, 9 Sep 2024 08:29:45 +0000 (08:29 +0000)]
drm/amdgpu/pm: Check the return value of smum_send_msg_to_smc

From Ma Jun
a2f2beaba783e5e99b05bb455b701257e6f1fa37 in linux-6.6.y/6.6.50
579f0c21baec9e7506b6bb3f60f0a9b6d07693b4 in mainline linux

7 weeks agodrm/amdgpu: fix overflowed array index read warning
jsg [Mon, 9 Sep 2024 08:27:57 +0000 (08:27 +0000)]
drm/amdgpu: fix overflowed array index read warning

From Tim Huang
da22d1b98d9d3a1bfd62bd291b10d57b0f19d6e5 in linux-6.6.y/6.6.50
ebbc2ada5c636a6a63d8316a3408753768f5aa9f in mainline linux

7 weeks agodrm/amd/display: Assign linear_pitch_alignment even for VM
jsg [Mon, 9 Sep 2024 08:26:08 +0000 (08:26 +0000)]
drm/amd/display: Assign linear_pitch_alignment even for VM

From Alvin Lee
d2fe7ac613a1ea8c346c9f5c89dc6ecc27232997 in linux-6.6.y/6.6.50
984debc133efa05e62f5aa1a7a1dd8ca0ef041f4 in mainline linux

7 weeks agodrm/amdgpu: Fix uninitialized variable warning in amdgpu_afmt_acr
jsg [Mon, 9 Sep 2024 08:22:35 +0000 (08:22 +0000)]
drm/amdgpu: Fix uninitialized variable warning in amdgpu_afmt_acr

From Ma Jun
761964b756c6e760e8af25e383b7f0a8cc473ac0 in linux-6.6.y/6.6.50
c0d6bd3cd209419cc46ac49562bef1db65d90e70 in mainline linux

7 weeks agodrm: panel-orientation-quirks: Add quirk for OrangePi Neo
jsg [Mon, 9 Sep 2024 08:21:03 +0000 (08:21 +0000)]
drm: panel-orientation-quirks: Add quirk for OrangePi Neo

From Philip Mueller
512bd0cd535bf9b819e638585d5fc69e97d2663b in linux-6.6.y/6.6.50
d60c429610a14560085d98fa6f4cdb43040ca8f0 in mainline linux

7 weeks agodrm/fb-helper: Don't schedule_work() to flush frame buffer during panic()
jsg [Mon, 9 Sep 2024 08:18:38 +0000 (08:18 +0000)]
drm/fb-helper: Don't schedule_work() to flush frame buffer during panic()

From Qiuxu Zhuo
d5618eaea8868e2534c375b8a512693658068cf8 in linux-6.6.y/6.6.50
833cd3e9ad8360785b6c23c82dd3856df00732d9 in mainline linux

7 weeks agoMake error 235 resolve to "no application protocol"
tb [Mon, 9 Sep 2024 07:40:03 +0000 (07:40 +0000)]
Make error 235 resolve to "no application protocol"

We accidentally have two errors 235 since we didn't notice that OpenSSL
removed the unused SSL_R_TRIED_TO_USE_UNSUPPORTED_CIPHER and later that
becamse SSL_R_NO_APPLICATION_PROTOCOL. Getting an "unsupported cipher"
error when fiddling with ALPN is confusing, so fix that.

ok jsing

7 weeks agoDocument 'socket' and 'sockbuf' structures locking.
mvs [Mon, 9 Sep 2024 07:38:45 +0000 (07:38 +0000)]
Document 'socket' and 'sockbuf' structures locking.

`so_oobmark' marked as [mr]. It is accessed in reception path and
corresponding SS_RCVATMARK flag belongs `so_rcv' buffer. However, it is
still protected by exclusive solock()/netlock.

No functional changes.

ok bluhm

7 weeks agoDon't take netlock while setting `if_description'.
mvs [Mon, 9 Sep 2024 07:37:47 +0000 (07:37 +0000)]
Don't take netlock while setting `if_description'.

net/if_pppx.c is the only place where `if_description' accessed outside
ifioctl() path and there is no reason to take netlock here. SIOCSIFDESCR
case of ifioctl() modifies `if_description' with the only kernel lock.

ok bluhm

7 weeks agoAdd triple-dots to synopsis as multiple name[=value] arguments may be given
kn [Mon, 9 Sep 2024 05:36:17 +0000 (05:36 +0000)]
Add triple-dots to synopsis as multiple name[=value] arguments may be given

OK jmc sobrado

7 weeks agoFix alert callback in the QUIC layer
tb [Mon, 9 Sep 2024 03:55:55 +0000 (03:55 +0000)]
Fix alert callback in the QUIC layer

Only close_notify and user_cancelled are warning alerts. All others
should be fatal. In order for the lower layers to behave correctly,
the return code for fatal alerts needs to be TLS13_IO_ALERT instead
of TLS13_IO_SUCCESS.

Failure to signal handshake failure in the public API led to a crash
in HAProxy when forcing the tls cipher to TLS_AES_128_CCM_SHA256 as
found by haproxyfred while investigating
https://github.com/haproxy/haproxy/issues/2569

Kenjiro Nakayama found misbehavior of ngtcp2-based servers, wrote a
similar patch and tested this version.

Fixes https://github.com/libressl/portable/issues/1093

ok jsing

7 weeks agomove some server only functions from nfs_subs.c to nfs_srvsubs.c
jsg [Mon, 9 Sep 2024 03:50:14 +0000 (03:50 +0000)]
move some server only functions from nfs_subs.c to nfs_srvsubs.c
saves space on ramdisks that have option NFSCLIENT

initial diff from and ok miod@

7 weeks agoAdd and use tls13_record_layer_alert_sent()
tb [Mon, 9 Sep 2024 03:32:29 +0000 (03:32 +0000)]
Add and use tls13_record_layer_alert_sent()

This is a small refactoring that wraps a direct call to the record layer's
alert_sent() callback into a handler for upcoming reuse in the QUIC code.

No functional change.

ok jsing

7 weeks agotest mlkem768x25519-sha256
djm [Mon, 9 Sep 2024 03:13:39 +0000 (03:13 +0000)]
test mlkem768x25519-sha256

7 weeks agopull post-quantum ML-KEM/x25519 key exchange out from compile-time
djm [Mon, 9 Sep 2024 02:39:57 +0000 (02:39 +0000)]
pull post-quantum ML-KEM/x25519 key exchange out from compile-time
flag now than an IANA codepoint has been assigned for the algorithm.

Add mlkem768x25519-sha256 in 2nd KexAlgorithms preference slot.

ok markus@

7 weeks agorpki-client: fix typos in comments and one in a warning message
tb [Sun, 8 Sep 2024 07:23:36 +0000 (07:23 +0000)]
rpki-client: fix typos in comments and one in a warning message

7 weeks agofix RBT_ENTRY in pf_state and pf_state_key
aisha [Sat, 7 Sep 2024 22:41:55 +0000 (22:41 +0000)]
fix RBT_ENTRY in pf_state and pf_state_key

ok sashan@

7 weeks agoFuthermore -> Furthermore
tb [Sat, 7 Sep 2024 16:39:29 +0000 (16:39 +0000)]
Futhermore -> Furthermore

7 weeks agoPrepare for an upcoming tlsfuzzer test that expects decode_error
tb [Fri, 6 Sep 2024 14:56:57 +0000 (14:56 +0000)]
Prepare for an upcoming tlsfuzzer test that expects decode_error
when we send illegal_parameter. Shrug.

7 weeks agoFix KUBSAN by adding invalid builtin detection, as needed by our current clang.
mbuhl [Fri, 6 Sep 2024 13:31:59 +0000 (13:31 +0000)]
Fix KUBSAN by adding invalid builtin detection, as needed by our current clang.
ok anton@

7 weeks agoDocument float cast overflow detection.
mbuhl [Fri, 6 Sep 2024 13:30:59 +0000 (13:30 +0000)]
Document float cast overflow detection.
ok anton@

7 weeks agospelling; ok mglocker@
jsg [Fri, 6 Sep 2024 10:54:08 +0000 (10:54 +0000)]
spelling; ok mglocker@

7 weeks agoReenable AES-NI in libcrypto
tb [Fri, 6 Sep 2024 09:57:32 +0000 (09:57 +0000)]
Reenable AES-NI in libcrypto

The OPENSSL_cpu_caps() change after the last bump missed a crucial bit:
there is more MD mess in the MI code than anticipated, with the result
that AES is now used without AES-NI on amd64 and i386, hurting machines
that previously greatly benefitted from it.

Temporarily add an internal crypto_cpu_caps_ia32() API that returns the
OPENSSL_ia32cap_P or 0 like OPENSSL_cpu_caps() previously did. This can
be improved after the release.

Regression reported and fix tested by Mark Patruck.
No impact on public ABI or API.

with/ok jsing

PS: Next time my pkg_add feels very slow, I should perhaps not mechanically
blame IEEE 802.11...

7 weeks agoAllow tracing interrupts by defering the wakeup(9) to a different context.
mpi [Fri, 6 Sep 2024 08:38:21 +0000 (08:38 +0000)]
Allow tracing interrupts by defering the wakeup(9) to a different context.

It is currently not safe to call wakeup(9) in interrupt handlers at a priority
higher than IPL_SCHED.  As long as dt(4) relies on generic kernel primitives
we have to play tricks to be able to inspect more parts of the kernel.  In this
case defer the wakeup(9) to a custom soft-interrupt.  This will be good enough
as long as we don't add tracepoints to the soft-interrupt machinery.  A more
complex & viable solution would be to not rely on the kernel generic IPC to
avoid recursion.

From visa@ and Christian Ludwig, ok claudio@

7 weeks agoRemove incorrect increment of the context switch counter.
mpi [Fri, 6 Sep 2024 08:21:21 +0000 (08:21 +0000)]
Remove incorrect increment of the context switch counter.

From Christian Ludwig.

ok claudio@

7 weeks agoRegression for '%c'.
mpi [Fri, 6 Sep 2024 08:00:36 +0000 (08:00 +0000)]
Regression for '%c'.

From Christian Ludwig.

7 weeks agoInterpret the argument of '%c' as an integer instead of a string.
mpi [Fri, 6 Sep 2024 07:58:50 +0000 (07:58 +0000)]
Interpret the argument of '%c' as an integer instead of a string.

From Christian Ludwig.

7 weeks agoAdjust documentation to work without X509_LOOKUP_by_subject()
tb [Fri, 6 Sep 2024 07:48:20 +0000 (07:48 +0000)]
Adjust documentation to work without X509_LOOKUP_by_subject()

X509_LOOKUP_by_subject() was made internal a while back. Its documentation
was very detailed, so this was a bit of a tangle to undo.

7 weeks agoRepair build with gcc.
miod [Fri, 6 Sep 2024 06:31:11 +0000 (06:31 +0000)]
Repair build with gcc.

7 weeks agosync
anton [Fri, 6 Sep 2024 04:11:26 +0000 (04:11 +0000)]
sync

7 weeks agomatch on Lunar Lake
jsg [Fri, 6 Sep 2024 03:52:38 +0000 (03:52 +0000)]
match on Lunar Lake

7 weeks agoregen
jsg [Fri, 6 Sep 2024 03:48:52 +0000 (03:48 +0000)]
regen

7 weeks agoadd Intel Lunar Lake ids
jsg [Fri, 6 Sep 2024 03:48:20 +0000 (03:48 +0000)]
add Intel Lunar Lake ids

from:
Intel Core Ultra 200V Series Processors
Datasheet, Volume 1 of 2, Doc. No.: 829568, Rev.: 001

additional graphics ids from Mesa

7 weeks agomake parsing user@host consistently look for the last '@' in the
djm [Fri, 6 Sep 2024 02:30:44 +0000 (02:30 +0000)]
make parsing user@host consistently look for the last '@' in the
string rather than the first. This makes it possible to use usernames
that contain '@' characters.

Prompted by Max Zettlmeißl; feedback/ok millert@

7 weeks agoBump version
claudio [Thu, 5 Sep 2024 20:28:42 +0000 (20:28 +0000)]
Bump version

7 weeks agosync with base
tb [Thu, 5 Sep 2024 16:17:56 +0000 (16:17 +0000)]
sync with base

7 weeks agoAvoid out-of-bounds pointer arithmetic in inflateCopy().
tb [Thu, 5 Sep 2024 16:16:54 +0000 (16:16 +0000)]
Avoid out-of-bounds pointer arithmetic in inflateCopy().

from upstream, no ABI or API change.
ok beck deraadt

7 weeks agoIn ddb(4) print mbuf chain and packet list.
bluhm [Thu, 5 Sep 2024 08:52:27 +0000 (08:52 +0000)]
In ddb(4) print mbuf chain and packet list.

For debugging hardware offloading, DMA requirements, bounce buffers,
and performance optimizations, knowing the memory layout of mbuf
content helps.
Implement /c and /p modifiers in ddb show mbuf.  It traverses the
pointer m_next for mbuf chain or m_nextpkt for packet list.  Show
mbuf type, data offset, mbuf length, packet length, cluster size,
and total number of elements, length and size.

OK claudio@ mvs@