On 08/08/17 13:56, Slawa Olhovchenkov wrote:
On Tue, Aug 08, 2017 at 01:49:08PM +0200, Hans Petter Selasky wrote:

On 08/08/17 13:33, Slawa Olhovchenkov wrote:
TW_RUNLOCK(V_tw_lock);
and
if (INP_INFO_TRY_WLOCK(&V_tcbinfo)) {

`inp` can be invalidated, freed and this pointer may be invalid?

If you look one line up there is a pcbref ??

Yes.
Can different thread take this inp and freed it?
May be timer thread?

No, it cannot be freed while there is a ref.

Some lines down the ref is dropped once the inp pointer is no longer needed.

--HPS
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to