linuxulator/powerpc: fix the argument order of clone()
PowerPC passes tls before child_tidptr. New threads got a pointer to their
TID as thread pointer.
While here make linux_set_upcall() return 0 to the child instead of
copying r1 to r0.
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D62272
linuxulator/powerpc: fix signal delivery
Handlers were always treated as ELFv1 function descriptors and read
directly from userland. ELFv2 handlers are plain addresses and want their
own address in r12.
Also don't overwrite the red zone, honour sigaltstack(), write the back
chain and stop copying a FreeBSD ucontext that nobody reads.
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D62271
linuxulator/powerpc: fix the layout of struct stat and statfs64
st_dev and st_rdev are longs on powerpc64, but l_dev_t is 32-bit.
Everything after st_gid was off by 4 bytes and glibc read st_blksize as
the file size. statfs64 has the same problem with its word-sized fields.
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D62270
linuxulator/powerpc: return positive errno values
sc reports an error with CR0[SO] set and a positive errno in r3. We passed
the negative one like the other architectures do, so libc took every
error for a success. A failed open() became file descriptor 2.
Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D62269
usb: dwc3: treat a dual-role port whose default role is host as a host port
Some device trees (such as Apple Silicon Macs) describe USB-C DWC3
controllers with dr_mode = "otg" and role-switch-default-mode = "host".
Accept that combination during probe so host mode works with unmodified
device trees instead of refusing to attach.
Differential Revision: https://reviews.freebsd.org/D62185
usb: dwc3: derive 32-bit vs 64-bit DMA from DWC3_GHWPARAMS0 AWIDTH
dwc3.c previously passed a hardcoded IS_DMA_32B (1) to xhci_init(),
which pins sc_dma_bits to 32 (and hw.usb.xhci.dma32 can only force
32-bit DMA on, never off).
On platforms with no physical memory below 4GB (such as Apple Silicon,
where DRAM starts at 0x800000000 on t8103), a 32-bit busdma tag cannot
allocate coherent memory or bounce pages and xhci_init() fails.
Read the synthesized address bus width (AWIDTH, bits [31:24]) from
DWC3_GHWPARAMS0 and enable 64-bit DMA only when AWIDTH == 64 on a
64-bit host, leaving 32-bit synthesized DWC3 cores on 32-bit DMA.
xhci_init() still checks XHCI_HCS0_AC64 and hw.usb.xhci.dma32.
Differetial Revision: https://reviews.freebsd.org/D62184
powerpc: zero the FPU save area in set_fpregs() when it was not valid
set_fpregs() marks the saved FPU registers valid and fills in the FP
registers and the FPSCR, which are only half of each of VSR0-31. The
other halves are left alone, and on a thread that hasn't used the FPU
since exec they still hold whatever the previous program left there:
exec only resets pcb_flags, and enable_fpu() zeroes the save area only
when PCB_FPREGS is clear.
So a PT_SETFPREGS on such a thread, even one that just writes back what
PT_GETFPREGS returned, hands the new program VSX register contents of
the program that ran before the exec.
Zero the save area first when it wasn't valid, like enable_fpu() does.
Reviewed by: jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62037
committers-ports: Add mzar and update committer information
Add mzar@ to the ports committers list with philip@,
farrokhi@, and olivier@ as mentors.
Update the Mentor and Mentee Information according
to step 5 of the Committer's Guide.
Update the calendar according to step 10 of the
Committer's Guide.
Approved by: philip, farrokhi, olivier (mentors)
Differential Revision: https://reviews.freebsd.org/D62146
ipfilter: Clear the IP header pointer if m_pullup() fails
Otherwise fin->fin_ip is left pointing into freed memory, and
ipf_pr_ipv4hdr() may end up accessing it. In particular,
ipf_pr_ipv4hdr() checks fin->fin_ip == NULL to decide whether to
short-circuit, in contrast with ipf_pr_ipv6hdr(), which bails if
fin->fin_m == NULL.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D62172
mail/phpmailer7: Update to 7.3.0
A failed SMTP connection now reports the actual reason, such as a
certificate verification error, and the ical part is no longer dropped
from messages with embedded images.
Changelog: https://github.com/PHPMailer/PHPMailer/releases/tag/v7.3.0
Sponsored by: Netzkommune GmbH
www/mod_setenvifplus: Update to 0.41
Cookie encryption moves to AES-GCM, so cookies written by the previous
version can no longer be decrypted.
Sponsored by: Netzkommune GmbH
www/nginx-module-cache-purge: Update to 4.0.2
PURGE now answers in JSON and reports a missing entry as no_match with a
200 where it used to return a 412, so clients keying off the status code
need adjusting. Generation keys and conditional REFRESH are new and off
by default.
Changelog: https://github.com/nginx-modules/ngx_cache_purge/releases/tag/4.0.2
Sponsored by: Netzkommune GmbH
www/nginx-module-vod: Update to 1.11.3
Fixes a path traversal in multi-URI requests, an overflow of the HLS
master playlist, unbounded thumbnail dimensions and an out-of-bounds
write through the track index, all reachable without authentication.
Changelog: https://github.com/dio-az/nginx-vod-module/releases/tag/v1.11.3
Security: f7fd710e-ed73-11f1-9b74-3497f65b111b
Sponsored by: Netzkommune GmbH
x11/plasma6-kwayland-integration: Deprecate, requires only for Qt5
which is unsupported and deprecated.
(cherry picked from commit 6ff1a3fe5ef09c7e0e54a978995758746fb3be1c)
net-im/purple-gowhatsapp: Backport upstream patch
Backport upstream commit 5426ec2e1a to fix the profile-picture
directory mode. The directory for downloaded profile pictures
was created with mode 0x755 instead of 0755, leaving it without
write permission for its owner.
While here, update whatsmeow (to download media whose encrypted hash
equals the plain one), goid and go-strftime to their latest versions.
PR: 301348
Co-Authored-By: Claude Opus 5.5 (effort medium)
KDE: Update KDE Plasma to 6.8.4
Announcement: https://kde.org/announcements/plasma/6/6.8.4
x11-wm/plasma6-kwin:
- Add Xwayland to the build dependencies, configure fails
if Xwayland is not found.