Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3695825ybv; Mon, 10 Feb 2020 04:53:10 -0800 (PST) X-Google-Smtp-Source: APXvYqzCQvdj75ymOnG1ikKr/I4PbgH6436DbADiEomwkVsJv7FQ0+fVk7jpx6QnSNkQ8QeH3cDS X-Received: by 2002:a54:4f04:: with SMTP id e4mr662495oiy.111.1581339190735; Mon, 10 Feb 2020 04:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581339190; cv=none; d=google.com; s=arc-20160816; b=MDY+7vuDoCW148enDcSiQ4Poy0XXQSgXZmBAritHuzUbuUSd9gSH5y50d/V+eurlci j6fuwvbsWQNFDSfXTJ4wGhs9JNloUmB47V2VzQzIXDgRE8Zua2Lv4xu2HYK6tLzrVxSn 3fT+UMk9s54BgbgnrRJqxYd7HRqZc69xRUMqPelx4hbVGJKrD2930RDbcf/MysFftc43 b1ApqaM9NZCK88M8wmnRuOqCPOZM4ge01LaD5a/6EUwmLqwoKF2fh8Dpl9DNnodlOrpM /eI6y/cDZ2QOuDChupB2p6UbrunjGva23TwyJE9P7D9L0YAYSls233HYST+cepvo/AJB Xl8g== 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=LTFOA2H3G50hS3DtkZs3Rx27gdBFAi5+FmGvrLay8rw=; b=Aqicclkmx7yTlGOuKu38vXvHx1DX6DjZUqhEE6bLy/OVLA1QQL/Re0PSwlZP+vL4pT 6CKBEmBK71ZG/w45tGeaBzh7DB5/ETvt8uoht/BEhIn+1hc4km7KUJH7EWNcWI5lTsGI Z9AOBdIAKkuEldXu3Y0YMENGZwQMebvNrCGEEJ3A5++D16HNOQg41xaqVMCZuY6+/Ubx i3JxeVs8Y/k4FwUyuXcjsihTGH0skmgqPRDIT8b1+i1MsRI+bCq39vDPweUO179KxYx1 0AYImPYNtZnDD0VUM+AiwW0cZ64xHllLGOc4y7eE8p1WyVcOI3+GmocTewSmyLKzUKTo An/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QSPi+KH0; 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 y71si151014oia.82.2020.02.10.04.52.59; Mon, 10 Feb 2020 04:53:10 -0800 (PST) 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=QSPi+KH0; 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 S1728976AbgBJMwu (ORCPT + 99 others); Mon, 10 Feb 2020 07:52:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:46368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730211AbgBJMmS (ORCPT ); Mon, 10 Feb 2020 07:42:18 -0500 Received: from localhost (unknown [209.37.97.194]) (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 3AE7F2085B; Mon, 10 Feb 2020 12:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581338538; bh=cuMIpdQ6frh5EBS3YjnBx5mISarMj9jt+9ERkJVG/ww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QSPi+KH0aPDeqho7yykrHPjLWvjDEI4PeyBoRHZ2VLske8ryvt3X+8iLrCcS3Ocxi mducw//GTLJWxsKM4YPXcVP/CqDtXNdgf8rgGzJxTfxvoC8+VvX8HxYa+EpMI/b4Rc qS27+VI6JHjwjyk3dl3LVMb3q/I5hOI9bDjmdXrw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vinicius Costa Gomes , "David S. Miller" Subject: [PATCH 5.5 337/367] taprio: Add missing policy validation for flags Date: Mon, 10 Feb 2020 04:34:10 -0800 Message-Id: <20200210122453.826842476@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210122423.695146547@linuxfoundation.org> References: <20200210122423.695146547@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: Vinicius Costa Gomes [ Upstream commit 49c684d79cfdc3032344bf6f3deeea81c4efedbf ] netlink policy validation for the 'flags' argument was missing. Fixes: 4cfd5779bd6e ("taprio: Add support for txtime-assist mode") Signed-off-by: Vinicius Costa Gomes Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/sched/sch_taprio.c | 1 + 1 file changed, 1 insertion(+) --- a/net/sched/sch_taprio.c +++ b/net/sched/sch_taprio.c @@ -767,6 +767,7 @@ static const struct nla_policy taprio_po [TCA_TAPRIO_ATTR_SCHED_CLOCKID] = { .type = NLA_S32 }, [TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME] = { .type = NLA_S64 }, [TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION] = { .type = NLA_S64 }, + [TCA_TAPRIO_ATTR_FLAGS] = { .type = NLA_U32 }, }; static int fill_sched_entry(struct nlattr **tb, struct sched_entry *entry,