From nobody Sun May 12 16:13:15 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 4Vcnj86QHLz5KHGC for ; Sun, 12 May 2024 16:13:16 +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 4Vcnj85Kc5z4Rts for ; Sun, 12 May 2024 16:13:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715530396; a=rsa-sha256; cv=none; b=UQGzGf1Sv5S9juapvJHaYkeGvziUWGfa6UcW14Sr+m8N/L8STnnVbrSL3p7aSVWvdZZyzx TXIyHAWGDZ2CF9tbNJvitPB0EPky4dV1NLLUxDPbywrdogIxWkLPrVe/FgRGqzauJwBP0E 8x2yIYl2xg6alahLt9fFpwIDnrfYsZ4P3DdqUviqS4kM4cRN0gPcU+DZraFzhTN6uW+zSU BgmHfxxXHoG8EBqVAJYvMJ4LMs1EjbmF8G5vTeC09H+pSL7FCY0MBDsJpHAPzetzvbJE7K Lqw2CPjPWaUTunzTiio61RIyRcv2+vL6X8NTjJZR0UWjn6gq0zEWw0yCQiSaCQ== 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=1715530396; 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=S9ObzXvVKg1Okqg3aPAIqP8iEuOQ2ZQm5f6n33+t1Ko=; b=EUdcmxkOrp9ktXeH4YOUatx6LxXLOgb/Uy4sMZyFPdA494zQVGdtO50JK3OhWBnhWrtOrf Ezkci0GP0kZp+j4vP3AcIeS44dkPgRJCvU6WejtXfS3TWl/miuqq4lX4AjFhflmqL8MhwI c1mqmMBDcAGBz+PAQT8DzhYzn5BAfWIfVqGGoGjpzpdyNlGbBX6MyImprt3+QaIcktAE0G ryoG3LTq9p2xK8UuEWGVJN5RfnqlSfe0VVSrgn56LaZkuX/AUcV72yvAGMpzbFqfIRdBeB 0t/cWnS8h2QbcxQw+srn1IVE65X5Aov+nNWRjN89U9DtKcMPrIMqE+AgtXyARw== 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 4Vcnj84tQ6z19X6 for ; Sun, 12 May 2024 16:13:16 +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 44CGDGvt012470 for ; Sun, 12 May 2024 16:13:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44CGDGZj012465 for net@FreeBSD.org; Sun, 12 May 2024 16:13:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 275920] Kernel crash in sys/netlink/route/iface.c:124 Date: Sun, 12 May 2024 16:13:15 +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-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@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=3D275920 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9a8a26aefb366ef6f497d48547a1562a1= de566c1 commit 9a8a26aefb366ef6f497d48547a1562a1de566c1 Author: Kristof Provost AuthorDate: 2024-05-06 09:39:08 +0000 Commit: Kristof Provost CommitDate: 2024-05-12 16:12:04 +0000 if: guard against if_ioctl being NULL There are situations where an struct ifnet has a NULL if_ioctl pointer. For example, e6000sw creates such struct ifnets for each of its ports s= o it can call into the MII code. If there is then a link state event this calls do_link_state_change() -> rtnl_handle_ifevent() -> dump_iface() -> get_operstate() -> get_operstate_ether(). That wants to know if the link is up or down, so= it tries to ioctl(SIOCGIFMEDIA), which doesn't go well if if_ioctl is NULL. Guard against this, and return EOPNOTSUPP. PR: 275920 MFC ater: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 43387b4e574043b78a58c8bcb7575161b055fce1) sys/net/if.c | 3 +++ 1 file changed, 3 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=