Date: Fri, 04 Jul 2025 13:30:08 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 280098] 9pfs panics on qemu+kvm Message-ID: <bug-280098-27103-qarPFDCqUu@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-280098-27103@https.bugs.freebsd.org/bugzilla/> References: <bug-280098-27103@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=280098 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=f5cc62e54a7f8ae9b8bb1484e0ebb22352c95d36 commit f5cc62e54a7f8ae9b8bb1484e0ebb22352c95d36 Author: Danilo Egea Gondolfo <danilo@FreeBSD.org> AuthorDate: 2024-07-06 16:51:51 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2025-07-04 13:28:06 +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 <mp@FreeBSD.org> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1320 (cherry picked from commit 814bf1fddd27aea69740f9e7426302354285cad4) sys/dev/virtio/p9fs/virtio_p9fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 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-280098-27103-qarPFDCqUu>
