From nobody Wed Mar 26 21:55:19 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZNLF46Y8Tz5rG8K for ; Wed, 26 Mar 2025 21:55:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZNLF44hDSz3SfH for ; Wed, 26 Mar 2025 21:55:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743026120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zx5E7tbcU/o0r9ZVayjdOYZqQNUm9tS8tSyONSWBZNY=; b=YvqHTHP21nxe/XFE/MusJfJC9wVtsuWVsl/FpkmTQJ3r1LUYuu917OE2IC+WzgEwgRxqkG jjr9oquJLtu1qKkaba0PHVRRXP5d/jaql+btF8cxztxvruQAy8kzLIVqqCU/FA9727J/VD l+mb/sR6GD73T5PZjMLqo4EDCdRkU8OzXnLHo9JHrqZsJY0U5wfVV5k7bYbYTZDVt003Dp T2ydfs9TjrNQFSvumdTDmR0Drwt1Yt9DUZbbQD3giaeT9AQi87G7fLETHlAF/599dcKume fr2OtsrL0AoI70W04xCB0f4vwA69GR+2WolE7I+gUsPm+kylHx030szAogJWHw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743026120; a=rsa-sha256; cv=none; b=slNwK9FSZiVm8vjfjaYbZTGBDY5otIsv8YTblPBZmJeWm3qgOmCHiz4Cg9Veo280hChXHz gCfKmZEx7PZYJXXFFfVJKQbfno2o83hBth2dk7VXLw9yG5VFjgpCrbmqPQQ7eZkJwAkEX2 yjXQ12kqYE3jc6ZDLD3gNwf43bLvHHArLbY2aGyYl3plhIKAXMOQo4WfrtZtxaEJuDnRuz zQj2N7AoZ/oHY60Ebzauuy6q8VEcYoVzymL4b+OLgr5SxCW5j39YhEiNhsGm6u4BPfCf2R 1pWu0D2lzQcbCBicdyCAOrrRLuE77DCaLcYqU/PHW44Km/eQ165Hs9OEXYEADw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743026120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zx5E7tbcU/o0r9ZVayjdOYZqQNUm9tS8tSyONSWBZNY=; b=CELLGtOO1oDkbPHyZj/1TLdYLlHnqNd8scs22eNCjw/LhwO0EuzKsag/6rTsZpKQT0cK0R KS74eYdXa/EKHa1AZzIIEEpP/Bo1xBnQBjcD9+HpoO5Y1EJmeHVEmCKogcOlDBEcXCoZuW ICTfd7DAAEgWnvBGMHbT8MEA/vfm3Du8DVpq87jl0NeiFVyptquMAYVo0xptKB/tk63XXU AKJXiKYmXI3Xmpy95OXzzVcZJta1b9d0KbYTmF9v22uRTpIf6bZL3BqXyEPDV+EVbbII7w 5JVPUEeimHSubs5jMvzWH5IcD4EHtCD2Jg165yR40im9aCf4r9plFaWMhz92JQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZNLF43yT4zD8H for ; Wed, 26 Mar 2025 21:55:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 52QLtKno063986 for ; Wed, 26 Mar 2025 21:55:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52QLtK84063984 for bugs@FreeBSD.org; Wed, 26 Mar 2025 21:55:20 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 285681] [Hyper-V] i386 panic during storvsc_xferbuf_prepare() Date: Wed, 26 Mar 2025 21:55:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285681 --- Comment #1 from Dimitry Andric --- 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.=