From nobody Sun Jul 07 11:42:40 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 4WH5346YFxz5PDpp for ; Sun, 07 Jul 2024 11:42:40 +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 4WH5345Md5z4X5c for ; Sun, 7 Jul 2024 11:42:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1720352560; a=rsa-sha256; cv=none; b=AZx7E4w7BEB/Lo4XreF+hIHV0T16Kjy7PxawUzfLeu1+dyAADJj8sef9gwVHxjTlCIIDLK 68zcOegWirkuzjAJY0fVbgeu0g+V00iqoGhLNno8FzUubZ+1HEZ4vHa480ShOl4IbNPR3D 0u91cNLq1Rx2Ww0BHmSoYdCC/Uq9jyetzdG0WgVtG1U1vXIGf/W3td2WoR5LSHrlL4pj8M 8CC76ZWI9F37z8lwujjpx7j/HB9zwVidEaPa3COwfSd46EaQUjsGIawiAIz3IzHRvt8W0o 8iRakxJJojGmhw+ejEjuF53CmOd2xhASBq+TUS7Infdn8O56uPfCQKrKgfniCw== 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=1720352560; 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=3MABaTvMak/VxVLJ52ZIiLRCRT9IMfNxmqgeZUfsFK0=; b=bbmeQE2QAR0zryd4ed5Nsl2XoFcOn/LkyQeRKMGXZpGEzclSu6w0MJB468pGYgzfEP+WY9 1cGI/Czb+L2i4CuO9vP3/+8dKn2oTqMkpNFGlHfKM812Mq5OI3B5sSCjw6Ql8oCEQcf31B wSVAVtmYt3hde54aFgWvPUGk3B3ESqC9uMqa31fVtzRzImToO6aToPhIdGqXXCC3ynLIIn sjjq9PbZ99VinaAOOXB9jaJY6jeHBxURRKAUFlSB6vnjB6ce93WZr4i+Ji4qrBD1gQ2pUY rV50GImDDk1Ob7Ve0i8XWvJYg8toGXYznUk/UVUpPx+XQr1qXISJx8aEz8GoKQ== 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 4WH5344zSsz1Lgr for ; Sun, 7 Jul 2024 11:42:40 +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 467Bgei6055279 for ; Sun, 7 Jul 2024 11:42:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 467BgekL055278 for virtualization@FreeBSD.org; Sun, 7 Jul 2024 11:42:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla 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: Sun, 07 Jul 2024 11:42:40 +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: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D814bf1fddd27aea69740f9e7426302354= 285cad4 commit 814bf1fddd27aea69740f9e7426302354285cad4 Author: Danilo Egea Gondolfo AuthorDate: 2024-07-06 16:51:51 +0000 Commit: Warner Losh CommitDate: 2024-07-07 11:39:27 +0000 virtio_p9fs: fix panic on qemu/kvm When the module is loaded on a system running on qemu/kvm the "modern" virtio infrastructure is used and virtio_read_device_config() will end up calling vtpci_modern_read_dev_config(). This function cannot read values of arbitrary sizes and will panic if the p9fs mount tag size is not supported by it. Use virtio_read_device_config_array() instead. It was tested on both bhyve and qemu/kvm. PR: 280098 Co-authored-by: Mark Peek Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1320 sys/dev/virtio/p9fs/virtio_p9fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=