Assert pcbinfo lock in in_pcbdisconnect() and in_pcbdetach(), as the
global pcb lists are modified. MFC after: 7 days
This commit is contained in:
parent
3ca1570c82
commit
6b348152be
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146859
@ -692,6 +692,8 @@ void
|
||||
in_pcbdisconnect(inp)
|
||||
struct inpcb *inp;
|
||||
{
|
||||
|
||||
INP_INFO_WLOCK_ASSERT(pcbinfo);
|
||||
INP_LOCK_ASSERT(inp);
|
||||
|
||||
inp->inp_faddr.s_addr = INADDR_ANY;
|
||||
@ -711,6 +713,7 @@ in_pcbdetach(inp)
|
||||
struct socket *so = inp->inp_socket;
|
||||
struct inpcbinfo *ipi = inp->inp_pcbinfo;
|
||||
|
||||
INP_INFO_WLOCK_ASSERT(pcbinfo);
|
||||
INP_LOCK_ASSERT(inp);
|
||||
|
||||
#if defined(IPSEC) || defined(FAST_IPSEC)
|
||||
|
Loading…
Reference in New Issue
Block a user