xnf calls ddi_dma_nextcookie too many times and panics the system
Review Request #2553 — Created May 9, 2020 and discarded — Latest diff uploaded
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.