From nobody Mon Jan 22 14:26:19 2024 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 4TJXb01RYBz581CK for ; Mon, 22 Jan 2024 14:26:20 +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 4TJXZz6JHSz47ZZ for ; Mon, 22 Jan 2024 14:26:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705933579; 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=a9jFdFzNnq+4+mDztVE3lNqTNUE6fGOJ7R4Y24pkIS8=; b=pTQABpadA9Bo6SkKOEHT6icYgTLFsntkIfq68Bc8t7+qM4saxiLOi39Na+tKRZA3lC5D0x Mi3kzGdvMTygIp1kMm5pv6nUMqfaEY1V+m3L40I4BBGcBXNLrclP9aOqPiI1bXyx5rLI+X 5ZQRXbXCtnprMrSRCj057qi0zFmB9i8j6P6HJuI3NwUImOYPCTX3vgPFu3UXpEDLdqXHGc pGfIpbUyOHYw4PFePZmSbp/dfjzh62CbgqX2AodEq/3nkj+YmTku+oW7SDVYBm9bYsQMHN qlDQNF4d3SKrYcosTr5xBAjzLDZen4M2UtBB8faUVLNhNYoiOTUj6axrzlCrsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705933579; a=rsa-sha256; cv=none; b=FDgFnxhkxS44/oLeCE6m9UMAH3EfwlxcSAtrM2owrC3OluN90O/iuZb8eZaTevpF94aNSL oOnYJmHQNIpSQcG7XybyeVkABwgnXUowVZYywk48kXsZ/saiXFQ9jMP/cSyIdmaLtjjeLO OdhhzvkooRGyeWR3QsYkqR67f/lU7OUNwyKlezsaLPnQbeWQHZxGHYVn9aHbxojiGlQO62 XL06hqrRW82jZkFsuKgC4DUrFlKBHGdCvpRweCJfs5qg/bUDXURVDtJMs1QBjrTiu+Ua8v cGq8JCg+ExIhR3PX6GHHlA9PfwRVeU73HsOlsihatd6pEFKP1+Hjcq28lqxTpg== 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 4TJXZz5N2Xz14xJ for ; Mon, 22 Jan 2024 14:26:19 +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 40MEQJZJ082603 for ; Mon, 22 Jan 2024 14:26:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40MEQJqD082602 for bugs@FreeBSD.org; Mon, 22 Jan 2024 14:26:19 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 276526] if_wg: Add missing bpfdetach() in wg_clone_destroy() Date: Mon, 22 Jan 2024 14:26:19 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: aly@aaronly.me 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 Message-ID: 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: 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=3D276526 Bug ID: 276526 Summary: if_wg: Add missing bpfdetach() in wg_clone_destroy() Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: aly@aaronly.me bpfattach() is called in wg_clone_create(), but the bpfdetach() is missing = from wg_close_destroy(). Add the missing bpfdetach(). --- if_wg.c.orig 2024-01-18 21:53:04.264212683 +0800 +++ if_wg.c 2024-01-22 08:20:13.232534082 +0800 @@ -2876,6 +2884,7 @@ wg_clone_destroy(struct if_clone *ifc, i if (cred !=3D NULL) crfree(cred); + bpfdetach(sc->sc_ifp); if_detach(sc->sc_ifp); if_free(sc->sc_ifp); --=20 You are receiving this mail because: You are the assignee for the bug.=