[Bug 277849] [bge] panic when attaching if_bge on Supermicro H13SSL-N

2024-04-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277849

--- Comment #4 from Martin Matuska  ---
Created attachment 249689
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=249689=edit
Workarounbd patch

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


[Bug 277849] [bge] panic when attaching if_bge on Supermicro H13SSL-N

2024-04-03 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277849

--- Comment #3 from Martin Matuska  ---
I can confirm that this workaround avoids the panic makes the network card
operate:

--- a/sys/net/if_media.c
+++ b/sys/net/if_media.c
@@ -272,19 +272,19 @@ ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr,
struct ifmedia *ifm,
/*
 * Get list of available media and current media on interface.
 */
case  SIOCGIFMEDIA: 
case  SIOCGIFXMEDIA: 
{
struct ifmedia_entry *ep;
int i;

-   if (ifmr->ifm_count < 0)
+   if (ifmr->ifm_count < 0 || ifm->ifm_status == NULL)
return (EINVAL);

if (cmd == SIOCGIFMEDIA) {
ifmr->ifm_active = ifmr->ifm_current = ifm->ifm_cur ?
compat_media(ifm->ifm_cur->ifm_media) : IFM_NONE;
} else {
ifmr->ifm_active = ifmr->ifm_current = ifm->ifm_cur ?
ifm->ifm_cur->ifm_media : IFM_NONE;
}

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


[Bug 277849] [bge] panic when attaching if_bge on Supermicro H13SSL-N

2024-03-20 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277849

Mark Linimon  changed:

   What|Removed |Added

   Assignee|b...@freebsd.org|n...@freebsd.org
   Keywords||crash

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