[Bug 241106] tun/ppp: panic: vm_fault: fault on nofault entry when bringing ppp interface down

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 16 20:13:25 UTC 2019


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

lenzi.sergio at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lenzi.sergio at gmail.com

--- Comment #4 from lenzi.sergio at gmail.com ---
Created attachment 208370
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=208370&action=edit
this patch test for null pointer in rtsock.c

system panics on rtsock.c for the reason that rt->rt_ifp->if_addr have a null
pointer. 
It is not clear the reason rt->rt_ifp->if_addr have a null pointer but when 
try to access rt->rt_ifp->if_addr->ifa_addr near line 1578 of rtsock.c the
system panics... 

I also insert code of RTSOCK_LOCK/RTSOCK_UNLOCK  on any ioctl call, and since
than, the system does not panic any more..

A more study must be done where/why rt->rt_ifp->if_addr comes NULL,  and in
that case the colunm Netif from the command: netstat -4rn  either shows ""
(nothing)  or "---".  when this happens, the system panics some minutes
later...

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


More information about the freebsd-net mailing list