Date: Wed, 26 Mar 2025 21:55:19 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 285681] [Hyper-V] i386 panic during storvsc_xferbuf_prepare() Message-ID: <bug-285681-227-q2Argi0857@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-285681-227@https.bugs.freebsd.org/bugzilla/> References: <bug-285681-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285681 --- 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 =3D=3D 0) { + for (i =3D 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 =3D=3D 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-285681-227-q2Argi0857>