NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/59681: npf: missing locking around inpcb_lookup in uid/gid checks



The following reply was made to PR kern/59681; it has been noted by GNATS.

From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost, netbsd-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/59681: npf: missing locking around inpcb_lookup in uid/gid checks
Date: Wed, 1 Oct 2025 12:04:40 +0000

 Longer-term, we need to make inpcb access work under pserialize(9).
 But that's a larger change that requires some care -- e.g., we really
 don't want to do a pserialize_perform for every socket close, so we'll
 need to queue them for batches of garbage collection of some sort.
 For now, and particularly for correctness in netbsd-11, we'll just
 need to take softnet_lock.
 


Home | Main Index | Thread Index | Old Index