Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp830827pja; Wed, 1 Apr 2020 09:29:35 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsQ9BlG/QPe8so0WJ+n47LW/iUS9pq02N1RreV22cv3tC1QXPIoJi586cFP4N2RzOhjNa/t X-Received: by 2002:a05:6830:1e93:: with SMTP id n19mr18563951otr.153.1585758575590; Wed, 01 Apr 2020 09:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585758575; cv=none; d=google.com; s=arc-20160816; b=SpJs4Hw6Nx+GCy3a9LqPLqgTmoYDRgk+RfGrF+gobN4B37kf1/CoF6rutb3UlbYRF/ NZPieX6Vyi7aLioVQa+IYhbKdD1qI+KvPleLeS+mSkZ+MCqMRwmBAFHSt5+B6kBEwArk +O+iy97WbTXMRocybv5n9s5wT+KzSeE8JRNEElFilCovgFt27ebGucG2MGdSIaTZ+JaX Cd648PX+DJ/Uj3sbt/MS9fipTk3i0JHfzr9+1BCp3Mr7iO16wgrL4GeXpL0LWo8ipxYd 0kbaYe/cMvXUVhLxxJamWVAn78/VIjBvR5VlFi1wnF5vmVd54v4s6uupSGbaYHTcofKd gcaw== 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=B4p39dxvnQ/cruM540uwSK4OYLXNRErrym1E1EjMAVg=; b=k7OybabNL2pQ0JWWdDyq+h3q2TgkVXUH5DFSNp5uhEdmQctLbYhw59fi2fjp1pVaKE RbdLp/v8R5TXWsvZesd1LD23Yy8YhvZy6yZl7coYEFSSRe9VkoQoGWkKVJB3iWtK3EKI RwP0KCqacANJtMqXs4vndVNf4NM1eIN2uJepRpt00LgyO1RMXkMU5LMlIqQo91OxLLr+ J8y7SZs/I5/pXUpOLwCs42CRSg8lvY3CB7CSizfrmHvIlcYgt/HusNGq2tuCo1iunIhd 9Wc1aIAV7iJwSNISyuyELDp1Oi/ZXoQpVdS5Lx8zEoxgkQUvOVYFsWmyWfWoqnlSn0B9 BsWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jRHTFxKo; 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 j15si1033056oos.59.2020.04.01.09.29.22; Wed, 01 Apr 2020 09:29:35 -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=jRHTFxKo; 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 S2387785AbgDAQ1o (ORCPT + 99 others); Wed, 1 Apr 2020 12:27:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:52628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387535AbgDAQ1m (ORCPT ); Wed, 1 Apr 2020 12:27:42 -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 8E036212CC; Wed, 1 Apr 2020 16:27:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585758462; bh=1hbslwvl3HRHrAP4PNYJs+QN20wZAm7e0sZuj0tvEjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jRHTFxKotOjNdc393SteRQwmueXX82anZihCmoJO6qR30QqSfq/JUgee4dnL6L4/B yKgoP1aksFQz/u3ELaqhNp7EIZAryv/Fd+lM2t30alDBuL2NZZMPcVOiPzxWGeBLko esI551D0pCRHURk3jhogXin7NemSbAdQBygbnP90= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johannes Berg , "David S. Miller" , Woody Suwalski Subject: [PATCH 4.19 097/116] mac80211: fix authentication with iwlwifi/mvm Date: Wed, 1 Apr 2020 18:17:53 +0200 Message-Id: <20200401161554.757299208@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200401161542.669484650@linuxfoundation.org> References: <20200401161542.669484650@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 From: Johannes Berg commit be8c827f50a0bcd56361b31ada11dc0a3c2fd240 upstream. The original patch didn't copy the ieee80211_is_data() condition because on most drivers the management frames don't go through this path. However, they do on iwlwifi/mvm, so we do need to keep the condition here. Cc: stable@vger.kernel.org Fixes: ce2e1ca70307 ("mac80211: Check port authorization in the ieee80211_tx_dequeue() case") Signed-off-by: Johannes Berg Signed-off-by: David S. Miller Cc: Woody Suwalski Signed-off-by: Greg Kroah-Hartman --- net/mac80211/tx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -3519,7 +3519,8 @@ begin: * Drop unicast frames to unauthorised stations unless they are * EAPOL frames from the local station. */ - if (unlikely(!ieee80211_vif_is_mesh(&tx.sdata->vif) && + if (unlikely(ieee80211_is_data(hdr->frame_control) && + !ieee80211_vif_is_mesh(&tx.sdata->vif) && tx.sdata->vif.type != NL80211_IFTYPE_OCB && !is_multicast_ether_addr(hdr->addr1) && !test_sta_flag(tx.sta, WLAN_STA_AUTHORIZED) &&