[Bug 285681] [Hyper-V] i386 panic during storvsc_xferbuf_prepare()
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 285681] [Hyper-V] i386 panic during storvsc_xferbuf_prepare()"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Mar 2025 21:55:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285681
--- Comment #1 from Dimitry Andric <dim@FreeBSD.org> ---
Oh duh, I see:
--- a/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
@@ -1831,6 +1831,10 @@ storvsc_xferbuf_prepare(void *arg, bus_dma_segment_t
*segs, int nsegs, int error
#if !defined(__aarch64__)
if (nsegs > 1) {
if (i == 0) {
+ for (i = 0; i < nsegs; i++)
+ printf("segs[%d]: ofs 0x%jx, len
%zu\n",
+ i, (uintmax_t)segs[i].ds_addr,
+ segs[i].ds_len);
KASSERT((segs[i].ds_addr & PAGE_MASK) +
segs[i].ds_len == PAGE_SIZE,
("invalid 1st page, ofs 0x%jx, len %zu",
The inner for loop increases 'i' to nsegs, while it was supposed to be zero.
The inner loop should use another variable, obviously.
--
You are receiving this mail because:
You are the assignee for the bug.