[Bug 246951] Regular crash: panic, trap_pfault, ip_input || ip_output using ipSec, AES-NI & CARP

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 3 14:44:41 UTC 2020


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

Mark Johnston <markj at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj at FreeBSD.org

--- Comment #1 from Mark Johnston <markj at FreeBSD.org> ---
I looked at the ip_input() and ip_output() faults.  ip_input() is crashing
here:

 709   if (ifp != NULL && ifp->if_flags & IFF_BROADCAST) {                      
 710           IF_ADDR_RLOCK(ifp);
 711           TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
 712                   if (ifa->ifa_addr->sa_family != AF_INET) <- null
ifa_addr
 713                           continue;

and ip_output() is crashing here:

 678                 if (error == 0) {                                          
 679                         /* Record statistics for this interface address.
*/
 680                         if (ia != NULL) {
 681                                 counter_u64_add(ia->ia_ifa.ifa_opackets,
1);
 682                                 counter_u64_add(ia->ia_ifa.ifa_obytes,
 683                                     m->m_pkthdr.len);
 684                         }

So there is some race involving interface address changes.

It would be useful to see the dmesg leading up to the panic.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list