From nobody Tue Jul 2 22:25:32 2024 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 4WDHY90NSPz5PndT for ; Tue, 02 Jul 2024 22:25:33 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WDHY85bTZz46Jm for ; Tue, 2 Jul 2024 22:25:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719959132; a=rsa-sha256; cv=none; b=jGjdKlY6vflOsc54LgtXOYk3O8GqpY+EFWn/4tTMQbcghVIs4zNqx6v6u2a/f1dH7nTJPr boscbBbFa2QDeshhTylGaEd7Kda9sld/GT6ehtfGdqvy8AYhC66F0UPVtm/wDROejkMTXE sScy2MWSB3KWq83WLWZpxhSq5Y/lCRxb/bdgkniF94PWsix5dbLYkffRgkv31+xB8GGzX4 4zhmddpYaqFrV6WKLLKS5WkGHEHsJJSaUuHAEwl9b/Fh2zJPtBdSV2jw3Btpsi+9fBioGz pnOLGPv57YFSiGVUMHJ77IUEzpi3jwRDsJyO3HaQJcepVqplgyI87M2/3qTlGA== 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=1719959132; 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=T4gR76/VnealIQZHr7y0Ohd6+Nv73MMblcgKTNbjPXY=; b=x4usa2mx3xO7AlFJ3ileWT1s0K6EsuT8AKh3xgrGhwt3dpJnF237bKNJGJg8qxNv+tevsK QEoL2+jrYoELlmFS47IRVHTLM7IL9I/5NfyzvyBPlPIxcPJN5SnUyGPyAPQyumksY5gSlP E8wU62gS7ynIREymfXZJ63TFLWrsCwyXzIIIfO4WecUDRmVAZphEOYoEz3UI+S+rDn/Tl/ F+QZxeTCXST80VxDWpIa0amiKwaWxNOfgw6KW+oOkYo0ybtrZIaCy/CsPqF5rRdJ8xM1z/ jgkYFB0GGmU4u7WNt5ofrchwCoI8wy5fGVKkxaP6Uq3LPWaajkFTwIopVhGCdA== 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 4WDHY855NSz15d0 for ; Tue, 2 Jul 2024 22:25:32 +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 462MPWY8004299 for ; Tue, 2 Jul 2024 22:25:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 462MPWee004298 for virtualization@FreeBSD.org; Tue, 2 Jul 2024 22:25:32 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 280098] 9pfs panics on qemu+kvm Date: Tue, 02 Jul 2024 22:25:32 +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 Only Me X-Bugzilla-Who: mp@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D280098 Mark Peek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mp@FreeBSD.org --- Comment #4 from Mark Peek --- This untested patch is along the same lines as yours but might be a little cleaner. diff --git a/sys/dev/virtio/p9fs/virtio_p9fs.c b/sys/dev/virtio/p9fs/virtio_p9fs.c index aa174d3bd5ba..3600e0ea09c9 100644 --- a/sys/dev/virtio/p9fs/virtio_p9fs.c +++ b/sys/dev/virtio/p9fs/virtio_p9fs.c @@ -352,9 +352,9 @@ vt9p_attach(device_t dev) mount_tag =3D malloc(mount_tag_len + 1, M_P9FS_MNTTAG, M_WAITOK | M_ZERO); - virtio_read_device_config(dev, + virtio_read_device_config_array(dev, offsetof(struct virtio_9pnet_config, mount_tag), - mount_tag, mount_tag_len); + mount_tag, 1, mount_tag_len); device_printf(dev, "Mount tag: %s\n", mount_tag); --=20 You are receiving this mail because: You are the assignee for the bug.=