From: Paul Durrant <xadimgnik@gmail.com>
To: David Woodhouse <dwmw2@infradead.org>, qemu-devel@nongnu.org
Cc: xen-devel@lists.xenproject.org, kvm@vger.kernel.org,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Stefano Stabellini" <sstabellini@kernel.org>,
"Anthony PERARD" <anthony@xenproject.org>,
"Edgar E . Iglesias" <edgar.iglesias@gmail.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
"Marcelo Tosatti" <mtosatti@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Jason Wang" <jasowangio@gmail.com>,
"Hui Peng" <benquike@gmail.com>,
"Mark Syms" <mark.syms@citrix.com>,
"Feifan Qian" <bea1e@proton.me>,
"David Woodhouse" <dwmw@amazon.co.uk>
Subject: Re: [PATCH v1 16/21] hw/9pfs/xen-9p-backend: Validate frontend-supplied connect parameters
Date: Wed, 25 Nov 2026 11:29:45 +0000 [thread overview]
Message-ID: <fbc930a2-7f5b-4b28-b678-e10b97fae2cd@xen.org> (raw)
In-Reply-To: <20261124232247.23169-17-dwmw2@infradead.org>
On 24/11/2026 16:22, David Woodhouse wrote:
> From: David Woodhouse <dwmw@amazon.co.uk>
>
> The ring order is read from the guest-shared interface page into a
> signed int, so a large value became negative and bypassed the
> MAX_RING_ORDER check, leading to an undefined shift. Keep it unsigned.
> Treat any negative return from the event channel bind as failure, not
> just -1, and fail the connect if the frontend provides no 'tag' key
> rather than passing NULL into the fsdev layer.
>
> Fixes: b37eeb020123 ("xen/9pfs: introduce Xen 9pfs backend")
> Reported-by: Hui Peng <benquike@gmail.com>
> Closes: https://gitlab.com/qemu-project/qemu/-/work_items/4523
> Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
> ---
> hw/9pfs/xen-9p-backend.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
Reviewed-by: Paul Durrant <paul@xen.org>
next prev parent reply other threads:[~2026-11-25 11:29 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 23:22 [PATCH v1 00/21] hw/xen, i386/xen: security and robustness fixes David Woodhouse
2026-11-24 23:22 ` [PATCH v1 01/21] hw/xen: Fix partial request header handling in emulated XenStore David Woodhouse
2026-11-25 10:57 ` Paul Durrant
2026-11-30 13:17 ` Alex Bennée
2026-11-24 23:22 ` [PATCH v1 02/21] i386/xen: Don't resample GSI when per-vCPU upcall vector is in use David Woodhouse
2026-11-25 10:58 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 03/21] i386/xen: Free Xen vCPU timers when a vCPU is destroyed David Woodhouse
2026-11-25 11:00 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 04/21] hw/xen: Publish backend features before setting state to InitWait David Woodhouse
2026-11-25 11:05 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 05/21] hw/i386/kvm/xen_gnttab: Fix error handling in xen_be_gnttab_map_refs() David Woodhouse
2026-11-25 11:07 ` Paul Durrant
2026-11-30 13:17 ` Alex Bennée
2026-11-24 23:22 ` [PATCH v1 06/21] hw/xen: Validate grant copy segments against the page size David Woodhouse
2026-11-25 11:09 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 07/21] hw/i386/kvm/xen_evtchn: Validate PIRQ numbers in physdev operations David Woodhouse
2026-11-25 11:12 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 08/21] hw/i386/kvm/xen_evtchn: Fix off-by-one in do_remove_pci_vector() David Woodhouse
2026-11-25 11:16 ` Paul Durrant
2026-11-25 12:03 ` David Woodhouse
2026-11-25 13:31 ` Paul Durrant
2026-11-25 13:43 ` David Woodhouse
2026-11-26 10:19 ` David Woodhouse
2026-11-30 12:04 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 09/21] i386/xen: Don't inject event on invalid port in qmp_xen_event_inject() David Woodhouse
2026-11-24 23:31 ` Philippe Mathieu-Daudé
2026-11-25 11:17 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 10/21] hw/i386/kvm/xen_evtchn: Reuse existing backend port in find_be_port() David Woodhouse
2026-11-25 11:18 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 11/21] hw/i386/kvm/xen: Don't leak gnttab handle on reset David Woodhouse
2026-11-25 11:20 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 12/21] hw/i386/kvm/xen_xenstore: Apply offset before truncation in xs_append_strings() David Woodhouse
2026-11-25 11:22 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 13/21] hw/char/xen_console: Fix buffer trim when size exceeds twice the limit David Woodhouse
2026-11-25 11:24 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 14/21] hw/9pfs/xen-9p-backend: Use validated snapshot for request iovecs David Woodhouse
2026-11-25 11:26 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 15/21] hw/9pfs/xen-9p-backend: Validate the request header size field David Woodhouse
2026-11-25 11:27 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 16/21] hw/9pfs/xen-9p-backend: Validate frontend-supplied connect parameters David Woodhouse
2026-11-25 11:29 ` Paul Durrant [this message]
2026-11-24 23:22 ` [PATCH v1 17/21] hw/9pfs/xen-9p-backend: Close event channel handle on disconnect David Woodhouse
2026-11-25 11:30 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 18/21] hw/net/xen_nic: Bound the TX and RX rings' producer index David Woodhouse
2026-11-25 11:32 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 19/21] hw/xen: Bound the rep count of PIO and MMIO ioreqs David Woodhouse
2026-11-25 11:34 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 20/21] hw/i386/kvm/xen_evtchn: Hold port_lock for whole of bind_pirq_op David Woodhouse
2026-11-25 11:35 ` Paul Durrant
2026-11-24 23:22 ` [PATCH v1 21/21] hw/i386/kvm/xen_evtchn: Allow unmapping an emulated MSI PIRQ David Woodhouse
2026-11-25 11:36 ` Paul Durrant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fbc930a2-7f5b-4b28-b678-e10b97fae2cd@xen.org \
--to=xadimgnik@gmail.com \
--cc=anthony@xenproject.org \
--cc=bea1e@proton.me \
--cc=benquike@gmail.com \
--cc=dwmw2@infradead.org \
--cc=dwmw@amazon.co.uk \
--cc=edgar.iglesias@gmail.com \
--cc=jasowangio@gmail.com \
--cc=kvm@vger.kernel.org \
--cc=marcandre.lureau@redhat.com \
--cc=mark.syms@citrix.com \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.