[Bug 293382] Dead lock and kernel crash around closefp_impl

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 31 Mar 2026 09:30:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293382

--- Comment #35 from Konstantin Belousov <kib@FreeBSD.org> ---
(In reply to Paul from comment #34)
No, the problem is the knote found on the kq_knlist[ident] belongs to different
kqueue.
In other words, kn->kn_kq != kq.  This is why the assert about owning the kq
lock
failed.

This is very strange thing to happen, but it is consistent with the previous
report.
Lets add asserts everywhere that kn->kn_kq is matching the code expectation. 
Also I am somewhat suspicious of kqueue_expand(), I added a check after
bzero().

What is the CPU that you use?  Show the CPU ident lines from the verbose dmesg.
Or/and, show the output from 'cpuid-etallen -1'.

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