[Bug 240023] netmap lb pointer out of bounds on ixgbe

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 9 17:23:25 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240023

--- Comment #6 from mike <maware at ucsc.edu> ---


Some differences of note:
in IXGBE driver:
diff sys/dev/ixgbe/ixgbe_netmap.c 11.2/sys/dev/ixgbe/ixgbe_netmap.c
33c33
< /*$FreeBSD: releng/11.3/sys/dev/ixgbe/ixgbe_netmap.c 344047 2019-02-12
09:26:05Z vmaffione $*/
---
> /*$FreeBSD: releng/11.2/sys/dev/ixgbe/ixgbe_netmap.c 332481 2018-04-13 17:45:54Z shurd $*/
61c61
<  * $FreeBSD: releng/11.3/sys/dev/ixgbe/ixgbe_netmap.c 344047 2019-02-12
09:26:05Z vmaffione $
---
>  * $FreeBSD: releng/11.2/sys/dev/ixgbe/ixgbe_netmap.c 332481 2018-04-13 17:45:54Z shurd $
121c121
<               nm_prinf("%s read  HLREG 0x%x rxc 0x%x",
---
> 		D("%s read  HLREG 0x%x rxc 0x%x",
136c136
<               nm_prinf("%s write HLREG 0x%x rxc 0x%x",
---
> 		D("%s write HLREG 0x%x rxc 0x%x",
343,344c343,344
<               if (unlikely(nic_i >= kring->nkr_num_slots)) {
<                       nm_prinf("TDH wrap %d", nic_i);
---
> 		if (nic_i >= kring->nkr_num_slots) { /* XXX can it happen ? */
> 			D("TDH wrap %d", nic_i);
411a412
> 		uint16_t slot_flags = kring->nkr_slot_flags;
423c424
<                       ring->slot[nm_i].flags = 0;
---
> 			ring->slot[nm_i].flags = slot_flags;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list