From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net v2] net/sched: act_simple: fix parsing of TCA_DEF_DATA Date: Fri, 08 Jun 2018 18:50:03 -0400 (EDT) Message-ID: <20180608.185003.1764981291836060402.davem@davemloft.net> References: <473a0039fa5c28284ebb5928eb894674cc65b925.1528426801.git.dcaratti@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, netdev@vger.kernel.org To: dcaratti@redhat.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:49468 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753098AbeFHWuE (ORCPT ); Fri, 8 Jun 2018 18:50:04 -0400 In-Reply-To: <473a0039fa5c28284ebb5928eb894674cc65b925.1528426801.git.dcaratti@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Davide Caratti Date: Fri, 8 Jun 2018 05:02:31 +0200 > use nla_strlcpy() to avoid copying data beyond the length of TCA_DEF_DATA > netlink attribute, in case it is less than SIMP_MAX_DATA and it does not > end with '\0' character. > > v2: fix errors in the commit message, thanks Hangbin Liu > > Fixes: fa1b1cff3d06 ("net_cls_act: Make act_simple use of netlink policy.") > Signed-off-by: Davide Caratti Applied and queued up for -stable.