From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net/sched: act_pedit: fix dump of extended layered op Date: Wed, 29 Aug 2018 18:12:26 -0700 (PDT) Message-ID: <20180829.181226.453921309779258159.davem@davemloft.net> References: <69b7819408d62dc49aa242c239fec558fa9acd8d.1535403029.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, netdev@vger.kernel.org, amir@vadai.me To: dcaratti@redhat.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:39300 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725758AbeH3FMB (ORCPT ); Thu, 30 Aug 2018 01:12:01 -0400 In-Reply-To: <69b7819408d62dc49aa242c239fec558fa9acd8d.1535403029.git.dcaratti@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Davide Caratti Date: Mon, 27 Aug 2018 22:56:22 +0200 > in the (rare) case of failure in nla_nest_start(), missing NULL checks in > tcf_pedit_key_ex_dump() can make the following command > > # tc action add action pedit ex munge ip ttl set 64 > > dereference a NULL pointer: ... > Like it's done for other TC actions, give up dumping pedit rules and return > an error if nla_nest_start() returns NULL. > > Fixes: 71d0ed7079df ("net/act_pedit: Support using offset relative to the conventional network headers") > Signed-off-by: Davide Caratti Applied and queued up for -stable, thanks.