Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Nov 2018 14:20:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 230498] Fatal trap 12: page fault while in kernel mode in sysctl_dumpentry from sysctl NET_RT_DUMP
Message-ID:  <bug-230498-7501-GqbDhNw8iS@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-230498-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-230498-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230498

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

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

--- Comment #17 from Andrey V. Elsukov <ae@FreeBSD.org> ---
Created attachment 199449
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D199449&action=
=3Dedit
Proposed patch

I think this patch can be used for both FreeBSD 12 and 11. Use
IFNET_RLOCK_NOSLEEP() to protect from interface destroying during routes
iteration. In if_detach_internal() mark interface as dying just after we re=
move
it from the ifnets list. In sysctl_dumpentry() add the check, that interface
was not destroyed before doing the access.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230498-7501-GqbDhNw8iS>