sys/powerpc64: encode PTCR PATS correctly
The PTCR PATS field stores log2(partition table size) - 12. Since
PATMEMSZ is a power of two, ffs(PATMEMSZ) is log2(PATMEMSZ) + 1; the
old expression wrote 5 for the 64 KiB table, describing 128 KiB to
Book3S v3 hardware.
Use ffs(PATMEMSZ) - 1 - 12 to express the intended log2 calculation
and encode the 64 KiB partition table as PATS == 4.
Discussed with kettenis@
Tested and OK: gkoehler@
properly handle qwx VIF DMA map allocation failures at attach time
qwx_attach() runs as a config_mountroot hook, which means errors returned
from this function will be ignored. Since returning errors is pointless,
change this function's return value type to void.
There is a theoretical risk that allocating the virtual interface's DMA
maps will fail. Allocate these maps earlier and avoid attaching the driver
if the maps cannot be allocated.
replace qwx virtual interface list with a single interface structure
Fixes use of stale pointers on the vif list which caused crashes.
We do not support multiple interfaces per driver in our net80211 stack,
so this list inherited from Linux was pointless for us anyway.
Tested by ajacoutot, phessler, kettenis, gnezdo, krw, and myself.
ok phessler@ kettenis@ gnezdo@
Prevent display-panes from shifting the active pane scroll position by
copying the screen from before zoom, also do not let resize consume
blank lines.
vmd(8): disambiguate fd variable naming
Split out fd tracking in the global "struct vmd" instance with
explicit names to not reuse the same one for storing semantically
different fds. Some vmd processes were using .vmd_fd to track the
open /dev/vmm while another used it for a socket(2) instance for
ioctls. This makes it hard to reason about and future changes
harder to review.
No intended behavioral change.
Testing help from Mischa Peters.
ok @hshoexer
Remove the active-pane flag for now, there are some gaps in how this
works and I don't like it. May come back in a different form (maybe just
for windows).
Remove redundant BIO_write() length assertions in b64_write()
b64_write() asserted that BIO_write() does not return more bytes than
requested in two places. Other BIO_write() call sites do not make this
check, and there is no special handling here that depends on asserting this
condition.
ok tb@ beck@ joshua@
Remove stale SECURE RENEGOTIATION reference
SSL_CTX_set_options(3) no longer has a SECURE RENEGOTIATION section,
but SSL_OP_LEGACY_SERVER_CONNECT still referenced it. Replace the
dangling cross reference with a note that the option is no longer set
by default.
ok tb@ beck@
Change %% to escape single quotes (%1 remains with no quoting and %%
with double quotes) to avoid a single quote being able to terminate
quoted sections of commands. Fixes unexpected behaviour with session
names containing single quotes reported by Aliz Hammond.
Update to tzdata2026c from https://github.com/JodaOrg/global-tz
Major changes:
o Alberta moved to permanent -06 on 2026-06-18
o Morocco moves to permanent +00 on 2026-09-20
Make dtls1_do_write_ccs() self contained.
A ChangeCipherSpec message is always the same single byte. Make
dtls1_do_write_ccs() know how to send this message, which avoids the use of
buffers and needing to keep copies for retransmission.
ok kenjiro@ tb@
Clean up sequence number and message header handling.
dtls1_set_message_header() is only called in one place - inline the write
handshake sequence number handling. Rename dtls1_set_message_header_int()
to dtls1_set_message_header().
The dtls12_write_ccs() code does not use handshake sequence numbers (since
they're not handshake messages) - stop pretending that it does.
ok kenjiro@ tb@