xnf calls ddi_dma_nextcookie too many times and panics the system

Review Request #2553 - Created May 9, 2020 and discarded

Information
Andrew Stormont
illumos-gate
12712
Reviewers
general

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.

Issues

  • 1
  • 0
  • 0
  • 1
Description From Last Updated
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 Andy Fiddaman
Andy Fiddaman
Andrew Stormont
Review request changed

Status: Discarded

Loading...