Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp659194ybg; Thu, 19 Mar 2020 06:33:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsESz4BNosT4BxRU816CMGPgoKvRun/HluRoMPUr+BddPqXhpguEpGN00fS+eaFbIojXBPx X-Received: by 2002:aca:5454:: with SMTP id i81mr2391229oib.23.1584624798607; Thu, 19 Mar 2020 06:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584624798; cv=none; d=google.com; s=arc-20160816; b=t3N8s6VyPWQNO32dc5iC1miDA9U9Lzkl9ooIFWd5yW3pq57tF/U8CavqhcplnOhCRw epFkuSnEozd4Cnkx4ZM5gDgTLVIvXJ3KySlo5G++tPc+6oNNRky6v5rcd4dlH5/GqY7G anYJmw37aQNgIxVBwOOMssZpJis+MUi19iY8TNC2Z6pC3PKyp+ofv2DnKyqenwTFwB0r SqLjRcfh7H35tPLhpl8ZV49N/89/DZbRMulUjPsKliSDvP74RzmfY5k2Q48AiORGLv/p HEX2uPdooZbLiSSGpeeDDRTx69F/S3tMYqi9vtzhDqHeaPEMOco+yAMRQKMiIXpivNvs sQIA== 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=zWUiuK01IYJV7asbvOK6jnanfeEMgtAoJCDbG7NMpjw=; b=btZAGZuwFRv3WwRh2XBDO1WeQybC5ad74qDabMUs1ALJ5ZWigwqJahCJiYE9QKIBdg wHm/SdiSiIAILYiMvcBTkhh7sZhWVGOantM/M5toVGoeWupQNM0U+rwEbaGMkEyKcJdU 9T84GJutOY9/XVWKmXwyaWzWiL6J6+oXulb9sRFBwiDah3KKXgLfrd4LGsW2IDPNdHZ8 SF5uxjqJtInuQq7UBOhY+Q0h//8XUGfELGJz6KlDab/1DyYKLGpDJWrZkQ08Z9tUEBgT dEP8bSjrfpbOXTC+/y90aFsRTxwjt9uwIV2X8KLXCAx4G/0yqZlXzibWoj7o1Ka+UxrR Y3xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vlvz9ZVW; 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 j69si1019010oib.93.2020.03.19.06.33.05; Thu, 19 Mar 2020 06:33:18 -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=Vlvz9ZVW; 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 S1729348AbgCSNcH (ORCPT + 99 others); Thu, 19 Mar 2020 09:32:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:37178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728037AbgCSNQj (ORCPT ); Thu, 19 Mar 2020 09:16:39 -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 75F1A20724; Thu, 19 Mar 2020 13:16:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584623798; bh=N/kmiG6KBAOmtJ7wU3x/0toCaw9RCRADRZ2syxHQ07k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vlvz9ZVWLom9bVGlSrQTiHX0+0aaEBpe/qAyzZ6qen5LSrBjVs0dsky6WSz25tL9R onlAJg+rZLaKSwo+HOMBqdef709JUaXfdDhOhqOoOd64zWhTnZ08fCWLrMhQiXxSN7 aVqde+4TbvuYhwwitcyVgL+c73+nQc8XtZTVBXsU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , Johannes Berg Subject: [PATCH 4.14 57/99] nl80211: add missing attribute validation for beacon report scanning Date: Thu, 19 Mar 2020 14:03:35 +0100 Message-Id: <20200319123959.097578454@linuxfoundation.org> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200319123941.630731708@linuxfoundation.org> References: <20200319123941.630731708@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: Jakub Kicinski commit 056e9375e1f3c4bf2fd49b70258c7daf788ecd9d upstream. Add missing attribute validation for beacon report scanning to the netlink policy. Fixes: 1d76250bd34a ("nl80211: support beacon report scanning") Signed-off-by: Jakub Kicinski Link: https://lore.kernel.org/r/20200303051058.4089398-3-kuba@kernel.org Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/nl80211.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -347,6 +347,8 @@ static const struct nla_policy nl80211_p [NL80211_ATTR_KEY_DEFAULT_TYPES] = { .type = NLA_NESTED }, [NL80211_ATTR_WOWLAN_TRIGGERS] = { .type = NLA_NESTED }, [NL80211_ATTR_STA_PLINK_STATE] = { .type = NLA_U8 }, + [NL80211_ATTR_MEASUREMENT_DURATION] = { .type = NLA_U16 }, + [NL80211_ATTR_MEASUREMENT_DURATION_MANDATORY] = { .type = NLA_FLAG }, [NL80211_ATTR_SCHED_SCAN_INTERVAL] = { .type = NLA_U32 }, [NL80211_ATTR_REKEY_DATA] = { .type = NLA_NESTED }, [NL80211_ATTR_SCAN_SUPP_RATES] = { .type = NLA_NESTED },