πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #717

[Bug 300890] xen/gntdev: the event-channel handle stored for UNMAP_NOTIFY_SEND_EVENT can be freed by the evtchn device before gn...

#717
From: bugzilla-noreply
Date: Tue, 24 Nov 2026 09:47
36 lines
3466 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300890

--- Comment #2 from Scott Blomenkamp <sablomenkamp@gmail.com> ---
(In reply to Roger Pau MonnΓ© from comment #1)

Tested D61758 (Diff 1, posted Nov 19) as part of your series D61755, D61756,
D61757, D61758 and D61760, applied in that order to main 97fd69b0b884.

Setup: ThinkPad T480, Qubes OS 4.3.2 (Xen 4.19.6). FreeBSD guest, HVM with a
stub domain, 2 vCPUs. Kernel GENERIC (INVARIANTS, WITNESS) plus DEBUG_MEMGUARD
with vm.memguard.desc=gntdev. None of my own gntdev or xen_intr patches.

Result: 1,800 qrexec calls into the guest, 8 at a time, all succeeded: no
panic, no WITNESS or INVARIANTS report, and the new KASSERT in
xen_intr_put_evtchn() never fired.

As a check I also built a second kernel with the same base and options but
without D61758 (D61755, D61756, D61757 and D61760 only). On it, the first
outgoing qrexec call from the guest panicked with "Invalid event channel port"
in evtchn_filter(), from the upcall handler. With D61758 applied that panic
doesn't happen.

Testing was done with an AI assistant (Claude); the runs and results are from
my own machines.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-300890-227-WS2ckCROIo@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-300890-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 300890] xen/gntdev: the event-channel handle stored for
 UNMAP_NOTIFY_SEND_EVENT can be freed by the evtchn device before gntdev uses
 it (use after free)
Date: Tue, 24 Nov 2026 09:47:01 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300890-227-WS2ckCROIo@https.bugs.freebsd.org/bugzilla/>
References: <bug-300890-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="31745"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795513621;
	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=F0mQ+/uQUzVqd7RDQ4lkkc4Uwga32dcY9BDeKkDUHnY=;
	b=h4nhWEeCruB99JMAkEbi9qBptiOZAwX511YtoHx+onkZxr9W5cKrWBD/DemrOak5/XvSZg
	YF768S6EZ6lXOrP1mSCdNiy8q6RVYZZ3w5cwPPzIzntA+OidJfmMS2+5kcxLLzoYjCqtkp
	WJzBhURgelDb85CGAv+PEr/bnRHKgPHzWHU1iJZJ1YJJ6AIyIhA2GB+e1rEQPVKmYqrYlH
	2ETbG3lwMrRL6WKgRs8yn0JoFhMwmDYzbyMZpeCvw7f4+8utI4s83eXKLv9IYOGP2rHAhm
	cFi39S8Xqj5cN0p+C+TJAy9OMej3esXtrc/gYlCECvhfO4Imf7VgfLhbLON4Cg==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-300890-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes