From nobody Mon Apr 01 14:44:43 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 4V7Ygv2kDCz5G84W for ; Mon, 1 Apr 2024 14:44:43 +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 4V7Ygv05Wgz4N0p for ; Mon, 1 Apr 2024 14:44:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711982683; a=rsa-sha256; cv=none; b=ICKxi+wbNNhwnOnCtliFYdDtz3Y9jFECRYmPhw7RtIIqeIb7R1ETDc22tZejkWyUff/A7F jEJJKJXqzA6W8xkj5GzcRKzpUk302Ref6T4n2qX/BEkcFjuShDjOvkigjsKBH7ogW88u0O AyBITVvO6d5ubHezGPqvP2G8RGxFriYlTugX4fVffGTKZySrKtaIPUk1kY1JNaOPJxVYPH VAJ+uynIVtzVQ7o6g5NfkMwAQhAqWcdaON+I2fE3kUhYgRzff3Hbcj3qZRmOFXFp02ijNZ mNyDj5O7rUP200RuccnVPq7ympUezzQeb6Zz74ElgY0BG6GglVJXGU7KWufHhQ== 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=1711982683; 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=rAaVp/9p/ToKggDeDzgtkYlMGglQuXgDHgArPbXS2JM=; b=TGivFsYn8PuBzdepakXm1PVcNfv0xF/FDQocqyvK1uYbgwrJJAxXAVBhbqwFmItc2x9yQ/ re4sVA25Nxr2DT/XSkaLwmjnM7/evbQBqLN4gG3n5XySWwvhD+pTTQQ6PvPk2W/tB5PGa3 +wix4GHwesj8CzdunPGY9JY/Jb1YqmKRxY2kkVO1lahjUyAnuOhYmfyYozCAewTFCBuePg iwqQbHgh2YddV7dF3eSaJ352XnXB2QzlDv0KdgNYhcPsGRvXd4JGy66WPWUxj6e9/HT2na JEM6awMFt2zB9bMIQ9HQQAxeVnBv9xdBBH2U8ckwiCtzZ6QKZrpizbTOgJqfSw== 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 4V7Ygt6pkKz1P90 for ; Mon, 1 Apr 2024 14:44:42 +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 431Eig8Y061198 for ; Mon, 1 Apr 2024 14:44:42 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 431Eig0H061197 for bugs@FreeBSD.org; Mon, 1 Apr 2024 14:44:42 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 278100] ena (Elastic Network Adapter) driver memory leak on detach Date: Mon, 01 Apr 2024 14:44:43 +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.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mibelanger@qnx.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 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=3D278100 Bug ID: 278100 Summary: ena (Elastic Network Adapter) driver memory leak on detach Product: Base System Version: 14.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: mibelanger@qnx.com Missing call to=20 ifmedia_removeall(&adapter->media); in ena_detach. ifmedia_add allocates memory. entry =3D malloc(sizeof(*entry), M_IFADDR, M_NOWAIT); ifmedia_removeall will free the entries. --=20 You are receiving this mail because: You are the assignee for the bug.=