Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp658287ybg; Thu, 19 Mar 2020 06:32:31 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsnvlCKM9mV5kSPYWyyRZxrsxI4CERW0+J3l0XiUsA+/sla/8rKOQc2/f2h+n+UQS0aE832 X-Received: by 2002:a9d:18f:: with SMTP id e15mr2226141ote.42.1584624750662; Thu, 19 Mar 2020 06:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584624750; cv=none; d=google.com; s=arc-20160816; b=jMpEcOgZ6TE5tCxDdh4zU/OqKojkCpOJtC/teMHlAQktpKR4FcOedw71Isse6uzbr6 mXdKCt3+NcZBBTl20PjZm+FtzHCKyKCTEXXz1rF+HTRldbqOMUQWt0BE4nDZ9/dm0rNw p24O54sEmeHDxkIaaeWuGEdjZTGfd//kgdzDYD2kVZjMNALNdOEh2KCZZ9+sdKeLI+hY cn7lDYPRne7T6V6NHbGizDxKLf9F0a5VRUCeiHNHuxL0zA9q5JBji1nYdoALLjsTJIIE M9OUpoq1f51J9gRJCQ0SJRhxpcGli7oHV19fWh2jYaoa4hKpNvlXMrAmIL42LQH4O7Wy tHUw== 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=rl69OwLjwHtma3sFpDkW4Z5O13h5lbdZNmHDA9WdeGc=; b=Yh3blWgyW5tM28b3R16309bLbbbIbE8TIeynP+GZYZrqZYpp+rhQ7rU2oYD/O9rScK AsxsjbKy8KAkx2GzmPhVk+i/OsF4LmDjxBnl5L8T0IlKEgV6zoP0kb6faAGnwUmznsJG PYzS1dM54Ha5HffhPoW0X/r5coNRxwp1obyvQ9ko8rWmrO1j7CZom9AYVWPyvK0x7PIy wP4io7XoEtCuZfrGpHhO7qn+7Dz5iVfNLBJLbCffHpgPv5Q0VmgNO4mBHrQ/ZCkk4seT Hvuvmub1BRC90mSjr0ZWuDdjyukCGYVIpkAjwwTHThVKtTNbKjU8Vmpggd6EmJfJzvBs pXJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v6RcRUZa; 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 w203si1096631oig.54.2020.03.19.06.32.17; Thu, 19 Mar 2020 06:32:30 -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=v6RcRUZa; 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 S1729573AbgCSNQo (ORCPT + 99 others); Thu, 19 Mar 2020 09:16:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:37276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728442AbgCSNQn (ORCPT ); Thu, 19 Mar 2020 09:16:43 -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 2B1E520724; Thu, 19 Mar 2020 13:16:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584623802; bh=uA9dNGFTVjm5hMfIoQVOhtwQWGQP4pc0yF2ftu6yNqY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v6RcRUZaXoSxXf8V79Uzc0eSkeugzRHBHBuzf9rXoH7wNKfH0Dq5hdAOXqK4E5uWg F1tTKXQsy1h5W3pJ/K2gaNGxe2+KtTXGmEhcw3o61QinOMrtj6uK9HozDfkcwgfdMu ebIw8fyxgkGJoDFYSMqMTfKNCk3Bqh7nDR2Ixb68= 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 58/99] nl80211: add missing attribute validation for channel switch Date: Thu, 19 Mar 2020 14:03:36 +0100 Message-Id: <20200319123959.358836226@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 5cde05c61cbe13cbb3fa66d52b9ae84f7975e5e6 upstream. Add missing attribute validation for NL80211_ATTR_OPER_CLASS to the netlink policy. Fixes: 1057d35ede5d ("cfg80211: introduce TDLS channel switch commands") Signed-off-by: Jakub Kicinski Link: https://lore.kernel.org/r/20200303051058.4089398-4-kuba@kernel.org Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- net/wireless/nl80211.c | 1 + 1 file changed, 1 insertion(+) --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -424,6 +424,7 @@ static const struct nla_policy nl80211_p [NL80211_ATTR_USER_PRIO] = { .type = NLA_U8 }, [NL80211_ATTR_ADMITTED_TIME] = { .type = NLA_U16 }, [NL80211_ATTR_SMPS_MODE] = { .type = NLA_U8 }, + [NL80211_ATTR_OPER_CLASS] = { .type = NLA_U8 }, [NL80211_ATTR_MAC_MASK] = { .len = ETH_ALEN }, [NL80211_ATTR_WIPHY_SELF_MANAGED_REG] = { .type = NLA_FLAG }, [NL80211_ATTR_NETNS_FD] = { .type = NLA_U32 },