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:
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 ??

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.

freebsd-net@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to