Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp852931ybi; Fri, 12 Jul 2019 05:44:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwX3s1TJDOeYWy86646lAHGYOZDK6VZkYoqGoQBmpYGR9NlHIEwG5WJdGggvbQBfxcEfLIX X-Received: by 2002:a65:4505:: with SMTP id n5mr9636504pgq.301.1562935447940; Fri, 12 Jul 2019 05:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935447; cv=none; d=google.com; s=arc-20160816; b=yr+hLEn2MlYL5WiaTxtXgoUspMQQkjYf6Q2obl8E6o41aUAjwuHmzaSbXzOuk5tb17 BV8yV4uVZ2wjGzlbKwTVd5gzaVo+Mwq4Rnj90InHRtAu2gOCMSEI1zRwoFQER6m6Sy0J bCwwju3Jr7sKXoeYgCX81G4tVftb0pVqpnqce1kUi+2f5t951V0rcIFmdedFT/F7K/Ky XHG9HFhxdFHSdgGlmUAbC4lgTVhFbgH/QygKkSS8MLDd+3m25Jc/1cBuYq7hoqd4fFCH ZAJCC6uq+DslMBVj5oM0RmWfe2y7ZQ6lMRYA2nA9Lcsp5id98BSuKv8MV7gGphE1w1o8 R+tA== 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=PBrhjRYADnWS0ItF14Wa+frK1N9EhkKN0Q681C/jy3A=; b=ZdkKLPVAHAbRhLEQwHeG7WTW5NZYhOLerGnJ/s7a1CsbK1+dgPmyC9+OjgrJsQ69rn JLyom/f/4cli4UIq9jMNECxqyWzf5y8By+2hnmSqoxn2/oZyPqeOCn4+ReJ+pG0uv6Pc fWoFfIw4aZmREFRE2QHCZbAP6sNgsazeb10yR7O6sJhqYbCUOlr9yWLmkgDPCeLmA4on mYdbNs8fTXzk3F3DG3AW5NDwmzJdFm8P8UAVoF6+joJQAYd/yETc4u3MrObFoGEYRA/E 6fBEuUGkLdwY+wER2B3O/pVnRs5WPelymqMQxtd8PXA+AafTr69cZMPsVfREsjMM6uCL NG2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RLR9PpXE; 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 x125si6195356pgx.332.2019.07.12.05.43.52; Fri, 12 Jul 2019 05:44:07 -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=RLR9PpXE; 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 S1727144AbfGLMT7 (ORCPT + 99 others); Fri, 12 Jul 2019 08:19:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:52890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbfGLMT5 (ORCPT ); Fri, 12 Jul 2019 08:19:57 -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 1F53D208E4; Fri, 12 Jul 2019 12:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562933996; bh=mdVvnt0NyxZLQyR9PhJ/fUSa2WrIrj/Buq46zg1LSgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RLR9PpXEg4FU2WI+At+VC58QrKGLnCbmJoqFmO37QuCan1WOE8ZKRwsU9TTnCP7jL ccWkdMJ+97rYR0+5p8qNTYcYTSd27Le5fhjcwlc1B60do+6dS8it64m8aQFgSxfg+I W9bEF/8yRy791D6fFnA6RDzJvZgUMEZWfKg8dJGg= 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.19 13/91] mac80211: free peer keys before vif down in mesh Date: Fri, 12 Jul 2019 14:18:16 +0200 Message-Id: <20190712121622.115217809@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190712121621.422224300@linuxfoundation.org> References: <20190712121621.422224300@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 0f9446ab7e4f..3162f955f3ae 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -923,6 +923,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