Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1005916ybi; Fri, 2 Aug 2019 07:51:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYJSOtCoaIEIBnk/NH2QuxIYbswVhUY2zz8Hw2GJk+tn0c3ygGqb3uFMsqj9J7NVSBHkAg X-Received: by 2002:a65:6415:: with SMTP id a21mr109657850pgv.98.1564757481926; Fri, 02 Aug 2019 07:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564757481; cv=none; d=google.com; s=arc-20160816; b=T1UteF/7gjpMC82sY00dKAKYq/gIa/4TkhjuScYjA4MohDhEdH1StAydNPsBE2iLtV +QYCBvbFG21TvhoBLkzFTAShVBDdj3wGru+sbbzV0hOTvsbdIGgZPmjHBxQoAuRik3+u gmpwA5/2mvMbqQpbz6W3meYpGyK4uY3KhcjpraOkVEu+BAaODZSdsno9I66f9BUA6y+k 7++wjA87Wq6VDdbRuIz/3n62kwF6EPoG9cspIu73wMlBUpLrrk0df+pzDFkLn4dMHXuA l3nbNHmYxLhq2bF+wE1wOskOL0fyLPBybeBar9Af3UVmvCTE9Sem4pD+TQPmoVJz/qtc ydIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wNRwBEQkhR7M97uQEUj+16b3xBhVfSLI8T8DPDhQKSg=; b=kS0RPr4oyY862QmJwIt20sQfaL9b1g6pVADG23wf2AOIaOmKpqHhjzQh9V8sIAXjPz sDeFX4quvgEN13JvKzo/zf2quOlx0wmlXbVuJF8GsaqbK7jluK/7B7iDKg6DZmEZQNu9 pcTCMNX/5v5wwGFOAy2pg4Hh2cwDQL6DxwIzq6xfMBJJUXDASR6jpufEWgPay7ZlGni1 nGy33TaEFRHT36XmvOBsYsOx+ZK47hH2m40d9DBpkaQ04Jl2JutXgX8jlbi6xjyQOPeb VmQPyBWrXGzduFSoQeSwJADEcwG+61DaroV2ZDGhjHIWQs9Ow6BwMLnsRwy1nga6Mnwx NSJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VKMv6lKh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18si35753082plo.316.2019.08.02.07.51.06; Fri, 02 Aug 2019 07:51:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VKMv6lKh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389348AbfHBJaT (ORCPT + 99 others); Fri, 2 Aug 2019 05:30:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:55690 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389250AbfHBJaR (ORCPT ); Fri, 2 Aug 2019 05:30:17 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B153021783; Fri, 2 Aug 2019 09:30:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564738216; bh=hbLwx76T028lbACQgWhL7dq+M3eHHL5ZvW379tYxRtQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VKMv6lKhVTuYszIIRWvPy1LydfxVHOTJgAsJ+m/h2aoVEj2kNmxaycXykg++u9GXc 7PHDzsBOK0/d9H3SNX4cZxVTqqIvuNyGjTTUqyc85hqjw6Jwb/xAosTEyde9OUiVk1 UyPzTJHpZ5zMqQ59WbTqf6BRu5RMux/EbDkbccB4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, syzbot+d454a826e670502484b8@syzkaller.appspotmail.com, Jeremy Sowden , Sven Eckelmann , Simon Wunderlich , Sasha Levin Subject: [PATCH 4.4 008/158] batman-adv: fix for leaked TVLV handler. Date: Fri, 2 Aug 2019 11:27:09 +0200 Message-Id: <20190802092205.148120852@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190802092203.671944552@linuxfoundation.org> References: <20190802092203.671944552@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 17f78dd1bd624a4dd78ed5db3284a63ee807fcc3 ] A handler for BATADV_TVLV_ROAM was being registered when the translation-table was initialized, but not unregistered when the translation-table was freed. Unregister it. Fixes: 122edaa05940 ("batman-adv: tvlv - convert roaming adv packet to use tvlv unicast packets") Reported-by: syzbot+d454a826e670502484b8@syzkaller.appspotmail.com Signed-off-by: Jeremy Sowden Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich Signed-off-by: Sasha Levin --- net/batman-adv/translation-table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index f2079acb555d..ffd49b40e76a 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c @@ -3158,6 +3158,8 @@ static void batadv_tt_purge(struct work_struct *work) void batadv_tt_free(struct batadv_priv *bat_priv) { + batadv_tvlv_handler_unregister(bat_priv, BATADV_TVLV_ROAM, 1); + batadv_tvlv_container_unregister(bat_priv, BATADV_TVLV_TT, 1); batadv_tvlv_handler_unregister(bat_priv, BATADV_TVLV_TT, 1); -- 2.20.1