freebsd-dev/sys
Marius Strobl 3db348b54a - In _iflib_fl_refill(), don't mark an RX buffer as available in the
corresponding bitmap before adding an mbuf has actually succeeded.
  Previously, m_gethdr(M_NOWAIT, ...) failing caused a "hole" in the
  RX ring but not in its bitmap. One implication of such a hole was
  that in a subsequent call to _iflib_fl_refill() with the RX buffer
  accounting still indicating another reclaimable buffer, bit_ffc(3)
  nevertheless returned -1 in frag_idx which in turn caused havoc
  when used as an index. Thus, additionally assert that frag_idx is
  0 or greater.
  Another possible consequence of a hole in the RX ring was a NULL-
  dereference when trying to use the unallocated mbuf, for example
  in iflib_rxd_pkt_get().

  While at it, make the variable declarations in _iflib_fl_refill()
  conform to style(9) and remove redundant checks already performed
  by bit_ffc{,_at}(3).

- In iflib_queues_alloc(), don't pass redundant M_ZERO to bit_alloc(3).

Reported and tested by: pho
2019-01-26 21:35:51 +00:00
..
amd64 Garbage collect AH_SUPPORT_AR5416 config option. 2019-01-25 13:48:40 +00:00
arm awg: fix soft reset failure with no link 2019-01-21 14:35:36 +00:00
arm64 [rpi] Reorganize spigen(4) overlays for Raspberry Pi 2019-01-16 01:08:34 +00:00
bsm Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
cam [ata] Add workaround for KingDian S200 SSD crash on receiving TRIM command 2019-01-18 04:23:52 +00:00
cddl zfs: allow to change cache flush sysctl 2019-01-26 13:53:00 +00:00
compat Add full support for PCI_ANY_ID when matching PCI IDs in the LinuxKPI. 2019-01-25 20:13:28 +00:00
conf Garbage collect AH_SUPPORT_AR5416 config option. 2019-01-25 13:48:40 +00:00
contrib dpaa: fix 32-bit build 2019-01-19 05:20:31 +00:00
crypto Generalize AES iov optimization 2018-12-13 04:40:53 +00:00
ddb ddb: Enable 'thread <address>' 2018-10-20 20:45:49 +00:00
dev Fix logic errors in iwm_pcie_load_firmware_chunk introduced in r314065. 2019-01-26 17:52:12 +00:00
dts [rpi] Reorganize spigen(4) overlays for Raspberry Pi 2019-01-16 01:08:34 +00:00
fs ext2fs: Add some extra consistency checks for the superblock. 2019-01-25 22:22:29 +00:00
gdb
geom geom_uzip(4): set 'gp != NULL' assertion on top of the function 2019-01-26 17:17:25 +00:00
gnu Import DTS from Linux 4.20 2019-01-11 09:40:34 +00:00
i386 Garbage collect AH_SUPPORT_AR5416 config option. 2019-01-25 13:48:40 +00:00
isa
kern Add printing of b_ioflags to DDB `show buffer' command. 2019-01-25 21:24:09 +00:00
kgssapi
libkern mcount: tidy up ANSIfication 2018-10-20 22:39:35 +00:00
mips [mips] Fix error condition check that always evaluates to false 2019-01-25 20:14:28 +00:00
modules Garbage collect AH_SUPPORT_AR5416 config option. 2019-01-25 13:48:40 +00:00
net - In _iflib_fl_refill(), don't mark an RX buffer as available in the 2019-01-26 21:35:51 +00:00
net80211 Remove 2GHz channel list copies from wireless drivers. 2019-01-26 17:00:55 +00:00
netgraph Allow ng_nat to be attached to a ethernet interface directly via ng_ether(4) 2018-12-17 16:00:35 +00:00
netinet Don't include two header files when not needed. 2019-01-25 17:08:28 +00:00
netinet6 Fix refcounting leaks in IPv6 MLD code leading to loss of IPv6 2019-01-24 08:34:13 +00:00
netipsec Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
netpfil pf: Fix use-after-free of counters 2019-01-25 01:06:06 +00:00
netsmb Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
nfs
nfsclient
nfsserver
nlm
ofed Mechanical cleanup of epoch(9) usage in network stack. 2019-01-09 01:11:19 +00:00
opencrypto Plug memory leak for AES_*_NIST_GMAC algorithms. 2018-12-13 08:59:51 +00:00
powerpc Garbage collect AH_SUPPORT_AR5416 config option. 2019-01-25 13:48:40 +00:00
riscv Optimize RISC-V copyin(9)/copyout(9) routines. 2019-01-21 19:38:53 +00:00
rpc Add kern.rpc.gss.client_max, to make it possible to bump it easily. 2018-12-15 11:32:11 +00:00
security Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
sparc64 Garbage collect AH_SUPPORT_AR5416 config option. 2019-01-25 13:48:40 +00:00
sys Add printing of b_ioflags to DDB `show buffer' command. 2019-01-25 21:24:09 +00:00
teken Implement ECMA-48 "REP", some Linuxen have started emitting them recently. 2018-10-21 08:29:36 +00:00
tests
tools make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATH 2018-12-14 23:53:28 +00:00
ufs Expand DDB's set of printable soft dependency data structures. The 2019-01-26 05:35:24 +00:00
vm Correct uma_prealloc()'s use of domainset iterators after r339925. 2019-01-23 18:58:15 +00:00
x86 i386/PAE busdma: allow more bounce pages. 2019-01-18 13:43:11 +00:00
xdr
xen
Makefile