LinuxKPI: Add in_compat_syscall()
Return true when the current process is a 32-bit process running on a
64-bit kernel, matching the Linux semantics. On native 32-bit kernels
there is no compat ABI, so always return false.
Reviewed by: wulf
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61900
www/openresty: Security update to 1.31.9.1
The bundled nginx core moves to 1.31.9 and closes ten CVEs. The fix for
excessive CPU usage with TLS 1.3 early data is not part of that core and
is carried as a patch.
The encrypted_session module moves to 0.11, which rejects tokens issued
by earlier versions.
Changelog: https://openresty.org/en/changelog-1031009.html
Security: 573460ab-e8a5-11f1-9b74-3497f65b111b
Security: cee7773d-e7dd-11f1-9b74-3497f65b111b
With hat: ports-secteam
Sponsored by: Netzkommune GmbH
www/freenginx: Security update to 1.30.3
Fixes memory corruption and use-after-free issues in HTTP/2, HTTP/3 and
the mail proxy module.
Changelog: https://freenginx.org/en/CHANGES-1.30
Security: 5734413b-e8a5-11f1-9b74-3497f65b111b
With hat: ports-secteam
Sponsored by: Netzkommune GmbH
www/openresty: Security update to 1.31.9.1
The bundled nginx core moves to 1.31.9 and closes ten CVEs. The fix for
excessive CPU usage with TLS 1.3 early data is not part of that core and
is carried as a patch.
The encrypted_session module moves to 0.11, which rejects tokens issued
by earlier versions.
Changelog: https://openresty.org/en/changelog-1031009.html
Security: 573460ab-e8a5-11f1-9b74-3497f65b111b
Security: cee7773d-e7dd-11f1-9b74-3497f65b111b
With hat: ports-secteam
Sponsored by: Netzkommune GmbH
www/freenginx: Security update to 1.30.3
Fixes memory corruption and use-after-free issues in HTTP/2, HTTP/3 and
the mail proxy module.
Changelog: https://freenginx.org/en/CHANGES-1.30
Security: 5734413b-e8a5-11f1-9b74-3497f65b111b
With hat: ports-secteam
Sponsored by: Netzkommune GmbH
emulators/libretro-np2kai: Fix build on i386
On i386, MEMCALL expands to __attribute__((fastcall)), which clang
rejects on functions declared without a prototype. Declare
tlb_flush() and tlb_flush_all() with (void).
The two upstream files have CRLF line endings, so convert them with
dos2unix before patching. No PORTREVISION bump: the amd64 package is
unchanged.
See upstream PR: https://github.com/AZO234/NP2kai/pull/227
PR: 301109
Reported by: pkg-fallout, maintainer
usb: Disentangle SMC and SMSC
In the 1990s Standard Microsystems Corporation used the name SMC and
produced complete NICs like the SMC EtherEZ 8416BTA. It appears this
part of the business became SMC Networks and was later acquired by
Accton Technology.
By the early 2000s Standard Microsystems Corporation sold network ICs
(not complete NICs) and exclusively used the short name SMSC. SMSC was
acquired by Microchip in 2012.
We originally obtained usbdevs from NetBSD, and this update matches the
SMC / SMSC IDs currently in NetBSD.
Reviewed by: bz, adrian
Differential Revision: https://reviews.freebsd.org/D61724
kern_linker: Fix struct version mismatch
The kldstat(2) syscall supports two different structures, identified by
their size, which the application stores in the version field before the
call. Since one is a prefix of the other, instead of calling different
functions to fill each one in like modstat(2) does, we fill in the
larger of the two and simply don't copy out the extra fields if the
smaller one was requested. As a side effect, we failed to fill out the
version field in either case. This causes application code that sets
the version field once and calls kldstat(2) repeatedly to fail since the
version field is now incorrect for subsequent calls, whereas the same
pattern works fine for modstat(2) because it copies the same version
value back out. Fix this by setting the version field immediately
before copying the struct out.
While here, amend the manual pages for both kldstat(2) and modstat(2) to
clarify that the version field is unchanged on return and remove bad
advice about rebuilding world if either syscall returns EINVAL.
[3 lines not shown]
print/texlive-texmf*: Fix a longstanding shebang problem
Reviewed by: bofh
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D62027
usr.bin/lockf/tests: Add require.progs="kdump"
This test requires kdump to function today. kdump can be omitted from
the system though via the build knob `MK_KDUMP != 0.
Add the require.progs constraint to check for kdump, so catch this
particular scenario and react accordingly.
MFC after: 1 week
Revision URI: https://reviews.freebsd.org/D62041
textproc/py-pytkdocs: Deprecate/Set to expire
* Upstream repo archived on 20th October 2026.
* Bump PORTREVISION to force a rebuild to inform users about
the deprecation.
MFH: 2026Q4
(cherry picked from commit 580c830f52809ccbd76f1d90f271f19330b93aa0)
www/py-django-autocomplete-light: Update to 5.0.0
3.8.2 imports django.contrib.admin.utils.lookup_needs_distinct, which
Django 4.0 removed, so the package fails to import. 5.0.0 targets
Django 5.2 (the tree's version).
* Switch to the PEP517 build framework.
* Depend on Django; the port had no RUN_DEPENDS.
While here, add "python" to CATEGORIES, add "concurrent" to USE_PYTHON
and switch to the more preferred DISTVERSION.
PR: 299878
Approved by: maintainer timeout (3+ weeks)
MFH: 2026Q4
Co-Authored-By: Kai Knoblich <kai at freebsd.org>
(cherry picked from commit 293763c0a2570528807b78b34a6a1afe73193fdd)
textproc/py-mkdocstrings-python-legacy: Deprecate/Set to expire
* Upstream repo archived on 26th September 2026.
* Bump PORTREVISION to force a rebuild to inform users about
the deprecation.
MFH: 2026Q4
(cherry picked from commit f536dfa32a2192202ef002ef8a430fa6474b3224)
devel/py-celery-progress: Update to 0.5
0.1.1 imports django.conf.urls.url (removed in Django 4.0) in
websockets/routing.py, so that module fails to import with the Django
5.2 in the tree. 0.5 falls back to django.urls.re_path.
* Fix COMMENT, WWW and pkg-descr (they described py-celery).
* Drop RUN_DEPENDS on databases/redis, net/rabbitmq and www/websocat,
which the package never uses.
* Add options WEBSOCKETS (default, www/py-channels) and REDIS
(www/py-channels-redis) for the upstream extras.
* Build with pep517 (the sdist is now celery_progress-*).
* setup.py's data_files installs the JavaScript files as a top-level
static/ directory under the install prefix; they are already
installed as package data in celery_progress/static/, where Django
[11 lines not shown]
dummynet: do not log when a listing fills the buffer
When userland lists a range of objects, dummynet_get() sizes the
buffer from the request, and ipfw(8) and dnctl(8) retry with a bigger
one if the reply may be truncated. copy_obj() and copy_obj_q() still
log every stop as an error, so "ipfw queue N show" with many dynamic
queues prints "copy_obj_q ERROR ... have 16 need 96" although the
listing is complete.
Keep the error for a bad object and log the full buffer only at debug
level 3 and above.
PR: 290420
Reported by: dimka at dz.dn.ua
Reviewed by: kp
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision: https://reviews.freebsd.org/D61964
pf: protect against the ethernet rule going away during DIOCGETETHRULE
We release the rules lock during DIOCGETETHRULE, but wait to clear the
counters until after we've unlocked. This risks the rule being freed at
the point where we reset the counters. Move the counter clearing to be
covered by the lock.
Reported by: llm-postcr
Fixes: 30087aa2e00a ("pf: Support clearing ether counters")
Sponsored by: Rubicon Communications, LLC ("Netgate")
pf: hold PF_RULES_xLOCK when calling pf_find_keth_ruleset()
The ethernet rules are protected entirely by the PF_RULES_LOCK, not by
epoch. Update DIOCGETETHRULESETS, DIOCGETETHRULESET, DIOCADDETHRULE and
DIOCGETETHRULES to account for this.
Fixes: c5131afee39b ("pf: add anchor support for ether rules")
Sponsored by: Rubicon Communications, LLC ("Netgate")