[Bug 293382] Dead lock and kernel crash around closefp_impl

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Apr 2026 13:13:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293382

--- Comment #49 from Paul <devgs@ukr.net> ---
(In reply to Kyle Evans from comment #48)

No problem at all, and...

(kgdb) p kq->kq_knlist[76954]
$4 = {
  slh_first = 0x0
}
(kgdb) p kq->kq_knlist[211098]
$5 = {
  slh_first = 0xff0100772fd78668
}
(kgdb) p *kq->kq_knlist[211098].slh_first
$6 = {
  kn_link = {
    sle_next = 0x0
  },
  kn_selnext = {
    sle_next = 0xffffffffffffffff
  },
  kn_knlist = 0x0,
  kn_tqe = {
    tqe_next = 0xffffffffffffffff,
    tqe_prev = 0xffffffffffffffff
  },
  kn_kq = 0xff01000107b11500,
  kn_kevent = {
    ident = 76954,
    filter = -1,
    flags = 32,
    fflags = 0,
    data = 0,
    udata = 0x1b2102fcfc40,
    ext = {0, 0, 0, 0}
  },
  kn_hook = 0x0,
  kn_hookid = 0,
  kn_status = 8,
  kn_influx = 1,
  kn_sfflags = 0,
  kn_sdata = 0,
  kn_ptr = {
    p_fp = 0xff010062f4444af0,
    p_proc = 0xff010062f4444af0,
    p_aio = 0xff010062f4444af0,
    p_lio = 0xff010062f4444af0,
    p_prison = 0xff010062f4444af0,
    p_v = 0xff010062f4444af0
  },
  kn_fop = 0xffffffff814dd960 <soread_filtops>
}


76954 seems to be on the list of 211098. But this perfectly matches preceding
cases: some mixing of unrelated fds.

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