Well, the crash is repeatable on the one week old daily snapshot current
kernel. Again, here is the current kernel I am using:
NetBSD 8.99.17 (XEN3_DOMU) #0: Wed May 16 21:54:38 UTC 2018
mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/xen/compile/XEN3_DOMU
What is happening is ... crazy.
With the current kernel, when the remote client connects, we get caught in
an endless loop of creating ipsec security associations. The log shows phase1
is created, then the phase2 associations, then we respond to negotiate a new
phase1 and two new phase 2's, and I think this loop just continued until we
ran out of memory. The windows client actually thought we were connected and
showed it was connected in the network control panel, but the racoon log
never reported that a ppp interface was up. When you look at the attached
snippets from the logs, I bet you will agree that many ppp interfaces and
ipsec SAs were created and when we finally ran out of memory to create
another one, we crashed. I say this because the trace indicated the crash
occurred at this branch. [1]. From the console at the start of the crash
report, I got this:
[ 334.5292103] panic: kernel diagnostic assertion "IFNET_LOCKED(ifp)" failed: file "/usr/src/sys/net/if.c", line 3595
I don't understand line 3595 because if.c only has 661 lines, unless there
was a mistake in how I copied it from the log.