in6_mcast: in6_joingroup attempts to acquire IN6_MULTI_LOCK when sleeping prohibited

2019-10-17 Thread Xin Li via freebsd-net
I have seen this on boot of my laptop. It appears that in6_joingroup() was called in netisr_dispatch_src codepath, and it tried to acquire IN6_MULTI_LOCK(), which happened to sleep because we failed to acquire the sx, thus triggered the panic. === panic: sleepq_add: td 0xf8000ecd6000 to slee

RE: panic on invalid ifp pointer in iflib drivers

2019-10-17 Thread Keller, Jacob E
> -Original Message- > From: John Baldwin > Sent: Thursday, October 17, 2019 4:34 PM > To: Keller, Jacob E ; freebsd-net@freebsd.org > Cc: sh...@llnw.com; Joyner, Eric > Subject: Re: panic on invalid ifp pointer in iflib drivers > > On 10/17/19 4:22 PM, Keller, Jacob E wrote: > > Hmm.. n

Re: panic on invalid ifp pointer in iflib drivers

2019-10-17 Thread John Baldwin
On 10/17/19 4:22 PM, Keller, Jacob E wrote: > Hmm.. now that I look at that more closely I think it's a separate issue. This may just be the rcvif issue where we don't reference count the ifp we store in rcvif in mbufs? That was my reaction to your first e-mail except that you said it wasn't repr

RE: panic on invalid ifp pointer in iflib drivers

2019-10-17 Thread Keller, Jacob E
> -Original Message- > From: Keller, Jacob E > Sent: Thursday, October 17, 2019 4:22 PM > To: John Baldwin ; freebsd-net@freebsd.org > Cc: sh...@llnw.com; Joyner, Eric > Subject: RE: panic on invalid ifp pointer in iflib drivers > > > -Original Message- > > From: John Baldwin > >

RE: panic on invalid ifp pointer in iflib drivers

2019-10-17 Thread Keller, Jacob E
> -Original Message- > From: John Baldwin > Sent: Thursday, October 17, 2019 9:31 AM > To: Keller, Jacob E ; freebsd-net@freebsd.org > Cc: sh...@llnw.com; Joyner, Eric > Subject: Re: panic on invalid ifp pointer in iflib drivers > > Nominally, ifnet drivers should call ether_ifdetach fir

RE: panic on invalid ifp pointer in iflib drivers

2019-10-17 Thread Keller, Jacob E
> -Original Message- > From: John Baldwin > Sent: Thursday, October 17, 2019 9:31 AM > To: Keller, Jacob E ; freebsd-net@freebsd.org > Cc: sh...@llnw.com; Joyner, Eric > Subject: Re: panic on invalid ifp pointer in iflib drivers > > On 10/16/19 2:16 PM, Keller, Jacob E wrote: > > Hi, > >

Re: panic on invalid ifp pointer in iflib drivers

2019-10-17 Thread John Baldwin
On 10/16/19 2:16 PM, Keller, Jacob E wrote: > Hi, > > I'm investigating an issue on the iflib ixl driver in 11.3-RELEASE as well as > 12-RELEASE. We found a panic in that occurs if SCTP/IPv6 traffic is being > transmitted while the device is detached: > > Fatal trap 12: page fault while in kern

Re: ipsec on multicore VM

2019-10-17 Thread Eugene Grosbein
09.10.2019 2:05, Victor Gamov wrote: > I have FreeBSD 11.2-STABLE #0 r343863 VM with 2 CPU and vxnet3 NIC. This host > uses many if_ipsec and strongswan-5.7.2 to make site-to-site ipsec > connections. > > When I use `tcpdump -nn -i src and esp` then I got > many reordered IPsec packets. > >