From nobody Wed Apr 3 23:17:49 2024 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V90z34fk4z5G63d for ; Wed, 3 Apr 2024 23:17:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V90z31mR1z4hqn for ; Wed, 3 Apr 2024 23:17:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712186271; a=rsa-sha256; cv=none; b=PeGdLMC/DdHYBYiE2LJiFXArKm3UWteMTk52BtZsK007SPDDNabamnuYA4xostcanlGhXv Ca2ku3Waw5Xq1K5cd98PmQZDCvjLR0PmhXwUWyNMpqa+u3wJybbZ/6PZPztCdNvLRG7hiD PeNJdkSmRQHThwc37TXdq/F4Ycfbz62E8AOtc1AwR75pygARdyw/DgqjDqppqHdfh6HzoT ZS5Zq0VCysmC5+Uj9oRqmHsTD1forwwCMEApRpMHa9J03hGBXMqtSHaVzszoB70CawGxCh ZDMgpQF0fiF8IruEEIPqKYv7AgHiO7xYPDqd7m3lUhCrFOoEjRbpSHzhnalFlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712186271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fwZ2W2RO4paAJYjigNM0D3pCf+XD/uZk1q6aXwzkVkI=; b=E7P+0fPBOFGGvRzN3wjU+lkP9gVIpqAZcpGCJbx+yj252Q6BEHRAr6ePxbXI08WLyr5TWP mTfe/xn/BDG+Q2vDMgC4YhRspi/AqMUjBZNgGTanUz3gNqRO+sZvWpIKnlKfb8No9mE1gy jNaKneiHONEQFhKKLKtc85Nbsmh5EvEd6mhiUDgG3KyR6cV+ldzD9XKiB9hb8DUS1Nbif+ tRTNziA7ZArzDM5CaH9w3xaNxqoCw/dNESDCDrNWX0jL4ufJ56V+4NqKSikQsxdwSIm96q vvN1wibAnnUcSYvWm6Rei750nKo922WDTbQ/EV0rx/AQ36igeCf91wGw66LF3A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V90z31NpSzsNw for ; Wed, 3 Apr 2024 23:17:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 433NHpue026954 for ; Wed, 3 Apr 2024 23:17:51 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 433NHpoG026943 for net@FreeBSD.org; Wed, 3 Apr 2024 23:17:51 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 277849] [bge] panic when attaching if_bge on Supermicro H13SSL-N Date: Wed, 03 Apr 2024 23:17:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mm@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277849 --- 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:=20 case SIOCGIFXMEDIA:=20 { struct ifmedia_entry *ep; int i; - if (ifmr->ifm_count < 0) + if (ifmr->ifm_count < 0 || ifm->ifm_status =3D=3D NULL) return (EINVAL); if (cmd =3D=3D SIOCGIFMEDIA) { ifmr->ifm_active =3D ifmr->ifm_current =3D ifm->ifm= _cur ? compat_media(ifm->ifm_cur->ifm_media) : IFM_NON= E; } else { ifmr->ifm_active =3D ifmr->ifm_current =3D ifm->ifm= _cur ? ifm->ifm_cur->ifm_media : IFM_NONE; } --=20 You are receiving this mail because: You are the assignee for the bug.=