openbsd
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@

7 weeks agoSync to unbound 1.21.0; heavy lifting by sthen
florian [Thu, 5 Sep 2024 08:22:46 +0000 (08:22 +0000)]
Sync to unbound 1.21.0; heavy lifting by sthen

parse_edns_from_query_pkt() grew a parameter to handle cookies, which
we don't use.

7 weeks agoUpdate libexpat to version 2.6.3.
bluhm [Thu, 5 Sep 2024 07:57:14 +0000 (07:57 +0000)]
Update libexpat to version 2.6.3.

Relevant for OpenBSD are security fixes #887 #890 #888 #891 #889
#892, other changes #886 #885, infrastructure #880.  No library
bump necessary.  CVE-2024-45490 CVE-2024-45491 CVE-2024-45492

OK tb@ deraadt@

7 weeks agohave sysmerge and sysupgrade Xr each other;
jmc [Thu, 5 Sep 2024 06:39:53 +0000 (06:39 +0000)]
have sysmerge and sysupgrade Xr each other;
diff originally from peter n. m. hansteen

ok ajacoutot

7 weeks agonote that "|" and ":include:" are disallowed for root;
jmc [Thu, 5 Sep 2024 06:33:04 +0000 (06:33 +0000)]
note that "|" and ":include:" are disallowed for root;
prompted by mail from illya meyer

ok gilles

7 weeks agoretire this older version of forward(5) to the attic
jmc [Thu, 5 Sep 2024 06:30:52 +0000 (06:30 +0000)]
retire this older version of forward(5) to the attic
(whilst retaining the smtpd copy);

ok op gilles

7 weeks agoremove note falsely claiming that :include: is disallowed
jmc [Thu, 5 Sep 2024 05:51:46 +0000 (05:51 +0000)]
remove note falsely claiming that :include: is disallowed
(it is, but only for root, which i'll address in separate commit);

ok mp gilles

7 weeks agodrm/amd/display: avoid using null object of framebuffer
jsg [Thu, 5 Sep 2024 04:31:26 +0000 (04:31 +0000)]
drm/amd/display: avoid using null object of framebuffer

From Ma Ke
f6f5e39a3fe7cbdba190f42b28b40bdff03c8cf0 in linux-6.6.y/6.6.49
3b9a33235c773c7a3768060cf1d2cf8a9153bc37 in mainline linux

7 weeks agodrm/amdgpu/swsmu: always force a state reprogram on init
jsg [Thu, 5 Sep 2024 04:29:04 +0000 (04:29 +0000)]
drm/amdgpu/swsmu: always force a state reprogram on init

From Alex Deucher
39defab0ebf0872b7a84deafbe903c8e30da7748 in linux-6.6.y/6.6.49
d420c857d85777663e8d16adfc24463f5d5c2dbc in mainline linux

7 weeks agodrm/amdgpu: align pp_power_profile_mode with kernel docs
jsg [Thu, 5 Sep 2024 04:27:10 +0000 (04:27 +0000)]
drm/amdgpu: align pp_power_profile_mode with kernel docs

From Alex Deucher
11182b33faf3ee80f5ea042a465b26a23e257f8a in linux-6.6.y/6.6.49
8f614469de248a4bc55fb07e55d5f4c340c75b11 in mainline linux

7 weeks agoregen
dlg [Wed, 4 Sep 2024 23:57:20 +0000 (23:57 +0000)]
regen

7 weeks agoadd PLX PEX 8718 and SK hynix PC601 devices.
dlg [Wed, 4 Sep 2024 23:56:43 +0000 (23:56 +0000)]
add PLX PEX 8718 and SK hynix PC601 devices.

The PEX 8718 is used on a QNAP QM2-2P-something card, and we have
a couple of pc601 nvme ssds plugged into it.

8 weeks agoPush acpi(4) _CRS parsing down after matching skippable and ISA hardware IDs.
hastings [Wed, 4 Sep 2024 21:39:18 +0000 (21:39 +0000)]
Push acpi(4) _CRS parsing down after matching skippable and ISA hardware IDs.

ok kettenis@

8 weeks agoWork around vnode reuse bug resulting in a panic: vop_generic_badop
beck [Wed, 4 Sep 2024 17:00:08 +0000 (17:00 +0000)]
Work around vnode reuse bug resulting in a panic: vop_generic_badop

Joel hit this frequently on the go builder, and this was
also found by szykiller

https://syzkaller.appspot.com/bug?extid=58bdde9f7a1a407514a7
https://syzkaller.appspot.com/bug?extid=5779bc64fc4fdd0a5140

This is based on a workaround originally done by visa@ and mbuhl@
but not committed or widely distributed.

Realistically this should be fixed more like the previous attempt
with vdoom, but my attempts to do this at the moment are colliding
with finding all sources of similar races, now that kernel unlocking
is exposing these previously existing bugs

for now, let's put in this ugly workaround

ok deraadt@

8 weeks agovmm: set highest cpuid feature leaf based on host cpu.
dv [Wed, 4 Sep 2024 16:12:40 +0000 (16:12 +0000)]
vmm: set highest cpuid feature leaf based on host cpu.

Fixes Linux guests on older Intel hardware. vmm was reporting a
value that doesn't match the host. Cap it at the highest value vmm
currently emulates.

ok bluhm@, ratchov@

8 weeks agoRemove deprecated '-r' command line option
job [Wed, 4 Sep 2024 15:46:43 +0000 (15:46 +0000)]
Remove deprecated '-r' command line option

OK tb@ claudio@

8 weeks agoQualifying nexthops via BGP does not properly work since nexthops need
claudio [Wed, 4 Sep 2024 15:06:36 +0000 (15:06 +0000)]
Qualifying nexthops via BGP does not properly work since nexthops need
to be rechecked when a BGP route is added (or changed).

We need to revalidate nexthops on inserts (kroute_insert) and
on change (krX_change but only for AID_INET and AID_INET6 -- no nexthops
in the other tables) the nexthop needs to be updated.

Only validate nexthops if 'nexthop qualify via bgp' is enabled. For route
changes the code can depend on the F_NEXTHOP flag.

Fix for: https://github.com/openbgpd-portable/openbgpd-portable/issues/81
OK tb@

8 weeks agolist the other doc pspvar.h mentions, add publication numbers
jsg [Wed, 4 Sep 2024 14:24:10 +0000 (14:24 +0000)]
list the other doc pspvar.h mentions, add publication numbers
ok jmc@

8 weeks agocorrect .OBJDIR use; from Denis Bodor
deraadt [Wed, 4 Sep 2024 14:18:36 +0000 (14:18 +0000)]
correct .OBJDIR use; from Denis Bodor

8 weeks agoregen
jsg [Wed, 4 Sep 2024 13:45:25 +0000 (13:45 +0000)]
regen