-
-
usr/src/uts/common/xen/io/xnf.c (Diff revision 1) 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, NULL); c != NULL; c = ddi_dma_cookie_iter(dma_handle, c)) {
I think that's cleaner and easier to follow.
xnf calls ddi_dma_nextcookie too many times and panics the system
Review Request #2553 — Created May 9, 2020 and discarded
Information | |
---|---|
andy_js | |
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.
- 1
- 0
- 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, ... |
|