ent CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VjTwg2fkqz4dZ2 for ; Mon, 20 May 2024 07:39:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716190771; a=rsa-sha256; cv=none; b=Mx9QfCIHNLyAn6mqxKix3vVkbthjlFSHtmVl5rQN+igAzrT52ZYo9Th0Xep2Xk6xjI74V+ ufK2vXA4uymZnl63zcrAQEYxMO9yGUdZreDL3FrJKwtBfQnh6UA2HllbBJYUEaxAEMp/4T b0B8FHefZEeoyyKyH48ovwNdFN2rkCIUUgXJMYlhgwH9B66kOsrHVeEIu+DXNY/UQYrW8K FWbeIBw1LgQ8mMQbs6F06418wrQYYMt3SN7Iy94S+n/5kMVKPeRe0X9qiZE4uCC1UH6xtC Ke56XF74sAWh8ZiJlFiDmyx/09L0Q/Ofhz1z9/EAJDNrYzbt+Ynasvb0Y2kyNw== 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=1716190771; 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=+m6HQf1UL1FLoq2FFFJnsRFajmzlsTYxTAJs/i8Bgcc=; b=vu6NrePDZXDPciwn7NPjuihegyL2VXw8wVQ8cdtLIUDzBJGA3tGtbkqhFDaEEy9yYyori9 ROCQEL5HHCk/kA+nQn+l8/LEYq7dVY1DjCe+NeXgdiW4BFKNJ9lkVhH5w8CzMYGI+xsqY/ oc/L5/dCIdg70i57HazRI3zoqunMoOusHPw4BILby4utfs1gBLP0qESCLsL5GFrctqFrK8 AhhSxUp2YsgYTYP6VW8SLcBpTuppoHmRIMnFzgIc2ItxVR/413XeU7YcIDEbUatFYNRqxX a0jkEfGtywMNZmiOpBqb4Mk3TjArvIa6nri497J8aIevx5YRkl0HXv3+G51iOQ== 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 4VjTwg2GLbzT1d for ; Mon, 20 May 2024 07:39:31 +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 44K7dVfc006910 for ; Mon, 20 May 2024 07:39:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44K7dV3b006909 for net@FreeBSD.org; Mon, 20 May 2024 07:39:31 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: Mon, 20 May 2024 07:39:30 +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 #9 from commit-hook@FreeBSD.org --- A commit in branch releng/14.1 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dfecd303882565954f58d984e4a13735e0= 80b5263 commit fecd303882565954f58d984e4a13735e080b5263 Author: Kristof Provost AuthorDate: 2024-05-06 09:39:08 +0000 Commit: Kristof Provost CommitDate: 2024-05-20 07:38:40 +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 Approved by: re (cperciva) Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 43387b4e574043b78a58c8bcb7575161b055fce1) (cherry picked from commit 9a8a26aefb366ef6f497d48547a1562a1de566c1) sys/net/if.c | 3 +++ 1 file changed, 3 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.=