xnf calls ddi_dma_nextcookie too many times and panics the system
Review Request #2553 - Created May 9, 2020 and discarded
I can't provide a stack trace unfortunately as I've only observed this issue in Amazon's EC2 but it's pretty obvious what's happening from looking at the code: it's calling ddi_dma_nextcookie at the end of a loop in xnf_mblk_map. The call on the final iteration tickles the check in ddi_dma_nextcookie causing the system to panic.
With the patch applied the system no longer panics and xnf is usable.
|Where this has been fixed elsewhere, these loops were changed into something like: const ddi_dma_cookie_t *c; for (c = ddi_dma_cookie_iter(dma_handle, ...||Andy Fiddaman|