Date: Mon, 29 Sep 2025 15:27:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 289120] A time-of-check to time-of-use race exists in gpioc_kqread() of GPIO subsystem Message-ID: <bug-289120-227-jcBaT4SFsj@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-289120-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289120 --- Comment #6 from Ahmad Khalifa <vexeduxr@FreeBSD.org> --- The priv->mtx lock is given to kqueue through knlist_init_mtx (which is called in gpioc_open). It gets locked by knlist_mtx_lock (which is a generic implementation, since we never give one to kqueue) before it calls the knote's f_event (which in our case is gpioc_kqread). As for the ioctl race, yes, that does look like an oversight. I will try to get that fixed ASAP. Thank you for the report. :) -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-289120-227-jcBaT4SFsj>
