When an SCTP application using an SCTP socket crashes an a core file has to be written, the kernel panics. The reason is that pru_sockaddr and pru_peeraddr are called by soo_fill_kinfo without setting the vnet. However, when pru_sockaddr and pru_peeraddr are called via the syscall interface, the vnet is set. A patch setting the vnet also in soo_fill_kinfo is under review in
D13652.