opnsense-src/sys
John Baldwin 202f2c169b cxgbe tom: Permit rcv_nxt mismatches on FIN for iSCSI connections on T6.
The remote peer might send a FIN in the middle of a burst of data
PDUs.  In the case of T6 with data PDU completion moderation, the
driver would not have seen these PDUs since the final PDU in the burst
was never received resulting in a stale rcv_nxt when the FIN is
received.

While here, invert the logic in the condition to be more readable and
always set tp->rcv_nxt from the sequence number in the CPL.  This sets
the proper value of rcv_nxt for FINs on connections with data received
but not reported via a CPL (e.g. a partial iSCSI PDU burst interrupted
by a FIN).

Reported by:	Jithesh Arakkan @ Chelsio
Reviewed by:	np
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D30871

(cherry picked from commit d59f1c49e2)

cxgbe tom: Update rcv_nxt for a FIN after handle_ddp_close().

For TCP DDP, handle_ddp_close() needs to see the pre-FIN rcv_nxt to
determine how much data was placed in the local buffer before the FIN
was received.  The changes in d59f1c49e2 broke this by updating
rcv_nxt before calling handle_ddp_close().

Fixes:		d59f1c49e2 cxgbe tom: Permit rcv_nxt mismatches on FIN for iSCSI connections on T6.
Sponsored by:	Chelsio Communications

(cherry picked from commit 5dbf8c1588)
2021-10-29 16:17:31 -07:00
..
amd64 amd64: Zero the PML5 PTI page when initializing a pmap 2021-10-25 08:46:43 -04:00
arm Enable PPS_SYNC on amd64, arm64 and armv7 2021-10-17 03:28:13 +03:00
arm64 Only demote when needed in the arm64 pmap_change_props_locked 2021-10-25 14:46:44 +01:00
bsm
cam iscsi: Move the maximum data segment limits into 'struct icl_conn'. 2021-10-29 16:05:13 -07:00
cddl kern: drop remaining references to removed makesyscalls.sh 2021-09-14 20:53:03 -05:00
compat LinuxKPI: Support lazy BAR allocation 2021-10-24 19:51:15 +01:00
conf ossl: Add ChaCha20 cipher support. 2021-10-21 08:51:24 -07:00
contrib Upgrade ENA to v2.4.1 2021-10-07 18:10:32 +02:00
crypto crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes. 2021-10-21 14:19:30 -07:00
ddb ddb: reliably fail with ambiguous commands 2021-07-02 14:13:24 -07:00
dev cxgbe tom: Permit rcv_nxt mismatches on FIN for iSCSI connections on T6. 2021-10-29 16:17:31 -07:00
dts arm: allwinner: dtb: Add overlays to disable SD/MMC node 2021-07-22 19:29:21 +02:00
fs nfscl: Add an argument to nfscl_tryclose() 2021-10-28 20:19:11 -07:00
gdb
geom geom_label: Add more validation for NTFS volume tasting 2021-10-18 09:07:58 -04:00
gnu
i386 i386: move signal delivery code to exec_machdep.c 2021-10-16 16:01:47 +03:00
isa
kern uipc_shm: silent warnings about write-only variables in largepage code 2021-10-27 03:24:41 +03:00
kgssapi
libkern Switch to an ifunc in the kernel for crc32c 2021-08-30 12:22:21 +01:00
mips crypto: Add a new type of crypto buffer for a single mbuf. 2021-10-21 08:51:26 -07:00
modules ossl: Add ChaCha20 cipher support. 2021-10-21 08:51:24 -07:00
net pf: remove unused field from pf_kanchor 2021-10-22 09:34:08 +02:00
net80211 net80211/LinuxKPI: add more radiotap definitions 2021-07-18 00:35:03 +00:00
netgraph ng_ppp(4): Fix a typo in a comment 2021-10-17 10:35:19 +02:00
netinet Change lowest address on subnet (host 0) not to broadcast by default. 2021-10-19 08:16:32 -05:00
netinet6 nd6: Make the DAD callout MPSAFE 2021-09-21 09:37:52 -04:00
netipsec ipsec: enter epoch before calling into ipsec_run_hhooks 2021-10-11 09:10:31 +00:00
netpfil pf: do not copy anchor_wildcard / anchor_relative from userspace 2021-10-22 09:34:18 +02:00
netsmb netsmb: Avoid a read-after-free in smb_t2_request_int() 2021-06-02 09:34:47 -04:00
nfs
nfsclient
nfsserver
nlm
ofed socket: Rename sb(un)lock() and interlock with listen(2) 2021-10-07 09:56:47 -04:00
opencrypto crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes. 2021-10-21 14:19:30 -07:00
powerpc Restore PPS_SYNC in NOTES 2021-10-17 03:28:13 +03:00
riscv riscv: Implement pmap_mapdev_attr 2021-10-24 19:51:10 +01:00
rpc rpc: Convert an SOLISTENING check to an assertion 2021-09-24 09:01:07 -04:00
security mac: cheaper check for ifnet_create_mbuf and ifnet_check_transmit 2021-07-05 11:32:14 +00:00
sys sys/bus.h: silence warnings about write-only variables 2021-10-27 03:24:40 +03:00
teken
tests routing: add IPv6 fib validation procedure. 2021-09-07 21:02:58 +00:00
tools makesyscalls.lua: add a CAPENABLED flag 2021-10-20 00:19:56 +01:00
ufs ufs: remove write-only variables 2021-10-27 03:24:40 +03:00
vm vm_page: Move vm_page_alloc_check() to after page allocator definitions 2021-10-27 09:53:29 -04:00
x86 DMAR: clean up warnings about write-only variables 2021-10-27 03:24:40 +03:00
xdr
xen
Makefile