mail/mutt: Move HCACHE_LMDB to devel/lmdb
- Change HCACHE_LMDB to devel/lmdb.
- See 0cea189105efe0/pkg info -D lmdb for migration of database files.
- Move PORTREVISION for portclippy.
PR: 300053
pf: fix sctp normalisation cleanup
If we fail to allocate the dst scrub structure we should free the src
one too, but we passed src rather than src->scrub.
Reported by: llm-postcr
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit e53632189f09d7b5c6664fef51cbe4429e4b3243)
pf tests: test pfTablesTblCount in snmp_pf
This works fine on main, but not on stable/15 so add a test.
PR: 300818
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 5131335c7d48eaec427aa9ed27862ca56e3e95bc)
dummynet: validate object length before fixed-size copies in do_config()
do_config() checks that each command's o.len fits in the remaining
buffer, but the DN_LINK, DN_PROFILE, DN_SCH and DN_FS cases then copy a
fixed sizeof(struct) out of the command, which can be larger than o.len.
A command with o.len == sizeof(struct dn_id) reads past the end of the
sockopt buffer (DN_PROFILE copies about 4 KB).
Reject a command whose o.len is shorter than the structure it carries.
Add a test.
Reviewed by: kp
MFC after: 1 week
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision: https://reviews.freebsd.org/D61440
(cherry picked from commit 42d358453d056e70bd112c63247e89c1ecf575d5)
pf: fix sctp normalisation cleanup
If we fail to allocate the dst scrub structure we should free the src
one too, but we passed src rather than src->scrub.
Reported by: llm-postcr
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit e53632189f09d7b5c6664fef51cbe4429e4b3243)
dummynet: validate object length before fixed-size copies in do_config()
do_config() checks that each command's o.len fits in the remaining
buffer, but the DN_LINK, DN_PROFILE, DN_SCH and DN_FS cases then copy a
fixed sizeof(struct) out of the command, which can be larger than o.len.
A command with o.len == sizeof(struct dn_id) reads past the end of the
sockopt buffer (DN_PROFILE copies about 4 KB).
Reject a command whose o.len is shorter than the structure it carries.
Add a test.
Reviewed by: kp
MFC after: 1 week
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision: https://reviews.freebsd.org/D61440
(cherry picked from commit 42d358453d056e70bd112c63247e89c1ecf575d5)
pf: fix nat46 ICMP handling
When porting from OpenBSD I typo'd the variable where we store the ICMP
type, in the nat46 direction. The nat64 direction was correct. Fix this
so ICMP translation works for nat46.
Add a test case for this, as well as basic TCP and UDP cases because
nat46 was entirely untested.
PR: 300461
MFC after: 1 week
Submitted by: Charles Marshall <charles at wozi.com> (pf patch)
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 5165da26f31f576328d99d5ac736bdfd1aa04fe8)
pf tests: test pfTablesTblCount in snmp_pf
This works fine on main, but not on stable/15 so add a test.
PR: 300818
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 5131335c7d48eaec427aa9ed27862ca56e3e95bc)
www/nginx-module-vod: Reject out of range track indexes
The track index from the request URL went into the track mask without a
bounds check, so a crafted request made the worker write outside of it.
Sponsored by: Netzkommune GmbH
pf: improve anchor string validation
Ensure that these are not overly long.
Add a test case.
Reported by: Kevin Day <kevin at your.org>
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit a396a0218cc59cff48547fdf97d9e1a8c306f090)
pf: Free the stack key when attaching it collides
pf_state_key_attach() attaches the wire key first and then the stack
key, setting sks to NULL before the second pass. When the stack key
collides with an existing state, the error path removes the wire key
again but then frees sks, which is NULL by then: the stack key leaks.
pfsync hits this. A peer that gets a plain state in a bulk update
before a redirected state whose stack key is the plain state's key
fails to import the redirected state, leaks its stack key, and leaks
another one with every later update of that state.
Free sk, the key of the pass that collided (skw on the wire pass), and
add a test.
Reviewed by: kp
Fixes: 371bd29d4b22 ("pf: fix potential state key leak")
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
[3 lines not shown]
pf: improve anchor string validation
Ensure that these are not overly long.
Add a test case.
Reported by: Kevin Day <kevin at your.org>
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit a396a0218cc59cff48547fdf97d9e1a8c306f090)
pf: Free the stack key when attaching it collides
pf_state_key_attach() attaches the wire key first and then the stack
key, setting sks to NULL before the second pass. When the stack key
collides with an existing state, the error path removes the wire key
again but then frees sks, which is NULL by then: the stack key leaks.
pfsync hits this. A peer that gets a plain state in a bulk update
before a redirected state whose stack key is the plain state's key
fails to import the redirected state, leaks its stack key, and leaks
another one with every later update of that state.
Free sk, the key of the pass that collided (skw on the wire pass), and
add a test.
Reviewed by: kp
Fixes: 371bd29d4b22 ("pf: fix potential state key leak")
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
[3 lines not shown]
devel/truc: Deprecate and set expiration date
The project is abandoned upstream, no longer developed.
Set expiration date to 2027-02-28, 3 months from now.
PR: 300510
MFH: 2026Q4
(cherry picked from commit c6743c0873f6f7233d19b33f6aef1fdcaf604b6c)
devel/truc: Deprecate and set expiration date
The project is abandoned upstream, no longer developed.
Set expiration date to 2027-02-28, 3 months from now.
PR: 300510
MFH: 2026Q4
IPv6: rc boot time improvements
If IPv6 is enabled we call rtsol on that interface so waiting in
rtsold is counterproductive; if one was to just use rtsold -F then
they are on their own for having the addresses usable during the
remaining startup time.
Rather than sleeping dad_count + 1 seconds we are now checking for
any tentative addresses on the interface and only then sleep
dad_count up-to 2 times. This should save us at least a dad_count
with the seconds with Optimistic DAD enabled (default) but there
are too many assumptions invovled anyway.
(RETRANS_TIMER in the kernel being 1000ms being one).
The reason why we need to sleep more than dad_count (1s default)
seems to be that first DAD for the link-local address clears and
only then solicited (or other global) addresses are handled.
Co-authored-by: Pouria Mousavizadeh Tehrani <pouria at FreeBSD.org>
[3 lines not shown]