From nobody Sat Mar 29 08:38:53 2025 X-Original-To: virtualization@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 4ZPrQk3ks6z5sJC6 for ; Sat, 29 Mar 2025 08:38:54 +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 4ZPrQj5DnRz3F2c for ; Sat, 29 Mar 2025 08:38:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743237533; 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=8ngoHaTxuTojFa5ly9FlNHKB1Sh3GJ9jF/wjjAc66SU=; b=lL1Z94CaQXu1SWd6+neVKYReLPTCH+2YW+BRWHwc7ob79qXne5cCtmbH0MPvQCjYyeFUgl G9QCTH0ZshjNQpoJtodFfo9h2S1zJb75+Z7F2KytQJOsnUV/Dc3TrGNuSSMq38FYLaXdXG fMPaXBN0yYnAqatfDEcz4kEGyJ4xVdMULYTYJZpEJP0bXshwzTOPJsh0lrdGXjkngAXGQw yjdBbQQl7Eu91dXob87CF26wm/MzxgDYI5/cJpLV+TF4jworxHYGSOoo+9y4H6Ve44reAr peBVuC8CDgW2TvT4znQCKR1mqWPP6RBqdzXdvLFkOgjfov7dtrOp7PksjrjiPw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743237533; a=rsa-sha256; cv=none; b=wqDvT6O+UDNeSvSkkWSMZCTpwMX7sywu8hUlXjqPc+xjB5qSBOdjDzYhz+dxtvEtK/b2EG C7RG/Wu+Y+5UitogUDjAdjD3LUQral8z60LRElKST81w8a58nNDFbX4dnmC8Nn+aiE6cjJ knS6MOKzdbgDczZio5UrPjToL2jKsHPqwkJc0Nwr/Opy+NPjGpwSc+yMPwbZxsi/jtJrnU gOVIP0IbGUR5iLIQ7JZqRqKfaVjs5GjnvSJIhTH7mjzYmqO2xwpwybYUWhfv4AUwCyfGoa KTuubV/EuP0eTosjOonCy3fJ9Vft4W375Lijp24uo8haI2KWIYM4BajilfTyvw== 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=1743237533; 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=8ngoHaTxuTojFa5ly9FlNHKB1Sh3GJ9jF/wjjAc66SU=; b=A3jomoSWgHKYiOqAa+TB15zkFyVkNquUfREXjhqmak0IIzd3AQj85sy2uZsmC5AFEwps9m Pl5Mezyqr/1Lm2hdpzMnWD4k2Az6giuXy/3cQnKlnwvCvYyFRhUx52orOthcX7KGb50EwD JBxstYIp5M9bvPmylZY0ClNGzqoLMfB+1FWIbjKA8JfxceEj6rdZ3I/uwit0MbtCKNW9GH ygs03SCc0vB52pGnlPeT/7pdFV9jluWnJwBDJAO9CIMTSV4UESOvFCCkAywoKjGmkrZN6a 2tc3uPBJskZeXOvxcrJFdgjRFwxXz+U5wQKQkwbZoRx+ZgNLDqw92iAzXTIDdA== 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 4ZPrQj3z9Yz6JD for ; Sat, 29 Mar 2025 08:38:53 +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 52T8cr8r065214 for ; Sat, 29 Mar 2025 08:38:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52T8cr4H065213 for virtualization@FreeBSD.org; Sat, 29 Mar 2025 08:38:53 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: virtualization@FreeBSD.org Subject: [Bug 285681] [Hyper-V] i386 panic during storvsc_xferbuf_prepare() Date: Sat, 29 Mar 2025 08:38:53 +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: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created 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: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285681 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #259079|0 |1 is obsolete| | --- Comment #7 from Mark Johnston --- Created attachment 259144 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D259144&action= =3Dedit possible patch (In reply to Dimitry Andric from comment #6) > If I increase to 4G, it panics with "storvsc recvbuf is not large enough". Weird, I have no idea about that. I guess we should look at the packet len= gth in vmbus_chan_recv(). A stack trace would also be useful. But, does it ha= ppen at all with the patch in comment 3? I think that patch is the correct solution. The attached patch should also eliminate unnecessary bouncing on i386 systems with physical RAM above 4GB.= I think what's happening is that we are getting a 4KB I/O across two pages ab= ove 4GB, and busdma is bouncing it into the first 2KB of each of two pages below 4GB. The storvsc driver isn't able to cope with that. Again, it would be really nice to understand why the assertion fails on arm= 64, and whether the attached patch fixes that as well. A storage driver like t= his really shouldn't be bouncing on 64-bit systems. --=20 You are receiving this mail because: You are the assignee for the bug.=