Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1699749ybi; Wed, 17 Jul 2019 20:21:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiHUYKQyxy318rfbPoZBoqKDioLj+vYnNXbOvhZ4P2sLL8ZyEuUG+fzL7UjY/lWYFneFXV X-Received: by 2002:a17:902:aa8a:: with SMTP id d10mr48233840plr.154.1563420108037; Wed, 17 Jul 2019 20:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420108; cv=none; d=google.com; s=arc-20160816; b=mQTeiQQhMHW3zNpwedFsTRskOfrEPzb0F4YYPxFVObPPvkm8ODjfZSH9Q+e5VZ546u +g7s46HMs+q4HwRs4VO6jbdkcsxqzrUc6N+tEOCDa6e2svhmjhNU5c1nEbF9soxE6475 CoAzISkYypl9UbTt1Ji0MB3hLESshmZgW0ZZAzWUWAr2auh3H39SXLxKdBrsJkgIxR5k oEjwewbTK9EcoWFxvTh/p/kVvu9LmdVtRwF4oGIdiundgPvnp7TiOsXvwhBD3CfhtSrp mTCErzQULe92o6ltdwsLclQ1K+z9A+NhHaQ/vSthvui8IYki8zFneHNNj86/Yk8QNbpv vKgA== 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=6QlnmK5hg9SjXQxbL2PmTmwP6mdum/UNmMWAyFSZiCM=; b=Sl8P2kRc3nbQRvQah+AwlKBk48zsWmxKUEGT0Lf35GyHTYw2+t/0wT4lxL7r8EMgjG 41SqGTdxTpneHnDJa/NEE3nZAVnWorDfFsqB4Dywdha1zQh1nWK2CP4iGb5EGAMKMbXT HY+2Rv2AmrfW3tRcUJvaBF9AA4sYWSNgzfkp6RpSFuUM15RQJPAJo6MX16sb5q9aZNUN tn3mReu6dsJvlnW2nvPChs5ioPI7bO3JVjkhSmNKVo/ymOrwHHylGIEl364+TxLlJWqw fqempkPWCjZlAL/cliDykfw25ERk4hzTlE1hECN0Ip5Xez54YfKuTEbhDwus+lr7XXuX 7rHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KUwGpjx3; 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 60si19138542plf.398.2019.07.17.20.21.31; Wed, 17 Jul 2019 20:21:48 -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=KUwGpjx3; 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 S2389055AbfGRDTJ (ORCPT + 99 others); Wed, 17 Jul 2019 23:19:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:46472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403937AbfGRDMP (ORCPT ); Wed, 17 Jul 2019 23:12:15 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (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 87CAE2053B; Thu, 18 Jul 2019 03:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419535; bh=C1c2bap0BjeTdw6aU88vKC6L/xCsD46TWzAYAiH0YoM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KUwGpjx3CZvaZ3jTzriu/l4eENnsMYGdowtEWT3LRh5qKf3cCU7nTj38pGrnaLbA1 yHk85X3UyJFCqxIZN7lbiG/Z4mBiZfom40vaFJKeld38AOpXjKWrS2jrF/aJWzKKEU OGCFeA9jnWWXwOQWGFEkN4ZN/6q9106doifpgjG4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pradeep Kumar Chitrapu , Johannes Berg , Sasha Levin Subject: [PATCH 4.9 06/54] mac80211: free peer keys before vif down in mesh Date: Thu, 18 Jul 2019 12:01:36 +0900 Message-Id: <20190718030049.563415326@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030048.392549994@linuxfoundation.org> References: <20190718030048.392549994@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 0112fa557c3bb3a002bc85760dc3761d737264d3 ] freeing peer keys after vif down is resulting in peer key uninstall to fail due to interface lookup failure. so fix that. Signed-off-by: Pradeep Kumar Chitrapu Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/mesh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 7f902e69530f..5c347d3a92c9 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -885,6 +885,7 @@ void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) /* flush STAs and mpaths on this iface */ sta_info_flush(sdata); + ieee80211_free_keys(sdata, true); mesh_path_flush_by_iface(sdata); /* stop the beacon */ -- 2.20.1