openbsd
2 weeks agoremove unneeded limits.h and errno.h includes
jsg [Sun, 13 Oct 2024 00:53:21 +0000 (00:53 +0000)]
remove unneeded limits.h and errno.h includes

2 weeks agoBe more eager to install qcpas firmware (more pattern matches)
deraadt [Sun, 13 Oct 2024 00:00:41 +0000 (00:00 +0000)]
Be more eager to install qcpas firmware (more pattern matches)

2 weeks agoMake fw_update -a mean all
afresh1 [Sat, 12 Oct 2024 23:56:23 +0000 (23:56 +0000)]
Make fw_update -a mean all

When downloading or installing, not just deleting.

Noticed by Paul de Weerd
Help with manual wording from jmc@
Just fix -a, deraadt@

2 weeks agoremove unneeded rwlock.h include
jsg [Sat, 12 Oct 2024 23:31:14 +0000 (23:31 +0000)]
remove unneeded rwlock.h include

2 weeks agoremove unneeded time.h include
jsg [Sat, 12 Oct 2024 23:18:10 +0000 (23:18 +0000)]
remove unneeded time.h include

2 weeks agoremove unneeded percpu.h include
jsg [Sat, 12 Oct 2024 23:10:07 +0000 (23:10 +0000)]
remove unneeded percpu.h include

2 weeks agoExercise the EC parameters code a bit more
tb [Sat, 12 Oct 2024 16:15:28 +0000 (16:15 +0000)]
Exercise the EC parameters code a bit more

Ensure all builtin curves can be roundtripped through DER as named curves,
via explicit parameterization, using uncompressed, compressed and hybrid
point formats.

2 weeks agoremove blank line;
jmc [Sat, 12 Oct 2024 15:40:36 +0000 (15:40 +0000)]
remove blank line;

2 weeks agoremove duplicate misc.h include
jsg [Sat, 12 Oct 2024 10:50:37 +0000 (10:50 +0000)]
remove duplicate misc.h include
ok dtucker@

2 weeks agoCall realpath on the source file to match -f on the command line, GitHub
nicm [Sat, 12 Oct 2024 08:20:32 +0000 (08:20 +0000)]
Call realpath on the source file to match -f on the command line, GitHub
issue 4180.

2 weeks agoDo not rename a buffer to itself, GitHub issue 4181.
nicm [Sat, 12 Oct 2024 08:13:52 +0000 (08:13 +0000)]
Do not rename a buffer to itself, GitHub issue 4181.

2 weeks agoremove duplicate unistd.h include
jsg [Sat, 12 Oct 2024 07:58:40 +0000 (07:58 +0000)]
remove duplicate unistd.h include

2 weeks agointroduce a new build class to be used by the build user
robert [Sat, 12 Oct 2024 07:36:52 +0000 (07:36 +0000)]
introduce a new build class to be used by the build user

this class will be required for the upcoming llvm update
that requires bumped datasize because of llvm-tblgen

ok deraadt@

2 weeks agoremove vmparam.h include
jsg [Sat, 12 Oct 2024 07:30:20 +0000 (07:30 +0000)]
remove vmparam.h include

not required since VM_PHYSSEG_MAX changed to HIB_PHYSSEG_MAX in rev 1.45

2 weeks agoRemove unnecessary str variable in ssl_stat.c
tb [Sat, 12 Oct 2024 03:54:18 +0000 (03:54 +0000)]
Remove unnecessary str variable in ssl_stat.c

Drop about 1/4 of the lines in here by avoiding the use of a variable.
For some reason the API in this file made me go listen to Pow R. Toc H.
All of a sudden the lyrics made sense. I should probably be worried.

ok beck jsing

2 weeks agoUse a and b for the curve coefficients
tb [Fri, 11 Oct 2024 18:58:04 +0000 (18:58 +0000)]
Use a and b for the curve coefficients

No idea how anyone would think that tmp_1 and tmp_2 are better suited for
this.

ok jsing

2 weeks agoClean up ec_asn1_group2fieldid()
tb [Fri, 11 Oct 2024 18:55:44 +0000 (18:55 +0000)]
Clean up ec_asn1_group2fieldid()

This drops some unnecessary freeing that was turned into a double free
reachable via public API in OpenSSL 1.1. Other than that it unindents
code and uses better variable names.

ok jsing

2 weeks agoFix a long-standing bug in ec_asn1_group2pkparameters()
tb [Fri, 11 Oct 2024 18:35:39 +0000 (18:35 +0000)]
Fix a long-standing bug in ec_asn1_group2pkparameters()

Only check for the OPENSSL_EC_NAMED_CURVE being set to treat the curve
parameters as named curve parameters.

ok jsing

2 weeks agoUse defines for the CHOICE variants of ECPKPARAMETERS
tb [Fri, 11 Oct 2024 18:34:20 +0000 (18:34 +0000)]
Use defines for the CHOICE variants of ECPKPARAMETERS

ok jsing

2 weeks agoRemove NULL check in ec_asn1_pkparameters2group()
tb [Fri, 11 Oct 2024 18:32:03 +0000 (18:32 +0000)]
Remove NULL check in ec_asn1_pkparameters2group()

The callers already ensure that params != NULL.

ok jsing

2 weeks agoUse better variable names in ec_asn1_pkparameters2group()
tb [Fri, 11 Oct 2024 18:30:58 +0000 (18:30 +0000)]
Use better variable names in ec_asn1_pkparameters2group()

ok jsing

2 weeks agoFirst cleanup pass over ec_asn1_group2pkparameters()
tb [Fri, 11 Oct 2024 18:18:10 +0000 (18:18 +0000)]
First cleanup pass over ec_asn1_group2pkparameters()

Use better variable names and do things in a slightly more sensible order.
This way the code becomes almost self-documenting.

ok jsing

2 weeks agoThe fw keys have been added to the signify key bundles. sysupgrade will
deraadt [Fri, 11 Oct 2024 14:12:05 +0000 (14:12 +0000)]
The fw keys have been added to the signify key bundles.  sysupgrade will
now extract the fw key also, so that pre-upgrade fw_update can fetch
the most uptodate firmware.
ok sthen

2 weeks agoerr.c: zap stray space
tb [Fri, 11 Oct 2024 13:32:22 +0000 (13:32 +0000)]
err.c: zap stray space

2 weeks agoApply some style(9) and tidy some comments.
jsing [Fri, 11 Oct 2024 12:40:25 +0000 (12:40 +0000)]
Apply some style(9) and tidy some comments.

2 weeks agoRemove pointless locking from err_build_SYS_str_reasons().
jsing [Fri, 11 Oct 2024 12:27:24 +0000 (12:27 +0000)]
Remove pointless locking from err_build_SYS_str_reasons().

err_build_SYS_str_reasons() is only called during initialisation, under
pthread_once(). As such, there is no need to grab CRYPTO_LOCK_ERR or
check for reentrant calls.

ok tb@

2 weeks agoConvert err_clear_data() and err_clear() from macros to functions.
jsing [Fri, 11 Oct 2024 12:25:05 +0000 (12:25 +0000)]
Convert err_clear_data() and err_clear() from macros to functions.

ok tb@

2 weeks agoRemove unused typedef for ERR_FNS.
jsing [Fri, 11 Oct 2024 12:20:06 +0000 (12:20 +0000)]
Remove unused typedef for ERR_FNS.

2 weeks agoAdd err_ prefix to build_SYS_str_reasons().
jsing [Fri, 11 Oct 2024 12:19:35 +0000 (12:19 +0000)]
Add err_ prefix to build_SYS_str_reasons().

2 weeks agoMake ERR_str_{libraries,reasons,functs}[] const.
jsing [Fri, 11 Oct 2024 12:10:12 +0000 (12:10 +0000)]
Make ERR_str_{libraries,reasons,functs}[] const.

Provide err_load_const_strings(), which takes a const ERR_STRING_DATA *
and does not perform a library error value fixup. Make ERR_str_*[] tables
const.

ok tb@

2 weeks agoAdd ERR_LIB_SYS to the error values in ERR_str_functs[].
jsing [Fri, 11 Oct 2024 11:58:53 +0000 (11:58 +0000)]
Add ERR_LIB_SYS to the error values in ERR_str_functs[].

This is currently added via err_load_strings(), which means
ERR_str_functs[] cannot be made const. Adding ERR_LIB_SYS means the fixup
becomes unnecessary.

ok tb@

2 weeks agoRevert ehci(4) bits in the previous commit. Apparently 64-bit DMA is broken
kettenis [Fri, 11 Oct 2024 09:55:24 +0000 (09:55 +0000)]
Revert ehci(4) bits in the previous commit.  Apparently 64-bit DMA is broken
in (almost?) all ehci(4) controllers.

2 weeks agoAdd error regress coverage for ERR_LIB_SYS.
jsing [Fri, 11 Oct 2024 07:54:22 +0000 (07:54 +0000)]
Add error regress coverage for ERR_LIB_SYS.

These are dynamically populated based on strerror() values.

2 weeks agoRemove params argument from ec_asn1_group2parameters()
tb [Fri, 11 Oct 2024 06:21:30 +0000 (06:21 +0000)]
Remove params argument from ec_asn1_group2parameters()

Its only caller passes NULL, so we can simplify the entry point and the
exit of this function a bit.

ok jsing

2 weeks agoSimplify ec_asn1_group2pkparameters()
tb [Fri, 11 Oct 2024 06:19:52 +0000 (06:19 +0000)]
Simplify ec_asn1_group2pkparameters()

The parameters argument is always NULL, so we can simplify this helper
accordingly.

ok jsing

2 weeks agoSpell NULL in a simpler fashion
tb [Fri, 11 Oct 2024 06:18:40 +0000 (06:18 +0000)]
Spell NULL in a simpler fashion

priv_key->parameters is always NULL at this point, since its corresponding
entry in the ASN.1 template has ASN1_TFLG_OPTIONAL set, so there is no point
in pretending to pass it to ec_asn1_group2pkparameters().

ok jsing

2 weeks agoClean up i2d_ECPKParameters()
tb [Fri, 11 Oct 2024 06:13:09 +0000 (06:13 +0000)]
Clean up i2d_ECPKParameters()

Use better variable names and turn it into single-exit. This changes the
behavior slightly in that an error is pushed onto the stack also for
i2d_ECPKPARAMETERS() return values < 0.

ok jsing

2 weeks agodrm/amd/display: enable_hpo_dp_link_output: Check link_res->hpo_dp_link_enc before...
jsg [Fri, 11 Oct 2024 03:00:56 +0000 (03:00 +0000)]
drm/amd/display: enable_hpo_dp_link_output: Check link_res->hpo_dp_link_enc before using it

From Alex Hung
e0b065ec636d66022ab7057e1635e9a941a42820 in linux-6.6.y/6.6.55
d925c04d974c657d10471c0c2dba3bc9c7d994ee in mainline linux

2 weeks agodrm/amd/display: Allow backlight to go below `AMDGPU_DM_DEFAULT_MIN_BACKLIGHT`
jsg [Fri, 11 Oct 2024 02:59:02 +0000 (02:59 +0000)]
drm/amd/display: Allow backlight to go below `AMDGPU_DM_DEFAULT_MIN_BACKLIGHT`

From Mario Limonciello
a94ec40b940599b06fad2c9b7533e4b10bc6645c in linux-6.6.y/6.6.55
87d749a6aab73d8069d0345afaa98297816cb220 in mainline linux

2 weeks agodrm/amd/display: Fix system hang while resume with TBT monitor
jsg [Fri, 11 Oct 2024 02:56:45 +0000 (02:56 +0000)]
drm/amd/display: Fix system hang while resume with TBT monitor

From Tom Chung
68d603f467a75618eeae5bfe8af32cda47097010 in linux-6.6.y/6.6.55
52d4e3fb3d340447dcdac0e14ff21a764f326907 in mainline linux

2 weeks agodrm/amd/display: Add HDR workaround for specific eDP
jsg [Fri, 11 Oct 2024 02:54:38 +0000 (02:54 +0000)]
drm/amd/display: Add HDR workaround for specific eDP

From Alex Hung
487f6450bcb920ba1d58954c9e1ab969533b5da8 in linux-6.6.y/6.6.55
05af800704ee7187d9edd461ec90f3679b1c4aba in mainline linux

2 weeks agodrm/sched: Add locking to drm_sched_entity_modify_sched
jsg [Fri, 11 Oct 2024 02:50:17 +0000 (02:50 +0000)]
drm/sched: Add locking to drm_sched_entity_modify_sched

From Tvrtko Ursulin
579a0a84e3c0174f296004ac4af83cd9819b38a9 in linux-6.6.y/6.6.55
4286cc2c953983d44d248c9de1c81d3a9643345c in mainline linux

2 weeks agodrm/i915/gem: fix bitwise and logical AND mixup
jsg [Fri, 11 Oct 2024 02:48:48 +0000 (02:48 +0000)]
drm/i915/gem: fix bitwise and logical AND mixup

From Jani Nikula
451c87d21db61e74379b31369a7e10f41bc3bbba in linux-6.6.y/6.6.55
394b52462020b6cceff1f7f47fdebd03589574f3 in mainline linux

2 weeks agodrm: Consistently use struct drm_mode_rect for FB_DAMAGE_CLIPS
jsg [Fri, 11 Oct 2024 02:47:25 +0000 (02:47 +0000)]
drm: Consistently use struct drm_mode_rect for FB_DAMAGE_CLIPS

From Thomas Zimmermann
c923bc874659f35a216aa3099f18c82572b09416 in linux-6.6.y/6.6.55
8b0d2f61545545ab5eef923ed6e59fc3be2385e0 in mainline linux

2 weeks agodrm/amdgpu/gfx10: use rlc safe mode for soft recovery
jsg [Fri, 11 Oct 2024 02:45:38 +0000 (02:45 +0000)]
drm/amdgpu/gfx10: use rlc safe mode for soft recovery

From Alex Deucher
4298813a43f72f6c8c71aa70a9e32b8fd0ad5f60 in linux-6.6.y/6.6.55
ead60e9c4e29c8574cae1be4fe3af1d9a978fb0f in mainline linux

2 weeks agodrm/amdgpu/gfx11: use rlc safe mode for soft recovery
jsg [Fri, 11 Oct 2024 02:44:18 +0000 (02:44 +0000)]
drm/amdgpu/gfx11: use rlc safe mode for soft recovery

From Alex Deucher
c20cd3d6d26156efbd3ec5b3fb17fae8237eb94b in linux-6.6.y/6.6.55
3f2d35c325534c1b7ac5072173f0dc7ca969dec2 in mainline linux

2 weeks agodrm/amd/pm: ensure the fw_info is not null before using it
jsg [Fri, 11 Oct 2024 02:42:47 +0000 (02:42 +0000)]
drm/amd/pm: ensure the fw_info is not null before using it

From Tim Huang
b511474f49588cdca355ebfce54e7eddbf7b75a5 in linux-6.6.y/6.6.55
186fb12e7a7b038c2710ceb2fb74068f1b5d55a4 in mainline linux

2 weeks agodrm/amdgpu/gfx9: use rlc safe mode for soft recovery
jsg [Fri, 11 Oct 2024 02:40:37 +0000 (02:40 +0000)]
drm/amdgpu/gfx9: use rlc safe mode for soft recovery

From Alex Deucher
3ffbdc977d8008868431edb0195b81dec58944be in linux-6.6.y/6.6.55
3ec2ad7c34c412bd9264cd1ff235d0812be90e82 in mainline linux

2 weeks agodrm/amdgpu: Block MMR_READ IOCTL in reset
jsg [Fri, 11 Oct 2024 02:38:44 +0000 (02:38 +0000)]
drm/amdgpu: Block MMR_READ IOCTL in reset

From Victor Skvortsov
8361e3f7882876d98ba98cae0d3149450dd80912 in linux-6.6.y/6.6.55
9e823f307074c0f82b5f6044943b0086e3079bed in mainline linux

2 weeks agodrm/radeon/r100: Handle unknown family in r100_cp_init_microcode()
jsg [Fri, 11 Oct 2024 02:36:31 +0000 (02:36 +0000)]
drm/radeon/r100: Handle unknown family in r100_cp_init_microcode()

From Geert Uytterhoeven
c474a1a75599f4e1c166f4d1eb510624bd4a83d5 in linux-6.6.y/6.6.55
c6dbab46324b1742b50dc2fb5c1fee2c28129439 in mainline linux

2 weeks agodrm/amdgpu: fix unchecked return value warning for amdgpu_gfx
jsg [Fri, 11 Oct 2024 02:34:46 +0000 (02:34 +0000)]
drm/amdgpu: fix unchecked return value warning for amdgpu_gfx

From Tim Huang
deb78dc859ddba6770186fc0cf59c47487c33c9b in linux-6.6.y/6.6.55
c0277b9d7c2ee9ee5dbc948548984f0fbb861301 in mainline linux

2 weeks agodrm/printer: Allow NULL data in devcoredump printer
jsg [Fri, 11 Oct 2024 02:33:11 +0000 (02:33 +0000)]
drm/printer: Allow NULL data in devcoredump printer

From Matthew Brost
4ee08b4a7201ba0f7f3d52e3840fee92f415b6c5 in linux-6.6.y/6.6.55
53369581dc0c68a5700ed51e1660f44c4b2bb524 in mainline linux

2 weeks agodrm/amd/display: Initialize get_bytes_per_element's default to 1
jsg [Fri, 11 Oct 2024 02:31:39 +0000 (02:31 +0000)]
drm/amd/display: Initialize get_bytes_per_element's default to 1

From Alex Hung
c7630935d9a4986e8c0ed91658a781b7a77d73f7 in linux-6.6.y/6.6.55
4067f4fa0423a89fb19a30b57231b384d77d2610 in mainline linux

2 weeks agodrm/amd/display: Fix index out of bounds in DCN30 color transformation
jsg [Fri, 11 Oct 2024 02:29:43 +0000 (02:29 +0000)]
drm/amd/display: Fix index out of bounds in DCN30 color transformation

From Srinivasan Shanmugam
929506d5671419cffd8d01e9a7f5eae53682a838 in linux-6.6.y/6.6.55
d81873f9e715b72d4f8d391c8eb243946f784dfc in mainline linux

2 weeks agodrm/amd/display: Fix index out of bounds in degamma hardware format translation
jsg [Fri, 11 Oct 2024 02:28:26 +0000 (02:28 +0000)]
drm/amd/display: Fix index out of bounds in degamma hardware format translation

From Srinivasan Shanmugam
122e3a7a8c7bcbe3aacddd6103f67f9f36bed473 in linux-6.6.y/6.6.55
b7e99058eb2e86aabd7a10761e76cae33d22b49f in mainline linux

2 weeks agodrm/amd/display: Fix index out of bounds in DCN30 degamma hardware format translation
jsg [Fri, 11 Oct 2024 02:26:49 +0000 (02:26 +0000)]
drm/amd/display: Fix index out of bounds in DCN30 degamma hardware format translation

From Srinivasan Shanmugam
0d38a0751143afc03faef02d55d31f70374ff843 in linux-6.6.y/6.6.55
bc50b614d59990747dd5aeced9ec22f9258991ff in mainline linux

2 weeks agodrm/amd/display: Check link_res->hpo_dp_link_enc before using it
jsg [Fri, 11 Oct 2024 02:25:18 +0000 (02:25 +0000)]
drm/amd/display: Check link_res->hpo_dp_link_enc before using it

From Alex Hung
be2ca7a2c1561390d28bf2f92654d819659ba510 in linux-6.6.y/6.6.55
0beca868cde8742240cd0038141c30482d2b7eb8 in mainline linux

2 weeks agodrm/amd/display: Check stream before comparing them
jsg [Fri, 11 Oct 2024 02:23:25 +0000 (02:23 +0000)]
drm/amd/display: Check stream before comparing them

From Alex Hung
42d31a33643813cce55ee1ebbad3a2d0d24a08e0 in linux-6.6.y/6.6.55
35ff747c86767937ee1e0ca987545b7eed7a0810 in mainline linux

2 weeks agodrm/amdkfd: Fix resource leak in criu restore queue
jsg [Fri, 11 Oct 2024 02:22:03 +0000 (02:22 +0000)]
drm/amdkfd: Fix resource leak in criu restore queue

From Jesse Zhang
71cfb54e0f0c972b082f1791177b79385eac9d98 in linux-6.6.y/6.6.55
aa47fe8d3595365a935921a90d00bc33ee374728 in mainline linux

2 weeks agodrm/amdgpu: enable gfxoff quirk on HP 705G4
jsg [Fri, 11 Oct 2024 02:20:19 +0000 (02:20 +0000)]
drm/amdgpu: enable gfxoff quirk on HP 705G4

From Peng Liu
fe90214179d5ea295f573039eb1a9f7090d94e3c in linux-6.6.y/6.6.55
2c7795e245d993bcba2f716a8c93a5891ef910c9 in mainline linux

2 weeks agodrm/amdgpu: add raven1 gfxoff quirk
jsg [Fri, 11 Oct 2024 02:18:49 +0000 (02:18 +0000)]
drm/amdgpu: add raven1 gfxoff quirk

From Peng Liu
a3c8cbefce38793ad4ac048aef08643e148bf031 in linux-6.6.y/6.6.55
0126c0ae11e8b52ecfde9d1b174ee2f32d6c3a5d in mainline linux

2 weeks agodrm/amd/display: fix double free issue during amdgpu module unload
jsg [Fri, 11 Oct 2024 02:16:34 +0000 (02:16 +0000)]
drm/amd/display: fix double free issue during amdgpu module unload

From Tim Huang
cf6f3ebd6312d465fee096d1f58089b177c7c67f in linux-6.6.y/6.6.55
20b5a8f9f4670a8503aa9fa95ca632e77c6bf55d in mainline linux

2 weeks agodrm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update...
jsg [Fri, 11 Oct 2024 02:15:02 +0000 (02:15 +0000)]
drm/amd/display: Add null check for 'afb' in amdgpu_dm_plane_handle_cursor_update (v2)

From Srinivasan Shanmugam
75839e2365b666ff4e1b9047e442cab138eac4f6 in linux-6.6.y/6.6.55
cd9e9e0852d501f169aa3bb34e4b413d2eb48c37 in mainline linux

2 weeks agodrm/amd/display: Check null pointers before using dc->clk_mgr
jsg [Fri, 11 Oct 2024 02:13:25 +0000 (02:13 +0000)]
drm/amd/display: Check null pointers before using dc->clk_mgr

From Alex Hung
9641bc4adf8446034e490ed543ae7e9833cfbdf5 in linux-6.6.y/6.6.55
95d9e0803e51d5a24276b7643b244c7477daf463 in mainline linux

2 weeks agodrm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'
jsg [Fri, 11 Oct 2024 02:11:23 +0000 (02:11 +0000)]
drm/amd/display: Handle null 'stream_status' in 'planes_changed_for_existing_stream'

From Srinivasan Shanmugam
4778982c73d6c9f3fdbdbc6b6c8aa18df98251af in linux-6.6.y/6.6.55
8141f21b941710ecebe49220b69822cab3abd23d in mainline linux

2 weeks agodrm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream
jsg [Fri, 11 Oct 2024 02:09:05 +0000 (02:09 +0000)]
drm/amd/display: Add null check for top_pipe_to_program in commit_planes_for_stream

From Srinivasan Shanmugam
e47e563c6f0db7d792a559301862c19ead0dfc2f in linux-6.6.y/6.6.55
66d71a72539e173a9b00ca0b1852cbaa5f5bf1ad in mainline linux

2 weeks agodrm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer
jsg [Fri, 11 Oct 2024 02:06:47 +0000 (02:06 +0000)]
drm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer

From Philip Yang
30ceb873cc2e97348d9da2265b2d1ddf07f682e1 in linux-6.6.y/6.6.55
c86ad39140bbcb9dc75a10046c2221f657e8083b in mainline linux

2 weeks agodrm/amdgpu: disallow multiple BO_HANDLES chunks in one submit
jsg [Fri, 11 Oct 2024 02:04:07 +0000 (02:04 +0000)]
drm/amdgpu: disallow multiple BO_HANDLES chunks in one submit

From Pierre-Eric Pelloux-Prayer
44e4aeaef96b2624b341597b1a8e595c89925892 in linux-6.6.y/6.6.55
fec5f8e8c6bcf83ed7a392801d7b44c5ecfc1e82 in mainline linux

2 weeks agodrm/amdgpu: Fix get each xcp macro
jsg [Fri, 11 Oct 2024 02:02:18 +0000 (02:02 +0000)]
drm/amdgpu: Fix get each xcp macro

From Asad Kamal
7879ad0aa996dc0c66950a6416e0ae227288f362 in linux-6.6.y/6.6.55
ef126c06a98bde1a41303970eb0fc0ac33c3cc02 in mainline linux

2 weeks agoremove unused struct cpu_freq_tbl
jsg [Thu, 10 Oct 2024 23:15:27 +0000 (23:15 +0000)]
remove unused struct cpu_freq_tbl

2 weeks agosysctl.2: NET_RT_DUMP defaults to the current rtable
lucas [Thu, 10 Oct 2024 22:21:05 +0000 (22:21 +0000)]
sysctl.2: NET_RT_DUMP defaults to the current rtable

2 weeks agoRemove the gazillion of macros to get fields from curcpu(), and use
miod [Thu, 10 Oct 2024 19:33:05 +0000 (19:33 +0000)]
Remove the gazillion of macros to get fields from curcpu(), and use
relative addressing from the register holding the value of curcpu() instead.
No functional change, but shaves a few bytes of code on MULTIPROCESSOR kernels.

2 weeks agoAdd test for the various authentication config options.
claudio [Thu, 10 Oct 2024 14:02:47 +0000 (14:02 +0000)]
Add test for the various authentication config options.

2 weeks agoAdd a sixel_support format variable which is 1 if SIXEL is supported
nicm [Thu, 10 Oct 2024 10:41:33 +0000 (10:41 +0000)]
Add a sixel_support format variable which is 1 if SIXEL is supported
(always 0 on OpenBSD), requested by Misaki Masa in GitHub issue 4177

2 weeks agoPrint the session id (PID of the session leader) instead of a pointer.
claudio [Thu, 10 Oct 2024 10:24:14 +0000 (10:24 +0000)]
Print the session id (PID of the session leader) instead of a pointer.

Pointers are only visible when run as superuser. Also in most cases
you want to know which process is the session leader and which process
groups belong together. So it is better to print the session id.
OK deraadt@ (long time ago)

2 weeks agoAlways print account URI on first creation of an account key.
florian [Thu, 10 Oct 2024 09:39:35 +0000 (09:39 +0000)]
Always print account URI on first creation of an account key.

This was hidden behind -v but it seems useful to always have this when
creating a new account.

As sthen points out in his previous commit:
This is useful if you want to set a CAA DNS record restricting
issuance to a specific user account.

OK deraadt

2 weeks agoRemove unused CONF_imodule struct members and accessors
tb [Thu, 10 Oct 2024 06:51:22 +0000 (06:51 +0000)]
Remove unused CONF_imodule struct members and accessors

ok beck jsing

2 weeks agoneuter the tun/tap ioctls that try and modify interface flags.
dlg [Thu, 10 Oct 2024 06:50:58 +0000 (06:50 +0000)]
neuter the tun/tap ioctls that try and modify interface flags.

historically there was just tun(4) that supported both layer 3 p2p
and ethernet modes, but had to be reconfigured at runtime by userland
to properly change the interface type and interface flags. this is
obviously not a great idea, mostly because a lot of stack behaviour
around address management makes assumptions based on these parameters,
and changing them at runtime confuses things.

splitting tun so ethernet was handled by a specific tap(4) driver
was a first step at locking this down. this takes a further step
by restricting userlands ability to reconfigure the interface flags,
specifically IFF_BROADCAST, IFF_MULTICAST, and IFF_POINTOPOINT.

this change lets userland pass those values via the ioctls, but
only if they match the current set of flags on the interface. these
flags are set appropriate for the type of interface when it's
created, but should not be changed afterwards.

nothing in base uses these ioctls, so the only fall out will be
from ports doing weird things.

ok claudio@ kn@

2 weeks agoallow MSI with the QEMU default pc-i440fx machine
jsg [Thu, 10 Oct 2024 06:00:42 +0000 (06:00 +0000)]
allow MSI with the QEMU default pc-i440fx machine

This makes it possible to use MSI for virtual functions of Intel network
devices without having to specify the q35 machine.

QEMU is detected by testing for the Qumranet pci subsystem vendor id,
suggested by sf@.  MSI previously wasn't enabled as 82441FX is in the list
of excluded devices.

Initial patch from Yuichiro NAITO. ok yasuoka@ sf@

2 weeks agoallow MSI with the QEMU default pc-i440fx machine
jsg [Thu, 10 Oct 2024 05:51:23 +0000 (05:51 +0000)]
allow MSI with the QEMU default pc-i440fx machine

This makes it possible to use MSI for virtual functions of Intel network
devices without having to specify the q35 machine.

QEMU is detected by testing for the Qumranet pci subsystem vendor id,
suggested by sf@.  MSI previously wasn't enabled as i440fx models a machine
from 1996 with ACPI 1.0, and MSI is only enabled for ACPI >= 2.0.

Initial patch from Yuichiro NAITO. ok yasuoka@ sf@

2 weeks agoremove unused agp_softc variables
jsg [Thu, 10 Oct 2024 03:36:10 +0000 (03:36 +0000)]
remove unused agp_softc variables

2 weeks agoremove unused defines
jsg [Thu, 10 Oct 2024 00:41:01 +0000 (00:41 +0000)]
remove unused defines

2 weeks agoremove unused struct agp_memory_info
jsg [Thu, 10 Oct 2024 00:30:34 +0000 (00:30 +0000)]
remove unused struct agp_memory_info

2 weeks agoGet trust anchor via unbound-checkconf(8)
kn [Wed, 9 Oct 2024 15:42:56 +0000 (15:42 +0000)]
Get trust anchor via unbound-checkconf(8)

This tool knows our default config path and '-o auto-trust-anchor-file'
prints the actually set path, if any, regardless of whether exists.

Use that to generate it rather than a best-effort grep/hardcoded path.

OK sthen

2 weeks agoAdd regress test that sends a SIGSTOP to a child whit its mainproc gone.
claudio [Wed, 9 Oct 2024 12:59:59 +0000 (12:59 +0000)]
Add regress test that sends a SIGSTOP to a child whit its mainproc gone.
Right now this fails since dowait6() depends on ps_mainproc for this.

2 weeks agoRemove SSL_R_TRIED_TO_USE_UNSUPPORTED_CIPHER
tb [Wed, 9 Oct 2024 10:27:52 +0000 (10:27 +0000)]
Remove SSL_R_TRIED_TO_USE_UNSUPPORTED_CIPHER

Nothing uses this and it collides with ALPN

2 weeks agoMake it possible to configure tcp md5 and ipsec on rtr as well
claudio [Wed, 9 Oct 2024 10:01:29 +0000 (10:01 +0000)]
Make it possible to configure tcp md5 and ipsec on rtr as well

Single out the auth_config yacc rules. Even though this requires an
extra merge_auth_conf() function to handle manual IPsec setups but
even with that this seems like a net gain.

There is no rtr cache that does tcp md5 on OpenBSD so those bits remain
untested for now.
OK tb@

2 weeks agoClear ps_xsig when continuing after a PS_TRACED stop.
claudio [Wed, 9 Oct 2024 08:58:19 +0000 (08:58 +0000)]
Clear ps_xsig when continuing after a PS_TRACED stop.

Also remove the ps_xsig handling in setrunnable() it is in the wrong spot
and causes signals to be delivered over and over again.

Attaching to an already stopped process is affected by this. The SIGSTOP
sent by ptrace is now ignored in ptsignal() and as a result gdb will hang
in wait4() until a SIGCONT is delivered to the process. After that all
works as usual.

OK mpi@

2 weeks agoConvert prsignal() into a real function
claudio [Wed, 9 Oct 2024 08:39:49 +0000 (08:39 +0000)]
Convert prsignal() into a real function

Also do not use ps_mainproc as the thread the signal is send to. Sending
a signal to ps_mainproc may not work reliably if it already exited. Use
TAILQ_FIRST(&pr->ps_threads) instead but first check that the process has
not yet entered exit1().

OK mpi@

2 weeks agoAdd missing alert descriptions (taken from RFC 8446)
tb [Wed, 9 Oct 2024 08:22:28 +0000 (08:22 +0000)]
Add missing alert descriptions (taken from RFC 8446)

This is so gross...

2 weeks agoAdd missing alerts to SSL_alert_desc_string{,_long}()
tb [Wed, 9 Oct 2024 08:01:39 +0000 (08:01 +0000)]
Add missing alerts to SSL_alert_desc_string{,_long}()

ok beck

2 weeks agoAdd missing alert errors and error strings
tb [Wed, 9 Oct 2024 08:00:29 +0000 (08:00 +0000)]
Add missing alert errors and error strings

For every TLS alert there needs a corresponding error with error code
having an offset of SSL_AD_REASON_OFFSET (aka 1000), otherwise the error
stack fails to set the reason correctly.

ok beck

2 weeks agoAppease mandoc -Tlint
tb [Wed, 9 Oct 2024 07:25:35 +0000 (07:25 +0000)]
Appease mandoc -Tlint

2 weeks agoAdd .Xr to pkg_check-version(1) in packages-specs(7), as pkg_check-version(1)
semarie [Wed, 9 Oct 2024 07:22:13 +0000 (07:22 +0000)]
Add .Xr to pkg_check-version(1) in packages-specs(7), as pkg_check-version(1)
can be used to verify the ordering of package names.

ok tb@

3 weeks agocorrect indentation
jsg [Wed, 9 Oct 2024 01:52:11 +0000 (01:52 +0000)]
correct indentation

3 weeks agomake attachments use pre-existing activate functions; ok deraadt@
jsg [Wed, 9 Oct 2024 00:38:25 +0000 (00:38 +0000)]
make attachments use pre-existing activate functions; ok deraadt@

3 weeks agoRelax DMA restrictions on ehci(4) and xhci(4) controllers that can do
kettenis [Tue, 8 Oct 2024 19:42:31 +0000 (19:42 +0000)]
Relax DMA restrictions on ehci(4) and xhci(4) controllers that can do
64-bit DMA.

ok mpi@, mlarkin@

3 weeks agoAdd the BUS_DMA_64BIT flag to bus_dmamem_alloc(9) calls since NVMe devices
kettenis [Tue, 8 Oct 2024 19:41:23 +0000 (19:41 +0000)]
Add the BUS_DMA_64BIT flag to bus_dmamem_alloc(9) calls since NVMe devices
can do 64-bit DMA.

ok mpi@, mlarkin@

3 weeks agoMake bus_dmamem_alloc(9) recognize the BUS_DMA_64BIT flag and interpret
kettenis [Tue, 8 Oct 2024 19:40:00 +0000 (19:40 +0000)]
Make bus_dmamem_alloc(9) recognize the BUS_DMA_64BIT flag and interpret
it as a request for memory without any DMA restrictions, which means that
the call is allowed to allocate memory above the 4GB boundary on amd64.

ok mpi@, mlarkin@

3 weeks agoExtend the socket handover from parent to rtr process to also include teardown
claudio [Tue, 8 Oct 2024 12:28:09 +0000 (12:28 +0000)]
Extend the socket handover from parent to rtr process to also include teardown

This is needed to support tcp md5sum and ipsec auth for rtr.
OK tb@