aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/libufs.h
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2020-06-23 20:23:56 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2020-06-23 20:23:56 +0000
commit0ff21267956e4097c300139eff5fdf151933e7c6 (patch)
tree0bb25115f5072a895c4e9deee9a9d8df56c1fde3 /lib/libufs/libufs.h
parent4d5698001795948878c1a3a99fc1bd5b2c6d3a4e (diff)
downloadsrc-0ff21267956e4097c300139eff5fdf151933e7c6.tar.gz
src-0ff21267956e4097c300139eff5fdf151933e7c6.zip
iflib: netmap: fix rsync index overrun
In the current iflib_netmap_rxsync, there is nothing that prevents kring->nr_hwtail to overrun kring->nr_hwcur during the descriptor import phase. This may cause errors in netmap applications, such as: em1 RX0: fail 'head < kring->nr_hwcur || head > kring->nr_hwtail' h 795 c 795 t 282 rh 795 rc 795 rt 282 hc 282 ht 282 Reviewed by: gallatin MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25252
Notes
Notes: svn path=/head/; revision=362553
Diffstat (limited to 'lib/libufs/libufs.h')
0 files changed, 0 insertions, 0 deletions