[Bug 227720] Kernel panic in ppp server
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Nov 27 09:04:48 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227720
--- Comment #39 from commit-hook at freebsd.org ---
A commit references this bug:
Author: ae
Date: Tue Nov 27 09:04:06 UTC 2018
New revision: 341008
URL: https://svnweb.freebsd.org/changeset/base/341008
Log:
Fix possible panic during ifnet detach in rtsock.
The panic can happen, when some application does dump of routing table
using sysctl interface. To prevent this, set IFF_DYING flag in
if_detach_internal() function, when ifnet under lock is removed from
the chain. In sysctl_rtsock() take IFNET_RLOCK_NOSLEEP() to prevent
ifnet detach during routes enumeration. In case, if some interface was
detached in the time before we take the lock, add the check, that ifnet
is not DYING. This prevents access to memory that could be freed after
ifnet is unlinked.
PR: 227720, 230498, 233306
Reviewed by: bz, eugen
MFC after: 1 week
Sponsored by: Yandex LLC
Differential Revision: https://reviews.freebsd.org/D18338
Changes:
head/sys/net/if.c
head/sys/net/rtsock.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-net
mailing list