1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-22 07:27:59 -08:00
Commit Graph

237197 Commits

Author SHA1 Message Date
tb
823dae7d71 Rewrite a comment to use p rather than q 2024-12-12 10:02:00 +00:00
tb
3fd2f05c57 Rename group->field to group->p
Now that we only do curves over GF(p) fields, there's no need to use a
weird, confusing name for what we usually call p. Adjust some comments
in the vicinity as well.
2024-12-12 10:00:15 +00:00
tb
c18e04ad92 sm3: fix ugly whitespace 2024-12-12 09:54:44 +00:00
dtucker
feb3ea439d Plug leak on error path, spotted by Coverity. ok djm@ 2024-12-12 09:09:09 +00:00
anton
ced57b23db Cope with recent changes to sed "c" command. 2024-12-12 08:02:48 +00:00
jsg
f76b031fdc appeared in 4.3BSD before 4.3BSD-Tahoe
ok millert@ schwarze@
2024-12-11 23:28:20 +00:00
tb
5e6abc6fb4 ciphers: remove tls1 and tls1_1 leftovers
The options were already removed from the manual in 91e7614a.

From Renaud Allard (hand-applied since patch was mangled)
2024-12-11 12:18:05 +00:00
tb
131e173293 Avoid an oob access in asn1_item_free()
As explained in a comment, this needs to loop backwards and the last tt--
ends up pointing at &it->templates[-1], which isn't ok. Use a simple way
of looping, which is also ugly and involves some type confusion as pointed
out by claudio. However, type confusion is common in libcrypto's asn1 code
and won't be fixed anytime soon anyway.

ok jsing
2024-12-11 11:22:06 +00:00
tb
497a100a3b Drop a pair of useless parentheses 2024-12-11 10:28:03 +00:00
claudio
f666252400 Introduce a peer_reaper() which asynchronously removes the Adj-RIB-Out
of a peer.

Once the peer is kind of done enqueue it onto the zombie list and then
the reaper will take care of the Adj-RIB-Out.
OK tb@
2024-12-11 09:19:44 +00:00
patrick
6040dc01ee Rework and fill in the device specific handling for WCN7850. 2024-12-11 04:53:17 +00:00
dlg
09380e002e get rid of code for an extra DLT_LOOP bpf attachment.
pfsync doesnt know the source address in IP packets before it calls
ip_output, so the extra bpf attachment has a distorted view of what
IP packets are being sent anyway. you can tcpdump on the pfsync
syncdev if you want to see what will be on the wire.
2024-12-11 04:22:41 +00:00
dlg
780061c369 fix pfsync_encap to cope with pfsync_sendout changes.
problem noticed by hrvoje popovski
2024-12-11 04:18:52 +00:00
dlg
0c21bd8129 init snapend when handling DLT_PFSYNC interfaces.
this helps avoid segfaults when using tcpdump -X and similar.
2024-12-11 04:05:53 +00:00
dlg
23a5083371 white space fixes, no functional change.
cvs diff -w agrees.
2024-12-11 02:00:32 +00:00
millert
8a7444b3f2 The "c" command should start the next cycle as clarified in POSIX
2024.  This is also consistent with historical behavior.
Prompted by Mohamed Akram with a diff from uwe@netbsd.
2024-12-10 23:49:55 +00:00
claudio
6df2f81829 In prefix_adjout_update() and prefix_adjout_withdraw() only link
prefixes to the update / withdraw queue if the peer is up.

For updates the Adj-RIB-Out is already updated and nothing more needs to happen.
For withdraws the prefix is unlinked and needs to be destroyed if the peer is
not up. For this to work correctly make the prefix as dead.

Right now this is a no-op since the functions are only called if the peer
is up.
OK tb@
2024-12-10 20:06:11 +00:00
claudio
6d701af4d6 A lot of space fixing and other minor consitency fixes that have no
effect on the code but reduce eyestrain.
OK tb@
2024-12-10 16:29:07 +00:00
stsp
ed29f361a6 make ice(4) warn about unhandled firmware phy types
Some firmware phy types are not being mapped to ifmedia yet.
Print a message when this happens since the driver might not
work without a known media type.
The real fix will be to get missing media types mapped properly.
2024-12-10 16:07:17 +00:00
stsp
0ca5b64ce9 prevent IFM_INST_ANY from being reported in ice_media_status
IFM_INST_ANY is used as a placeholder for firmware PHY types which do
not have a mapping to ifmedia types. Don't report this value to userland.
2024-12-10 16:02:19 +00:00
schwarze
fe039420e7 Improve a rather misleading sentence about EVP_PKEY_new_mac_key(3).
It does *not* "work in the same way" as EVP_PKEY_new_raw_private_key(3)
but merely arrives at the same end result after doing lots of
cumbersome and unnecessary work - and on top of that, it only works
for EVP_PKEY_HMAC.
2024-12-10 15:10:26 +00:00
schwarze
a9a4d01cec Add a paragraph about HMAC because that algorithm also involves
parameters that can be controlled with EVP_PKEY_CTX_ctrl(3).
But rather than providing a detailed despription, instead
point to what application programs should use instead and explain
why using the control constant directly would be a particularly bad
idea in this case.
2024-12-10 14:54:20 +00:00
claudio
1d44387dec Introduce a SessionDownTimer that is started when a session goes down
and is stopped when the session comes up (ESTABLISHED state).
Right now it is used to remove cloned sessions. For that the SessionDownTimer
is also started when a clone is created.
OK tb@
2024-12-10 14:34:51 +00:00
claudio
d31a879178 For ROUTE_REFRESH_REQUEST use peer_blast() since the Adj-RIB-Out is
already calculated. Saves a fair bit of work by skipping peer_dump().
OK tb@
2024-12-10 13:40:02 +00:00
claudio
fcf73b57ed Make the unknown AID case in pt_writebuf() a fatal error.
The pointer passed to pt_writebuf() is bad and there is no reason to limp
further. Someone else will trip over this at a later stage so better to
do it now.
OK tb@
2024-12-10 13:29:47 +00:00
claudio
c8208cf126 Refactor code around peer_dump.
Rename the upcall and done callbacks:
 - rde_up_adjout_force_upcall() to peer_blast_upcall() and same for done
 - rde_up_dump_upcall() to peer_dump_upcall() and same for done
Introduce peer_blast() which blasts out the Adj-RIB-Out including all
the route refresh messages (BEGIN_RR, EOR and END_RR) needed.
peer_dump() now always throttles the peer before starting the table walk to
fill the Adj-RIB-Out and calls peer_blast() in all cases (either directly or
via the peer_dump_done() call.
OK tb@
2024-12-10 12:23:42 +00:00
tb
7f9db3f573 Add regress coverage for tls_peer_cert_common_name() 2024-12-10 08:43:17 +00:00
tb
5ad0d35887 Document tls_peer_cert_common_name()
ok beck
2024-12-10 08:42:12 +00:00
tb
b414cf9bd9 sync 2024-12-10 08:41:46 +00:00
tb
4c4812c958 bump minor after symbol addition 2024-12-10 08:41:04 +00:00
tb
7c96010cd4 expose tls_peer_cert_common_name() 2024-12-10 08:40:45 +00:00
tb
26433cb13c Provide tls_peer_cert_common_name()
There is currently no sane way of getting your hands on the common name or
subject alternative name of the peer certificate from libtls. It is possible
to extract it from the peer cert's PEM by hand, but that way lies madness.
While the common name is close to being deprecated in the webpki, it is
still the de facto standard to identify client certs. It would be nice to
have a way to access the subject alternative names as well, but this is a
lot more difficult to expose in a clean and sane C interface due to its
multivaluedness.

Initial diff from henning, with input from beck, jsing and myself
henning and bluhm have plans of using this in syslogd.

ok beck
2024-12-10 08:40:30 +00:00
patrick
c6aabb152b Set single_pdev_only for WCN7850. 2024-12-10 07:38:45 +00:00
patrick
9fa263cd58 Cleanup qwz_wmi_scan_prob_req_oui(). 2024-12-10 07:38:13 +00:00
patrick
9c0f05d8ac Initial stab at qwz_dp_cc_cleanup(), list cleanup probably missing. 2024-12-10 07:33:43 +00:00
jsg
26e4a7effd add HISTORY section; from Evan Silberman 2024-12-10 05:10:13 +00:00
jsg
71ffb8de38 drm/amd/pm: update current_socclk and current_uclk in gpu_metrics on smu v13.0.7
From Umio Yasuno
8a799149ab451199d6acbec37944d66b3e964573 in linux-6.6.y/6.6.64
2abf2f7032df4c4e7f6cf7906da59d0e614897d6 in mainline linux
2024-12-10 03:02:35 +00:00
jsg
a0d73938f7 drm/amdgpu: fix usage slab after free
From Vitaly Prosyak
3990ef742c064e22189b954522930db04fc6b1a7 in linux-6.6.y/6.6.64
b61badd20b443eabe132314669bb51a263982e5c in mainline linux
2024-12-10 02:58:48 +00:00
jsg
323a2b517d drm/amdkfd: Use the correct wptr size
From Lijo Lazar
70e6599a9e78384d22c3feb95da46514e5e5ee41 in linux-6.6.y/6.6.64
cdc6705f98ea3f854a60ba8c9b19228e197ae384 in mainline linux
2024-12-10 02:56:26 +00:00
jsg
4b0e85add7 drm/amd/display: Add NULL pointer check for kzalloc
From Hersen Wu
cd1e565a5b7fa60c349ca8a16db1e61715fe8230 in linux-6.6.y/6.6.64
8e65a1b7118acf6af96449e1e66b7adbc9396912 in mainline linux
2024-12-10 02:54:39 +00:00
jsg
8ca68bca0f drm/amd/display: Check phantom_stream before it is used
From Alex Hung
d247af7c5dbf143ad6be8179bb1550e76d6af57e in linux-6.6.y/6.6.64
3718a619a8c0a53152e76bb6769b6c414e1e83f4 in mainline linux
2024-12-10 02:52:40 +00:00
jsg
e1d5c04978 drm/amd/display: Add NULL check for function pointer in dcn20_set_output_transfer_func
From Srinivasan Shanmugam
8c854138b593efbbd8fa46a25f3288c121c1d1a1 in linux-6.6.y/6.6.64
62ed6f0f198da04e884062264df308277628004f in mainline linux
2024-12-10 02:50:35 +00:00
jsg
035c6335ec drm/amd/display: Check null pointer before try to access it
From Rodrigo Siqueira
ebef6616219ff04abdeb39450625f85419787ee3 in linux-6.6.y/6.6.64
1b686053c06ffb9f4524b288110cf2a831ff7a25 in mainline linux
2024-12-10 02:48:41 +00:00
jsg
3746c6d7f6 drm/amd/display: Add NULL check for clk_mgr in dcn32_init_hw
From Srinivasan Shanmugam
ec1be3c527b4a5fc85bcc1b0be7cec08bf60c796 in linux-6.6.y/6.6.64
c395fd47d1565bd67671f45cca281b3acc2c31ef in mainline linux
2024-12-10 02:45:45 +00:00
jsg
c55c328b61 drm/amd/display: Add NULL check for clk_mgr and clk_mgr->funcs in dcn30_init_hw
From Srinivasan Shanmugam
205e3b96cc9aa9211fd2c849a16245cf236b2d36 in linux-6.6.y/6.6.64
cba7fec864172dadd953daefdd26e01742b71a6a in mainline linux
2024-12-10 02:43:51 +00:00
jsg
4a839efc44 drm/amd/display: Fix null check for pipe_ctx->plane_state in hwss_setup_dpp
From Zicheng Qu
020002c76147ecfdafe95c44abd3240e216b6316 in linux-6.6.y/6.6.64
2bc96c95070571c6c824e0d4c7783bee25a37876 in mainline linux
2024-12-10 02:41:59 +00:00
jsg
631ad31c18 drm/radeon: Fix spurious unplug event on radeon HDMI
From Steven 'Steve' Kendall
756f30dc27ae8c5ee4b87cd66e026cfe5421725f in linux-6.6.y/6.6.64
7037bb04265ef05c6ffad56d884b0df76f57b095 in mainline linux
2024-12-10 02:38:05 +00:00
jsg
33a3edb177 drm/radeon: change rdev->ddev to rdev_to_drm(rdev)
From Wu Hoi Pok
5e3a0f772d97a6d50163ad7694beec823c802d54 in linux-6.6.y/6.6.64
fb1b5e1dd53fc834e12f69749cbc8484382599c4 in mainline linux
2024-12-10 02:35:56 +00:00
jsg
21ee691064 drm/radeon: add helper rdev_to_drm(rdev)
From Wu Hoi Pok
28f6a86a2f6613967e947dd116b20d3e8d97e23c in linux-6.6.y/6.6.64
a6e23bec8ed184ed2a11080b28cdbd7a3024f0c0 in mainline linux
2024-12-10 02:31:55 +00:00
jsg
e6965b2641 drm/amdkfd: Fix wrong usage of INIT_WORK()
From Yuan Can
38e3d796f65438d58791e6e75181948a63299beb in linux-6.6.y/6.6.64
21cae8debc6a1d243f64fa82cd1b41cb612b5c61 in mainline linux
2024-12-10 02:28:44 +00:00