Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp836325ybi; Fri, 12 Jul 2019 05:27:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzItOSMatGbuxcAVOaxvsIorWY+ON/CGtHlh2oOjOOAwwNhGjfBmv/Srqgopa42XCKTBhgz X-Received: by 2002:a63:755e:: with SMTP id f30mr10638258pgn.246.1562934474061; Fri, 12 Jul 2019 05:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562934474; cv=none; d=google.com; s=arc-20160816; b=jGM6hRz/XXjVX3PDQcVEj8W7B3a9F+ayBOmJnntVBtYIXHFcXFHlZsikCZlg/dQ83A 9DiTMEQJOvOI2V7tFx7PKNnJf3adkr6jGKKabKjqYpsMeui3ESJL8gCOfRHoeYnSBP4j HxcN5JfME3xEgByBfzZ7BLVwYdgnpHGBnoq74NtXXvZZ7/o6bOGUmknVfBQaFs+GXGky KRFsHiaIKMBOPSbbmnPAMYwKNLePXDdQRok8uFoc7h/R6El//0nxUzyDpJplF1WFYgx3 i4cs5sMrOqSGHwoL0OBC+pHyr3lAgRCEdGA4vs2NxO5hEBTaN3V6CCkLdaoUxNYJpxR5 +w6Q== 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=1JSsh6z6GWEis30t49v/PPwLQoS8JM5EG1wLiDLrBcY=; b=DLRgdawR+VH2jYkfKr60Tuywt9JhDUBV5/z0sChU89AKHJIJq77bG3YD+5jRhDkWY3 UCQD6ajV6QVothrPsIPXNxGLCn2v7NTKngS0FpOWKo48YHwIbsUhkSKWLMElhqazkq6o rNYvBp5gPTlP8MR3/ooIaLr4PSbS9PTnS8G3CyhyF4Qy+iCKmQJFuTMXgyQIvPwNVp9s rJo9PxRc3/MzU8OzWURGsb9ogNzu8D4rSNMjwectZ8QWgbicu8puamUNrTHx7vXJ/UeA c8nLLbS3wP6Z+mCKzbo/K40RA/MnjV+CmnwkRUA1t9uz6fcfMKC4um8HC0mZa1D6B/i6 xMYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=i8aRJWcY; 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 70si7804715pla.2.2019.07.12.05.27.38; Fri, 12 Jul 2019 05:27:54 -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=i8aRJWcY; 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 S1728309AbfGLMZg (ORCPT + 99 others); Fri, 12 Jul 2019 08:25:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:35716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728289AbfGLMZd (ORCPT ); Fri, 12 Jul 2019 08:25:33 -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 18B8B2084B; Fri, 12 Jul 2019 12:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562934332; bh=vzNDa/PUAz8ZpCP/DkO6lBxzT4lU2xNhVFgJK0Wd++E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i8aRJWcY1iuVH5OtcFteQ7eneenPTNVk++Zqu4PIO1ok2fiLhuaUXIXvlTfR/GY4i FI68+xztWr/SJdaIzq8GZO/XmneAaMceT8TQ+qc+T1Zh/TePjaG9XQmTxG5NkvScic ByDJwexQIiS4I0yBVUJhnjBRwhg8Y4/zS+OH1vpU= 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 5.1 020/138] mac80211: free peer keys before vif down in mesh Date: Fri, 12 Jul 2019 14:18:04 +0200 Message-Id: <20190712121629.488546030@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121628.731888964@linuxfoundation.org> References: <20190712121628.731888964@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 d5aba5029cb0..fe44f0d98de0 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -929,6 +929,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