opnsense-src/sys
John Baldwin 2befd06588 cxgbe nic TLS: Fix requests with 8 bytes of immediate data padding
Requests whose immediate data do not end on a 16-byte boundary are
padded with zeroes before the next WR command.  Since ULP commands are
8 byte aligned, if there are more than 8 bytes of padding, the
immediate data is padded with zeroes up to an 8 byte boundary and the
last 8 bytes contain a ULP NOOP command.

In the case of exactly 8 bytes of padding, the result should be that
no zeroes are inserted, only the ULP NOOP.  However, the code was
actually inserting 8 bytes of zero padding followed by the ULP NOOP
causing the following real command to be misaligned.  Fix this by
skipping the zero padding if there exactly 8 padding bytes.

Reported by:	Sony Arpita Das @ Chelsio
Sponsored by:	Chelsio Communications
2025-05-13 10:05:09 -04:00
..
amd64 vm_page: make iter_insert() public 2025-05-08 23:13:32 -05:00
arm arm: Switch the timer to the new sys handler 2025-05-12 12:06:53 +01:00
arm64 arm64: Use a sys handler for CTR_EL0 2025-05-12 12:08:06 +01:00
bsm
cam scsi/da: Only send SYNC CACHE for devices with mode page 8 2025-05-07 15:36:55 -06:00
cddl
compat LinuxKPI: 802.11: make sure AUTH frames are not being sent if BSS changed 2025-05-12 19:15:13 +00:00
conf linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
contrib iwlwifi: update script to extract firmware/chipset generations/flavors/.. 2025-05-13 00:04:46 +00:00
crypto
ddb
dev cxgbe nic TLS: Fix requests with 8 bytes of immediate data padding 2025-05-13 10:05:09 -04:00
dts
fs sysctl(9): Ease exporting struct sizes; Discourage doing that 2025-05-07 12:13:40 +02:00
gdb
geom sysctl(9): Ease exporting struct sizes; Discourage doing that 2025-05-07 12:13:40 +02:00
gnu
i386
isa
kern jail: add allow.routing jail permission 2025-05-12 23:13:18 +01:00
kgssapi crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
libkern
modules linuxkpi: Add folio and folio_batch APIs 2025-05-12 19:08:03 +02:00
net net/if_dl.h: add param names in prototypes 2025-05-09 23:50:23 +01:00
net80211 net80211: clean up the documentation for ieee80211_fragment() 2025-05-12 20:34:05 -07:00
netgraph Remove remaining mentions of pr_usrreq. 2025-05-08 16:29:15 +02:00
netinet Remove remaining mentions of pr_usrreq. 2025-05-08 16:29:15 +02:00
netinet6 bridge: allow IP addresses on members to be disabled 2025-05-05 22:47:36 +01:00
netipsec
netlink jail: add allow.routing jail permission 2025-05-12 23:13:18 +01:00
netpfil pf: use __func__ rather than hardcoded function names 2025-05-09 22:49:29 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed ofed: jiffies is unsigned long 2025-04-29 13:53:40 +00:00
opencrypto crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
powerpc powerpc: Always use BE tag in nexus_map_resource 2025-05-12 21:35:14 -04:00
riscv subr_devmap: Reduce the use of the static devmap 2025-05-02 16:39:04 +01:00
rpc
security
sys jail: add allow.routing jail permission 2025-05-12 23:13:18 +01:00
teken
tests
tools
ufs
vm vm_page: alphabetize declarations 2025-05-12 14:59:41 -05:00
x86 tls: Introduce struct dtv and struct dtv_slot 2025-05-07 20:20:26 +01:00
xdr
xen
Makefile
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(4)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures