Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp776382rwb; Sat, 5 Aug 2023 00:24:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBUqPD9djwkiqX8CEQ4c0vk95xzEM7jMRCk/WCzmrGXtZjeu233RvECTELcZSslFSDibDE X-Received: by 2002:a05:6512:5cb:b0:4f7:55e4:4665 with SMTP id o11-20020a05651205cb00b004f755e44665mr2262137lfo.56.1691220274965; Sat, 05 Aug 2023 00:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691220274; cv=none; d=google.com; s=arc-20160816; b=pRFN0pF5fKWBc4TNFEcJFyYuZUmEQLOUTouzS73P1Zp3mycOSzyhJwwbAnXd67BlSh 0kle7HoeEPlDQRfEBkiBEBIsHXSEX35senbMEnrz4Dc/1gNRpA3tkpmtSGKUHigVs2Fi q+xT3GuJDH0qGcnzlWOHc/FHlac7hPWUm75OYKjr/A8lY31lApgfEe5aU7uYA7PG14IB m2KKyKB08awzyClVulUGlzhiejztZVksBHCMoeUPvljYe0j6AyXEgg72s4ruSF5bKSeR rHPp2cShLOiX3guGPM/gmAaa5MwFEx34LdZ/ZGHmbb1dQgyzpFgM2bb0fAHakZIox7PR Koaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yFtMnGLfEgodoGei2h8UZe336PyKSdPdvngnYXixpuk=; fh=1Yy7LWPNwESTvzC9XJDD4lHk0lKxA8pw0R66MSpUczE=; b=0Shk8EMZUPkpIIAXBiwivB3PTVAx6DVvl9VzVZT+ZQhpqXHLpkIIjf2S1Ep19gWRJn u/0tgaFEc/1K7Oi8zPYNDD3Bzw1Avwi3XS8PZUWa18itdBGwlGPRk5t6rwOIM0O8iPjN DgEP8fgfEN/q+mskfGC2q20Y81ilHXhflr3/PS2l5xoklBv7EDdK/csclo8WWN3eGZ7c h27KTd+Lm7caIfJaX4Ti3kVt0KQNoeeRXPewo8PMg8RRA47bptOjvYBmfuy7Q3YQSj9L LGlO0AKtpQU7dx54GE0n1f6tHWgUg52Cg5v6l4pxT6+rHLzKu9vAJeV7MYu/jztEotDR cVTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=mnIpEaYq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d10-20020aa7d5ca000000b005232919627asi525446eds.278.2023.08.05.00.24.10; Sat, 05 Aug 2023 00:24:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=mnIpEaYq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjHEGFW (ORCPT + 99 others); Sat, 5 Aug 2023 02:05:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjHEGFV (ORCPT ); Sat, 5 Aug 2023 02:05:21 -0400 Received: from dvalin.narfation.org (dvalin.narfation.org [213.160.73.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDEA44ED0; Fri, 4 Aug 2023 23:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1691215516; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yFtMnGLfEgodoGei2h8UZe336PyKSdPdvngnYXixpuk=; b=mnIpEaYqalGvm/XZ2MCRMjBcckZXRSyH5eNPNCEyomrA1LMmwPHuE64jRdARiRpPRCrHoB viphSUE6F/W7jKtbWFdqFJcUVEx5YiTj3O/Lh1xzOxncrA0o1KqEJEjsfaHhEK/4fHO8eZ XQbmBdxQaDkwHOEkin7OctVmp3XOwhk= From: Sven Eckelmann To: Marek Lindner , Simon Wunderlich , Antonio Quartulli , Remi Pommarel Cc: "David S. Miller" , Eric Dumazet , b.a.t.m.a.n@lists.open-mesh.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Remi Pommarel , stable@vger.kernel.org Subject: Re: [PATCH net] batman-adv: Fix TT global entry leak when client roamed back Date: Sat, 05 Aug 2023 08:05:13 +0200 Message-ID: <2693362.mvXUDI8C0e@sven-l14> In-Reply-To: <20230804093936.22257-1-repk@triplefau.lt> References: <20230804093936.22257-1-repk@triplefau.lt> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart12259810.O9o76ZdvQC"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart12259810.O9o76ZdvQC Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Sven Eckelmann Date: Sat, 05 Aug 2023 08:05:13 +0200 Message-ID: <2693362.mvXUDI8C0e@sven-l14> In-Reply-To: <20230804093936.22257-1-repk@triplefau.lt> References: <20230804093936.22257-1-repk@triplefau.lt> MIME-Version: 1.0 On Fri, 04 Aug 2023 11:39:36 +0200, Remi Pommarel wrote: > When a client roamed back to a node before it got time to destroy the > pending local entry (i.e. within the same originator interval) the old > global one is directly removed from hash table and left as such. > > But because this entry had an extra reference taken at lookup (i.e using > batadv_tt_global_hash_find) there is no way its memory will be reclaimed > at any time causing the following memory leak: > > [...] Applied, thanks! [1/1] batman-adv: Fix TT global entry leak when client roamed back commit: d25ddb7e788d34cf27ff1738d11a87cb4b67d446 Kind regards, Sven --nextPart12259810.O9o76ZdvQC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAmTN5pkACgkQXYcKB8Em e0ap+A//aSI43I++QPAWQlTYcHVDZcDtCcVIk9qdSEvQtO62jJZYnBYyLZdvkcvY /cQTjjSZY08wCzU3c9TEHPPnrZruRD+pDNn3m64izZhQ2BmAuHwIztociQytinan I3oDTBL7wZYZu+66t/5NtRyD4vVE0Vr+1s0U1TR2DYkGALKsD9VGJOGKGLAJSF2i PgDVjjDgqkEtdjvTnpC3a4phFumVfJLgNJBuuQ7FYEb+VQf37Wect8du4dMy+GNw ifpZ+bqXWFKt0WP5M8r8T4M+NIpm3cS6a0ij3q4IVNI6xWzpmWjIiP2UG6lzpHna BXOfPm2F7ArycTyyijg30hnTv3oV43Xpyy/vqMA7jRQRmnpeh9l96Rsew/MOouPQ KUco8AazBnqOmX5fqpu1+uZFC+7h/ADVaUF6sbgfSQtyxPp0ggBAIAAAaHFfvGP+ 1qLhIHCGPjdQVqRNpSHR85x5V5NYdlKwa91f/LE2oKz4Yt207/LNTeUfmYxeykz5 FsBwZPf77gdBCn0V533zqgreZ6aldqXp6+SWcbrKPChoV0h9AhfCsRQZGs+q4L6Q Iwrh/iP+RQzWWLS/l6Xj9P6GSks3326kcWFPQwssdtXTZXPWAAhQ+m8lzIXbcaJ1 UGHrl6QLoNNr4/pnqCuTQmECHnSlMj//uB+KE1HaLp3JQZtV6z0= =dwZT -----END PGP SIGNATURE----- --nextPart12259810.O9o76ZdvQC--