opnsense-src/sys
Guinan Sun ee69040634 ixgbe: initialize data field in struct buffer
While sending request using ixgbe_hic_unlocked() the data field in
buffer struct is not used. It is set when the struct is overwritten by
FW to deliver the response. To not pass random data to FW the whole
structure should be zeroed before use.

Signed-off-by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Signed-off-by: Piotr Pietruszewski <piotr.pietruszewski@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>

Approved by:	imp
Obtained from:	DPDK (40543be5376ca415b2a7e196315d0555725b8bdf)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D31621

(cherry picked from commit b3ebe337ff)
2021-09-13 17:37:05 -07:00
..
amd64 linux: make sure to zero the l_siginfo structure for ptrace(2) 2021-09-13 10:39:42 -04:00
arm Revert "arm: Bump KSTACK_PAGES default to match i386/amd64" 2021-09-02 07:56:25 -07:00
arm64 pmap: Micro-optimize pmap_remove_pages() on amd64 and arm64 2021-09-01 09:29:01 -04:00
bsm Add aio_writev and aio_readv 2021-01-02 19:57:58 -07:00
cam cam(4): Fix quick unplug/replug for SCSI. 2021-09-03 23:25:24 -04:00
cddl fbt: Remove some handling for multiple CTF containers 2021-04-15 21:27:24 -04:00
compat linuxkpi: remove global atomic counter of the task allocations 2021-08-03 12:56:02 +03:00
conf vmd(4): Major driver refactoring 2021-09-12 18:44:13 -04:00
contrib routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
crypto crypto(4): Fix a few typos in camellia.c 2021-09-07 09:23:33 +02:00
ddb ddb: reliably fail with ambiguous commands 2021-07-02 14:13:24 -07:00
dev ixgbe: initialize data field in struct buffer 2021-09-13 17:37:05 -07:00
dts arm: allwinner: dtb: Add overlays to disable SD/MMC node 2021-07-22 19:29:21 +02:00
fs tmpfs: Move partial page invalidation to a separate helper 2021-09-04 01:21:10 +08:00
gdb gdb: report specific stop reason for watchpoints 2021-04-21 10:20:33 -03:00
geom geom_disk: use a preallocated geom_event for disk destruction. 2021-09-12 09:56:14 -06:00
gnu Remove the old dts imported tree. 2021-01-15 20:09:55 +01:00
i386 vmd(4): Major driver refactoring 2021-09-12 18:44:13 -04:00
isa Remove more remnants of sio(4) 2021-04-14 09:19:49 -04:00
kern genoffset: simplify and rewrite in sh 2021-09-12 09:56:14 -06:00
kgssapi
libkern Switch to an ifunc in the kernel for crc32c 2021-08-30 12:22:21 +01:00
mips Fix a common typo in source code comments 2021-09-07 09:24:05 +02:00
modules vmd(4): Major driver refactoring 2021-09-12 18:44:13 -04:00
net pf: Add counters for syncookies 2021-09-08 09:28:14 +02:00
net80211 net80211/LinuxKPI: add more radiotap definitions 2021-07-18 00:35:03 +00:00
netgraph routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
netinet netinet: prevent NULL pointer dereference in in_aifaddr_ioctl() 2021-09-12 19:12:31 -06:00
netinet6 lltable: fix crash introduced in c541bd368f. 2021-09-07 21:02:58 +00:00
netipsec netipsec/key.c: Use ANSI C definition for key_random() 2021-08-13 12:34:42 +03:00
netpfil pf: ensure states passed to pf_free_state() are always unlinked 2021-09-10 14:45:50 +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 routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
opencrypto cryptodev: Fix some input validation bugs 2021-05-14 09:58:54 -04:00
powerpc Add pmap_vm_page_alloc_check() 2021-08-24 02:21:13 +03:00
riscv sifive_spi: Add missing case for SPIBUS_MODE_NONE 2021-09-07 13:08:20 +01:00
rpc Fix a common typo in source code comments 2021-09-07 09:24:05 +02:00
security mac: cheaper check for ifnet_create_mbuf and ifnet_check_transmit 2021-07-05 11:32:14 +00:00
sys clock_gettime: Add Linux aliases for CLOCK_* 2021-09-12 09:56:16 -06:00
teken loader: implement framebuffer console 2021-01-02 21:41:36 +02:00
tests routing: add IPv6 fib validation procedure. 2021-09-07 21:02:58 +00:00
tools makesyscalls.lua: improve generated file style(9) compliance 2021-05-19 20:31:54 -04:00
ufs ffs_update(): Do not assume that EBUSY can only come LK_NOWAIT trylock 2021-09-07 03:39:32 +03:00
vm Add pmap_vm_page_alloc_check() 2021-08-24 02:21:13 +03:00
x86 xen: Fix warning by adding KERNBASE to modlist_paddr before casting 2021-09-02 23:53:18 +02:00
xdr
xen xen: remove .swp file from public headers 2021-01-11 18:14:11 +01:00
Makefile