Pass MSI vector number when establishing MSI interrupts (but not MSI-X
interrupts) in order to support hardware that needs multiple MSI vectors
such as qwx(4) and qwz(4).
From Daniel Dickman
You're supposed to hold a reference already when taking another reference
to a UVM object. Add some KASSERTs to enforce this such that we can weed
out any offenders.
ok kirill@
lld/mips64: lazy binding
Emit .MIPS.stubs so ld.so can resolve imported functions on first call.
Keep eager binding for address-taken imports and calls through secondary
GOTs.
This based on almost finished visa@'s work
Limit TCP FIN_WAIT_2 state after close(2) to the idle timeout.
When the socket has no file descriptor anymore, the TCPT_2MSL timer
in FIN_WAIT_2 state was rearmed as long as the peer kept sending
segments. Empty ACKs within the idle timeout, 10 minutes by default,
could keep the connection alive forever. Without file descriptor
no data can be received anyway, so drop the connection when the
timer expires for the first time. Later segments from the peer are
answered with a reset.
from Acts1631; OK mvs@
lib/libepoxy: fix epoxy micro version in build plumbing/config.h
will fix Version field in /usr/X11R6/lib/pkgconfig/epoxy.pc
forgotten when updating epoxy to 1.5.10 in may.
ok matthieu@
pf(4): fix missing pf_state_key_unref()
Reported by Acts1631.
from jan@; OK henning@ sashan@
pf(4): pf_state_insert() should update stack side key
pf_state_insert() should treat stack side state key (sks) in the same way
as it treats wire side state key (skw). The call to pf_state_key_attach()
may replace the sks with key which is present already in state tree.
Issue noticed and reported by Acts-1631
from sashan@; OK henning@ bluhm@
this is errata/8.0/031_pfkeyunref.patch.sig
pf(4): fix missing pf_state_key_unref()
Reported by Acts1631.
from jan@; OK henning@ sashan@
pf(4): pf_state_insert() should update stack side key
pf_state_insert() should treat stack side state key (sks) in the same way
as it treats wire side state key (skw). The call to pf_state_key_attach()
may replace the sks with key which is present already in state tree.
Issue noticed and reported by Acts-1631
from sashan@; OK henning@ bluhm@
this is errata/7.9/065_pfkeyunref.patch.sig
Use ulmin(9) instead min(9) to prevent integer truncation with potential
bad consequences. From Acts1631.
from kettenis@; OK miod@ mvs@
this is errata/8.0/030_uvmiomin.patch.sig
Use ulmin(9) instead min(9) to prevent integer truncation with potential
bad consequences. From Acts1631.
from kettenis@; OK miod@ mvs@
this is errata/7.9/064_uvmiomin.patch.sig
Fix FIN_WAIT_2 timeout of closed TCP sockets.
During keep alive timer refactoring at 2025-01-16 I messed up
tcp_keepidle and tcp_keepintvl variables when arming the FIN_WAIT_2
timer. As a consequence connections in FIN_WAIT_2 without socket
stay for 16 hours instead of 10 minutes. A peer that never sends
its FIN can exhaust kernel resources this way. Restore the old
behaviour.
from Acts1631
from bluhm@; OK mvs@
this is errata/8.0/029_tcpfinwait.patch.sig
Fix FIN_WAIT_2 timeout of closed TCP sockets.
During keep alive timer refactoring at 2025-01-16 I messed up
tcp_keepidle and tcp_keepintvl variables when arming the FIN_WAIT_2
timer. As a consequence connections in FIN_WAIT_2 without socket
stay for 16 hours instead of 10 minutes. A peer that never sends
its FIN can exhaust kernel resources this way. Restore the old
behaviour.
from Acts1631
from bluhm@; OK mvs@
this is errata/7.9/063_tcpfinwait.patch.sig
Limit TCP reassembly list walks.
To prevent CPU exhaustion by a remote TCP peer, limit the t_segq
queue length. The segment at rcv_nxt is still accepted, so the
missing data can drain a full queue. Large windows on a high
bandwidth connection may hit a strict 100 segment maximum in
legitimate cases, so also make the limit depend on the socket buffer
size.
from Acts1631
from bluhm@; OK claudio@
this is errata/8.0/028_tcpqlen.patch.sig
Recalulate the TCP SACK list after memory exhaustion.
Acts1631 found that tcp(4) can advertise SACK blocks for data that
it has discarded when the global TCP reassembly pool is exhausted.
This can make a sender omit missing data from fast recovery and
wait for its retransmission timer.
This commit clears the receiver SACK report whenever the reassembly
allocation fails, before either path can discard queued data. It
also returns -1 when the new input segment itself is discarded.
The caller maps that value back to zero TCP flags but does not add
the discarded range to the SACK report. On the reuse path, the
accepted current segment is still passed to tcp_update_sack_list(),
after the stale report has been cleared.
from Acts1631
from bluhm@; discussed with claudio@ tb@
Limit TCP reassembly list walks.
To prevent CPU exhaustion by a remote TCP peer, limit the t_segq
queue length. The segment at rcv_nxt is still accepted, so the
missing data can drain a full queue. Large windows on a high
[7 lines not shown]
Fix NULL dereferences in sppp authentication.
From acts1631
from yasuoka@; OK mvs@ bket@
Comply with 6.2 of RFC 1661 in sppp(4)
The option length field is p[1] and is required to be >= 4.
from gnezdo@; OK jsg@ yasuoka@
this is errata/8.0/027_sppp.patch.sig
sppp_pap_input(): do not compare credentials if the lengths of received
ones is not the same of configured.
from mvs@; OK renaud@ bluhm@
Fix NULL dereferences in sppp authentication.
From acts1631
from yasuoka@; OK mvs@ bket@
Comply with 6.2 of RFC 1661 in sppp(4)
The option length field is p[1] and is required to be >= 4.
from gnezdo@; OK jsg@ yasuoka@
this is errata/7.9/061_sppp.patch.sig