From nobody Fri Feb 20 06:48:57 2026 X-Original-To: bugs@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 4fHLSV0B7Dz6SHyK for ; Fri, 20 Feb 2026 06:48:58 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fHLST6mM0z3lNX for ; Fri, 20 Feb 2026 06:48:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771570137; 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; bh=EOxwi1f0eGUd4g5IBOEDw5OTTUbEJE0sKx/skJqHaEA=; b=SUXmQc1Z/Ols2ba88A+Vgkf4+HU+qRV2HOh9HRbAURm/HihE8EJvPpt1AdiYM8gw4xiDBz 7hEt4pFNhP9vX5FOBH9XoxhaU4a0/bC0HkrIMOSbHvqfALFEAeQI4YQEVSqkkgOzIVgUzy k8GoFIFURix8cyzt4bXmCRjqLyGkY/vKTtQpuWmuH4oxtlq8N/KrN5BrmQqZF3tro+8bsF C/e1G6iyVRDUXcuJNCG2tLx4ERhjIw7+YUbuS4g0caLrdFd5I8zO/5VSGLx2g3M3wnBbSX afecJ/Spqa4aFek8GxnwfZtS43NQpzxu6CeCg7eb0rI5eqDRop26rZbmim6fDw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771570138; a=rsa-sha256; cv=none; b=Md+PZKJSFofTT2K+6KSwB3oNJLNSG0+4hPAFfW8y7EhiDAYgL2xfIu8ak36iOf+XAf3AIa Yj8Ov24Tj6ga5kpu4o4bjYM3mowZ/N+tcIrIB2FG9Jj+e3iHYO8R1/vZ64rxUGVR5kJMqB oAqC1nFnXk+g1h1sbKiVT4pQwZpxi64DDh5jV2yYRiqg/7/4cIJmGJ7QPMj1yiSOvfwgGj 1Uv4a9m2eNgnrNrxinoVJL/IyOf0p+d0ycX/7wvAqs8I03IDY8plppC4NK0C1xjTshfkVs jchRZMBzk4nmIWR9i6gOs2N3ME3WZXDMS5uYxNplvd9uE/taMNrfZV7Je2ipMg== 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=1771570137; 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; bh=EOxwi1f0eGUd4g5IBOEDw5OTTUbEJE0sKx/skJqHaEA=; b=hwP72tiFcPsfRNpwmSALF/JOaItwzp3lvzSWMN2UQKSSXYcVOr7bIFeSEqt7ljonD/GKHp BhxoyjJ06+bbU7ASxYWS6nuXzxosMVnDRA9XrSyKN1W7iEseRaLBRnBgkTcb5O9X8d1Rk8 3JfPeHtc2Dp9gxJKjS82H3zdGlgt0KYOWJMXMMSBCkHR0VtVjodXj5O5Z9gE3KNA1c3xr0 MDWAZSDjQwnpE+ReGw8DP4SJjRK2JPevdTJclPogKPQsGarQYlMdntF2rk8GT8cB9vAcrz 2ISnrBm6WWy4dNdcjKSiWJaWlEWrWqswF5YMNPM9IRwt96PTZtOCQ7t0FJpJ2g== 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 4fHLST69Wfz1x9 for ; Fri, 20 Feb 2026 06:48:57 +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 61K6mv2f078139 for ; Fri, 20 Feb 2026 06:48:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 61K6mvlJ078138 for bugs@FreeBSD.org; Fri, 20 Feb 2026 06:48:57 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: bugs@FreeBSD.org Subject: [Bug 293307] if_rge detach cleanup for crash when error occurs during attach Date: Fri, 20 Feb 2026 06:48:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: john@cybersashi.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293307 Bug ID: 293307 Summary: if_rge detach cleanup for crash when error occurs during attach Product: Base System Version: 14.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: john@cybersashi.com Created attachment 268203 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D268203&action= =3Dedit Updated patch for crash As requested in Bug 292879 here's an updated patch for if_rge to avoid cras= hing in detach if an error occurs while attaching. The additional changes are to avoid calling bus_dmamap_unload if the memory hasn't been allocated and to postpone zeroing q->q_tx / q->q_rx until after the related buffers have been freed. The code to handle an all zeros eaddr is included just because (obviously unrelated to the panic). Tested on a FriendlyElec NanoPC-T6 LTS RK3588 where at the moment rge reset= is falling during the attach probably due to recent platform code changes (I'm= in the process of bringing up FreeBSD on this platform). --=20 You are receiving this mail because: You are the assignee for the bug.=