Page MenuHomeFreeBSD

Relax INP_INFO_UNLOCK_ASSERT() assertion in tcp_input()
ClosedPublic

Authored by ae on Sep 27 2018, 11:12 AM.
Tags
None
Referenced Files
F173387294: D17335.diff
Fri, Sep 25, 3:22 PM
Unknown Object (File)
Fri, Sep 18, 11:15 AM
Unknown Object (File)
Fri, Sep 11, 1:40 PM
Unknown Object (File)
Fri, Sep 11, 12:38 PM
Unknown Object (File)
Thu, Sep 10, 6:20 PM
Unknown Object (File)
Thu, Sep 10, 2:18 PM
Unknown Object (File)
Wed, Sep 9, 3:21 PM
Unknown Object (File)
Wed, Sep 9, 11:19 AM
Subscribers

Details

Summary

After rS334671 encapsulated traffic always handled in net_epoch_preempt section.
In case, when TCP session uses IP addresses configured on tunneling interfaces and INVARIANTS is enabled, INP_INFO_UNLOCK_ASSERT() fires.
This patch relaxes requirements for this assertion by removing !in_epoch(net_epoch_preempt). New macro INP_INFO_WUNLOCK_ASSERT() added, it only requires that tcbinfo mutex is not owned.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231428

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Assuming this change is tested somehow...

This revision is now accepted and ready to land.Sep 30 2018, 12:21 PM
This revision was automatically updated to reflect the committed changes.