1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-27 23:56:05 +00:00
Commit Graph

243605 Commits

Author SHA1 Message Date
nicm
f3ad7971a2 Ql -> Fl, from arza at arza dot us in GitHub issue 4949. 2026-03-27 08:41:54 +00:00
nicm
f7baf5c87e Add a format flag for bracket paste, from George Nachman in GitHub issue
4951.
2026-03-27 08:40:26 +00:00
job
cdc47337d7 Properly reset accounting in HTTP gzip compression detection
OK tb@
2026-03-27 08:10:46 +00:00
dgl
e75afad489 stat() and access() become "rpath", this is safe because pledge_namei no longer
has a special case for these two system calls. With this change pledge "stdio"
no longer lets user code reach namei().

ok deraadt
2026-03-27 05:15:25 +00:00
deraadt
081c22237c incremental improvement documenting recent changes
ok beck dgl
2026-03-27 05:14:38 +00:00
dgl
30d294c44e Hook up __pledge_open regress. 2026-03-27 05:07:02 +00:00
dgl
69556c7634 Add __pledge_open regress. 2026-03-27 05:06:33 +00:00
hshoexer
019066103c acpidmar(4): Recognize reserved 4-byte IVHD device entry
Otherwise parsing of folling entries is aborted.

While there, fix a debug printf.

ok kettenis@
2026-03-27 03:56:15 +00:00
daniel
45720098d5 shm_open(3): align the type of the mode_t parameter with POSIX
POSIX says that sys/mman.h should also define mode_t which is currently
missing.

With mode_t defined there, the type of the last parameter of the shm_open
function can be changed from __mode_t to mode_t, matching the standard.

Both issues flagged by Sortix os-test.

ok deraadt@, millert@
2026-03-26 21:46:24 +00:00
claudio
2f434a4256 Bump version to 9.1 2026-03-26 19:29:07 +00:00
op
1388771ffa table_proc: ensure the request does not contain newlines 2026-03-26 18:43:53 +00:00
op
3d6043dede reject usernames (or passwords) with line feeds in it
initial diff from philipp (at bureaucracy.de), tweaked by me.
2026-03-26 18:43:40 +00:00
stsp
d0edea5c70 Fix a fatal firmware error during association on non-MIMO iwx(4) devices.
If MIMO is disabled we must not try to configure Tx rates in firmware
which require MIMO. Otherwise we trigger sysassert 0x20101A0D.

Problem reported and fix tested by Kirill Kaplin.
Meaning of sysassert hex code provided by Johannes Berg, thanks!
2026-03-26 15:39:04 +00:00
kirill
dc89590874 sys/iwx: move interface into SCAN after CSA or eCSA/XCSA from AP
Reported by mwpudrtxoe

Input: stsp@

Feedback: phessler@ stsp@ mvs@

OK: phessler@ stsp@
2026-03-26 12:15:48 +00:00
kirill
eb89943cc2 sys/net80211: skip AP which announces CSA or eCSA/XCSA
Reported by mwpudrtxoe

Input: stsp@

Feedback: phessler@ stsp@ mvs@

OK: phessler@ stsp@
2026-03-26 12:15:01 +00:00
jmatthew
596398d5de mention RK3528 support 2026-03-26 06:12:38 +00:00
jmatthew
9c6370df4f Add support for the RK3528 variant of the combo phy, currently only in
PCIe mode, though USB3 may follow later.

corrections from kettenis@ and Hayk Martirosyan
ok kettenis@
2026-03-26 05:59:38 +00:00
dgl
bf91cc2988 Drop PLEDGE_CPATH from SYS_open, the flags passed result in rpath or
wpath pledge always being checked. cpath alone is not enough.

ok deraadt
2026-03-26 05:21:06 +00:00
deraadt
613b296197 fstatat, faccessat, readlinkat, lstat, and __getcwd should not be
permitted by "wpath", they are exclusively in the "wpath" catagory.
discussions with dgl
2026-03-26 00:55:20 +00:00
jsg
f55f49bc63 drm/i915/gt: Check set_default_submission() before deferencing
From Rahul Bukte
cf4b224ffb9a58181be32b64130fc36cf59c3192 in linux-6.18.y/6.18.20
0162ab3220bac870e43e229e6e3024d1a21c3f26 in mainline linux
2026-03-25 23:54:30 +00:00
jsg
1a54a6c701 drm/amd: fix dcn 2.01 check
From Andy Nguyen
c51a5319bf6551a926f02ec3bdc07ff12d06e2f5 in linux-6.18.y/6.18.20
39f44f54afa58661ecae9c27e15f5dbce2372892 in mainline linux
2026-03-25 23:52:19 +00:00
jsg
bf229d989d drm/amd/display: Fix DisplayID not-found handling in parse_edid_displayid_vrr()
From Srinivasan Shanmugam
430334e9e4e815b0541f8337c2dbd49d7d3b55fa in linux-6.18.y/6.18.20
2323b019651ad81c20a0f7f817c63392b3110652 in mainline linux
2026-03-25 23:50:06 +00:00
jsg
9dcb779ade drm/i915/psr: Compute PSR entry_setup_frames into intel_crtc_state
From Jouni Hogander
9691c50fd5dd14ecb88ce8e80a8632cb7471c052 in linux-6.18.y/6.18.20
7caac659a837af9fd4cad85be851982b88859484 in mainline linux
2026-03-25 23:47:39 +00:00
jsg
5aafb9241b drm/i915/dmc: Fix an unlikely NULL pointer deference at probe
From Imre Deak
0b35d11fbbcfd1079c8489282a341944228835e3 in linux-6.18.y/6.18.20
ac57eb3b7d2ad649025b5a0fa207315f755ac4f6 in mainline linux
2026-03-25 23:44:32 +00:00
jsg
d4530f2f4c drm/amdgpu: Limit BO list entry count to prevent resource exhaustion
From Jesse.Zhang
5ce4a38e6c2488949e373d5066303f9c128db614 in linux-6.18.y/6.18.20
6270b1a5dab94665d7adce3dc78bc9066ed28bdd in mainline linux
2026-03-25 23:42:23 +00:00
jsg
4bf88bbb0b drm/amdgpu: apply state adjust rules to some additional HAINAN vairants
From Alex Deucher
73908f65f5cc32f9da07c5df0f58d1fd5ed5834e in linux-6.18.y/6.18.20
9787f7da186ee8143b7b6d914cfa0b6e7fee2648 in mainline linux
2026-03-25 23:37:59 +00:00
jsg
5c5da28dcf drm/radeon: apply state adjust rules to some additional HAINAN vairants
From Alex Deucher
c18eef45af03655e1c93b6438a357ceaeb567200 in linux-6.18.y/6.18.20
86650ee2241ff84207eaa298ab318533f3c21a38 in mainline linux
2026-03-25 23:36:20 +00:00
jsg
cec8f58773 drm/amdgpu/mmhub4.1.0: add bounds checking for cid
From Alex Deucher
7687403d658054027c60654cf71fc29ad90c9e1d in linux-6.18.y/6.18.20
3cdd405831d8cc50a5eae086403402697bb98a4a in mainline linux
2026-03-25 23:33:57 +00:00
jsg
173a72450c drm/amdgpu/mmhub3.0: add bounds checking for cid
From Alex Deucher
72365be44cc7e2cf05514e0dafcd7664f3267358 in linux-6.18.y/6.18.20
cdb82ecbeccb55fae75a3c956b605f7801a30db1 in mainline linux
2026-03-25 23:32:12 +00:00
jsg
81b944a8f8 drm/amdgpu/mmhub3.0.2: add bounds checking for cid
From Alex Deucher
4b9e5676db815341b0c21006250845e5a0161afa in linux-6.18.y/6.18.20
e5e6d67b1ce9764e67aef2d0eef9911af53ad99a in mainline linux
2026-03-25 23:30:48 +00:00
jsg
a87dfe1590 drm/amdgpu/mmhub3.0.1: add bounds checking for cid
From Alex Deucher
56f0473d3c6314502fdcf76e574985a585aa707d in linux-6.18.y/6.18.20
5d4e88bcfef29569a1db224ef15e28c603666c6d in mainline linux
2026-03-25 23:29:33 +00:00
jsg
1148f5939d drm/amdgpu/mmhub2.3: add bounds checking for cid
From Alex Deucher
603db8a36517ce318b213cf1740b7d1f0f6b233b in linux-6.18.y/6.18.20
a54403a534972af5d9ba5aaa3bb6ead612500ec6 in mainline linux
2026-03-25 23:28:10 +00:00
jsg
ee6f1d582d drm/amdgpu/mmhub2.0: add bounds checking for cid
From Alex Deucher
2c4eea0eba197b036804cf4c76bd9b70aa02f30a in linux-6.18.y/6.18.20
0b26edac4ac5535df1f63e6e8ab44c24fe1acad7 in mainline linux
2026-03-25 23:26:44 +00:00
jsg
00c02f8868 drm/amdgpu/gmc9.0: add bounds checking for cid
From Alex Deucher
3256b95b2d3c472bccee9a6ba83e883a540c1e83 in linux-6.18.y/6.18.20
f39e1270277f4b06db0b2c6ec9405b6dd766fb13 in mainline linux
2026-03-25 23:24:14 +00:00
jsg
84b7e477fd drm/amd/display: Wrap dcn32_override_min_req_memclk() in DC_FP_{START, END}
From Xi Ruoyao
e25fff4a9eac969a580eaac86b650d355ac9a91c in linux-6.18.y/6.18.20
ebe82c6e75cfc547154d0fd843b0dd6cca3d548f in mainline linux
2026-03-25 23:22:48 +00:00
jsg
3d0374cbf3 drm: Fix use-after-free on framebuffers and property blobs when calling drm_dev_unplug
From Maarten Lankhorst
074d06d3724ccab0c5bb779db594a82b6405e501 in linux-6.18.y/6.18.20
6bee098b91417654703e17eb5c1822c6dfd0c01d in mainline linux
2026-03-25 23:20:35 +00:00
jsg
9a6fb9a4d2 drm/i915/vrr: Configure VRR timings after enabling TRANS_DDI_FUNC_CTL
From Ville Syrjala
8a7d29b8bda144d44e61df1b2705b1d4378f4e44 in linux-6.18.y/6.18.20
237aab549676288d9255bb8dcc284738e56eaa31 in mainline linux
2026-03-25 23:17:42 +00:00
jsg
d06a33969a drm/i915/vrr: Move HAS_VRR() check into intel_vrr_set_transcoder_timings()
From Ville Syrjala
1aa7745b97fda5c099b0a3321a45129430afa14c in linux-6.18.y/6.18.20
78ea8eb5b6235b3ef68fa0fb8ffe0b3b490baf38 in mainline linux
2026-03-25 23:15:02 +00:00
jsg
da96c44cc2 drm/i915/psr: Write DSC parameters on Selective Update in ET mode
From Jouni Hogander
4ab7c9fa0a477ebe4eb40847f85bfbcb70dfd653 in linux-6.18.y/6.18.20
5923a6e0459fdd3edac4ad5abccb24d777d8f1b6 in mainline linux
2026-03-25 23:12:30 +00:00
jsg
3e149d2cd1 drm/i915/dsc: Add helper for writing DSC Selective Update ET parameters
From Jouni Hogander
a5cdbbc77147047219e7f35da4c778d30778e754 in linux-6.18.y/6.18.20
bb5f1cd10101c2567bff4d0e760b74aee7c42f44 in mainline linux
2026-03-25 23:09:56 +00:00
jsg
8500e6a1b0 drm/i915/dsc: Add Selective Update register definitions
From Jouni Hogander
291d19d586a5af8d24eaef71e53509b5e093c2ee in linux-6.18.y/6.18.20
c2c79c6d5b939ae8a42ddb884f576bddae685672 in mainline linux
2026-03-25 23:07:05 +00:00
kn
35138522e9 Simplify ro/rw overwrite in munge_fstab()
The installer mounts every 'ffs' fstab(5) entry 'rw' and all else 'ro',
regardless of their mode in the file.

Merge the two symmetrical sed invocations swapping besaid options into one
by using a variable for the desired mode.

OK afresh1 krw
2026-03-25 21:24:29 +00:00
kn
01ab9fa9b6 drop in-line comments repeating munge_fstab() function description
OK afresh1 krw
2026-03-25 21:07:46 +00:00
nicm
94c603bf46 Use \- for hyphens in tmux.1 to cause newer groff versions to render
them correctly (ASCII hyphen rather than Unicode) which aids copy and
paste. From Keith Thompson in GitHub issue 4948.
2026-03-25 10:08:50 +00:00
deraadt
ee1bf64f5b In the namei callback for __pledge_open() invert the logic of checking
pledge/namei modes and then checking for the path.  Now, first
identify the path with array bsearch then check the pledge/namei modes.
Since this is __pledge_open(), if the path is not known, terminate with
an EACCES abort.  If the path is known but the pledge/namei modes don't
suggest an unveil bypass, allow the code to fallthrough to the rpath/wpath
checks, and then back into namei for unveil validation.
ok dgl
2026-03-25 05:14:10 +00:00
deraadt
0d3e0c9264 Wrap the pledge-related sysctl code in SMALL_KERNEL, because it is big
and the ramdisk does not need it
ok mlarkin, discussed with dgl
2026-03-25 05:05:41 +00:00
dtucker
2734781db3 Use ~/.shosts for Hostbased test. 2026-03-24 12:31:35 +00:00
dtucker
87dc1fa973 Ensure known_hosts file exists when setting up. 2026-03-24 10:21:14 +00:00
cludwig
7348976a6a dt: Deny enabling probes after recording starts
Enabling more probes after recording starts using the DTIOCRECORD ioctl
only puts these probes onto the ds_pcbs list, but not on the dtp_pcbs.
Stopping the recording afterwards crashes.

Do not allow to add more probes after recording started. For symmetry,
also do not allow to remove probes either.

ok mpi@

Reported-by: syzbot+1ee7b3d649b3fd543300@syzkaller.appspotmail.com
2026-03-24 09:11:56 +00:00
deraadt
75dd82699d the array must be sorted for bsearch 2026-03-24 05:48:09 +00:00