[Bug 230498] Fatal trap 12: page fault while in kernel mode in sysctl_dumpentry from sysctl NET_RT_DUMP

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 22 06:36:09 UTC 2018


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

Andrey V. Elsukov <ae at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #199372|0                           |1
        is obsolete|                            |

--- Comment #15 from Andrey V. Elsukov <ae at FreeBSD.org> ---
Created attachment 199444
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=199444&action=edit
Proposed patch (for stable/12+)

Simplify the patch, remove the check for IFF_UP. 
ifnet pointer should be safe to dereference while we in NET_EPOCH section.
Also, since if_addr now kept unchanged, it is safe to dereference it too.

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


More information about the freebsd-net mailing list