[Bug 286530] panic during kldload if network drivers (if_vr, if_re) in ether_ifattach -> rtnl_handle_ifevent -> ifmedia_ioctl -> NULL ifm_status
Date: Wed, 07 May 2025 04:22:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286530
--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=68e73f03655c308442a8354ee2c040df23f234b6
commit 68e73f03655c308442a8354ee2c040df23f234b6
Author: Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2025-05-03 15:41:56 +0000
Commit: Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2025-05-07 04:22:18 +0000
sys: don't panic on ifm_status being NULL
Some ethernet drivers that use miibus aren't probe/attaching the
miibus early enough for the ifioctl path to correctly run without
panicing.
Although yes, the drivers do need fixing, this stops them from
immediately panicing the kernel when they're loaded.
PR: kern/286530
Differential Revision: https://reviews.freebsd.org/D50136
Reviewed by: jhb
sys/net/if_media.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
--
You are receiving this mail because:
You are the assignee for the bug.