Fix swpgonly leak in uvm_swap_dropcluster()
from renaud@; OK kettenis@
Fix typo in my last commit
from renaud@
this is errata/8.0/024_swpgonly.patch.sig
sys: protect special device locks during vnode teardown
Special device advisory locking can race with vnode teardown and access
freed specinfo.
OpenAI reported the problem and supplied an initial patch; that patch
introduced a NULL dereference window by clearing v_specinfo while
leaving the vnode typed VCHR or VBLK across a sleep; it also left
teardown exposed to vnode recycling during the drain.
In other words the initial patch addressed one race, introduced another,
and left the vnode lifetime problem unfixed.
Here the reworked approach with large colaboration with claudio@ with
talks and inputs from deraadt@ and beck@.
Resolve and detach specinfo under lockf_lock, interrupt all pending
requests, and retain its storage until the drain completes. Keep VXLOCK
and the temporary vnode reference through teardown; set VBAD before
[5 lines not shown]
In recv_report first check that the report is sensible via check_report
and then during parse copy only the bytes from the packet needed.
The netmask is stored as 3 bytes with the high byte being 0xff by default.
Also the netid depend on the size of the netmask and needs to be pulled
out of the packet with care.
sys: protect special device locks during vnode teardown
Special device advisory locking can race with vnode teardown and access
freed specinfo.
OpenAI reported the problem and supplied an initial patch; that patch
introduced a NULL dereference window by clearing v_specinfo while
leaving the vnode typed VCHR or VBLK across a sleep; it also left
teardown exposed to vnode recycling during the drain.
In other words the initial patch addressed one race, introduced another,
and left the vnode lifetime problem unfixed.
Here the reworked approach with large colaboration with claudio@ with
talks and inputs from deraadt@ and beck@.
Resolve and detach specinfo under lockf_lock, interrupt all pending
requests, and retain its storage until the drain completes. Keep VXLOCK
and the temporary vnode reference through teardown; set VBAD before
[5 lines not shown]
Move sysctl_securelevel() out of unnecessary vslock. This path is
mp-safe, but the new `securelevel' value should be installed with
kernel lock held because all corresponding read paths are mp-safe
yet.
ok kirill
vio(4): check for csum offload before using LRO
We need a double check here for this illegal behavior,
cause not all Hypervisor follow the VirtIO specification.
And Linux has this check, too.
Reported and tested by Ali Raheem.
ok stsp@
discussed with sf@
Instead of failing hard when encountering ESPI interrupts simply
ignore them for now until we have proper ESPI support.
This fixes ACPI boot on Snapdragon X2 SoCs where the ACPI advertises
ESPI interrupts for the SMMUv3. smmu(4) still works without those
interrupts but won't receive fault or error events.
Tested on a HP Elitebook X G2q
ok phessler@ kettenis@
Disable SMMUv2 on Snapdragon X2 machines for now as it seems to be broken.
We can't reuse sc_is_qcom since that enables extra quirks we only need on
previous Qualcomm SoCs.
ok kettenis@ phessler@
Attach smmu(4) to SMMUv3 IORT nodes. SMMUv3 support is already
implemented and works, this makes the code actually reachable in
ACPI mode.
tested by kettenis@ claudio@
ok phessler@ kettenis@
remove ext/openssl patches that have had similar changes committed upstream
on the PHP-8.6 branch or are being discussed in https://github.com/php/php-src/issues/25667
retain the part to enable seclevel
check certificate critical options when verifying sshsig signatures.
Only a single critical option is supported "verify-required" which
required FIDO signatures to assert that the user was verified (e.g.
PIN or biometric). Add support for checking this too.
Anthropic ANT-2026-J7HFTTZ6
don't run ~/.ssh/rc and co for forced command and internal-sftp,
even if PermitUserRC is enabled, avoiding /proc based attacks on
some systems
Anthropic ANT-2026-IG416NNU
when choosing a channel for the server to sent ClientAlive probes to,
disregard channels that are in half-close state, as these won't
reply can cause the probes to never get a response. This could be used
to construct a DoS in fairly farfetched circumstances.
Anthropic ANT-2026-IFTX0I2F
Schedule client/server alive checked based on the time the last
packet was received rather than then the last data was recevied.
Avoids an attack where an attacker sends a corrupt packet length
that (probably) gets interpreted as a large packet, then dribbles
in data slowly and one byte at a time to prevent the alive timer
for killing the connection as unresponsible. Unlikely, yeah - I know.
Anthropic ANT-2026-HQ3U6925
close a path where a client that triggered SSH_BUG_SIGTYPE could
use RSA/SHA1 is spite of PubkeyAcceptedAlgorithms disallowing its
use. For this circumvention to be successful, a RSA key must have been
configured for the target user.
This comes at the cost of breaking bug-compatibility with OpenSSH <7.2
when used with ssh-agent.
Anthropic ANT-2026-H3ABLIMM