From nobody Mon Dec 25 09:44:27 2023 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 4SzCfh5WFJz54Q7n for ; Mon, 25 Dec 2023 09:44:28 +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 4SzCfh4Sk5z4M65 for ; Mon, 25 Dec 2023 09:44:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703497468; a=rsa-sha256; cv=none; b=aFDLkwmly4qfUx1XR/+TQhpDXjhRgs5ZGbyKo8v5eURcp0eLKQTb9iLCYc02YyIXw1ab/r zL0uU6o/9Og4vxu1Yaa5jJ/s9A8GQLnGf0oJMsW4PBBehbDtRoyKiFKx+eh4Tn6kWbEaT9 f9xwj3o2NlHxsU6nNoYNxCExqSOaHcPmL0Iu+C7zW8E+kd8g1PrUMJ+wWutv41h9RT17VA LFL79VKe42ahmuBm5C/BtCv8Hha2RTz0BlzMmED0TBO46eRsd7QfLWzyFYJBrh8So/gDw9 BaUZz6uPqHevbP7xKN6Vy+Xr+t6usm8ihVAs0iEodMclfkZ2BX60fgbfXWHvYg== 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=1703497468; 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=xFgCclxlXP8Q9atW0FdIxyBnbwsLDy/WAY2455oCrzE=; b=SdYmGa62IBCLRE+ZoQfuta78O0Vh6friPnbne+4Kc/CQiouJz8/FE2etCe6Cj3LnRDEaaY MkJRmteqiN/6K1IQOpXyQlgN5PXnH7+GWhBeniV5YfkESCFrVICp31/qKazj0YAmwO+yS2 c4o9S4M2hLTPBPC/BGLuhsfs13H4nFX6cx5xFQir1pF3qln/dlqjc/4HaDy/KfURK2N5db uGWYbbJP6mC1mC4QD3NonGblZyaiIBEFDloHitjyZr3ZLsAZa2BKpRbfD0oUmnYnmXbekE iaNbFV496fFKI2ey5mZgzRsE8gTCOypc0O9HhDwkk8920nTfXIi438nMgjIglQ== 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 4SzCfh3Y2Yz15fl for ; Mon, 25 Dec 2023 09:44:28 +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 3BP9iSJM051811 for ; Mon, 25 Dec 2023 09:44:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BP9iS1d051810 for net@FreeBSD.org; Mon, 25 Dec 2023 09:44:28 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 275920] Kernel crash in sys/netlink/route/iface.c:124 Date: Mon, 25 Dec 2023 09:44:27 +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: kp@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: cc 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 Kristof Provost changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jhibbits@FreeBSD.org, | |kp@freebsd.org, | |loos@FreeBSD.org, | |mizhka@FreeBSD.org --- Comment #2 from Kristof Provost --- That's interesting. The cause is fairly obvious. e6000sw creates struct ifn= ets that don't have an ioctl handler, and that's triggering this crash. The following is probably the best fix, assuming that the ioctl-less e6000sw ifnet is intentional: diff --git a/sys/net/if.c b/sys/net/if.c index 9f44223af0dd..c3c27fbf678f 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -4871,6 +4871,9 @@ if_resolvemulti(if_t ifp, struct sockaddr **srcs, str= uct sockaddr *dst) int if_ioctl(if_t ifp, u_long cmd, void *data) { + if (ifp->if_ioctl =3D=3D NULL) + return (EOPNOTSUPP); + return (ifp->if_ioctl(ifp, cmd, data)); } --=20 You are receiving this mail because: You are the assignee for the bug.=