On Tue, Dec 8, 2020 at 9:48 AM Mark Johnston <ma...@freebsd.org> wrote:
>
> On Tue, Dec 08, 2020 at 09:39:05AM -0600, Kyle Evans wrote:
> > On Tue, Dec 8, 2020 at 9:30 AM Mark Johnston <ma...@freebsd.org> wrote:
> > > kern_proc_filedesc_out() holds the fdtable shared lock thoughout all of
> > > this, which is supposed to prevent the table entry from being freed
> > > since that requires the exclusive lock.
> > >
> >
> > export_file_to_sb drops the lock without it or kern_proc_filedesc_out
> > holding the file it's about to look at, though.
>
> Yes, but that's after it calls fo_fill_kinfo().  At that point it has
> already collected the to-be-exported info in an sbuf.

Whoops, indeed- sorry.
_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to