www/mozilla/mozilla.port.mk: fixup MOZILLA_USE_MACH when PORTS_PRIVSEP=Yes.
do-{build,configure,install} are already run as _pbuild by bsd.port.mk
and _pbuild cant run doas, so drop erroneous exec ${_PBUILD}.
glob.c: Fix potential out-of-bounds write for GLOB_NOSPACE error
When the GLOB_LIMIT option is specified, glob returns the GLOB_NOSPACE
error when hitting either the GLOB_LIMIT_STAT or GLOB_LIMIT_READDIR
limits. Before returning the error, glob stored the path separator
and NUL terminating the result before returning. If we are at the
very end of the path buffer, it is possible for this to write past
the end of the buffer. Change this to just return GLOB_NOSPACE
when the limit is reached without writing the path separator or NUL
terminator.
OK djm@
Reported by ozgun kultekin
Processing finished only if both the entity queue and the lowprio queue
are empty. Adjust the check at the end of the main event loop.
Pointed out by Ties de Kock
OK tb@
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