From: David Miller Subject: Re: [PATCH net] sock: free skb in skb_complete_tx_timestamp on error Date: Fri, 15 Dec 2017 11:31:41 -0500 (EST) Message-ID: <20171215.113141.107338195199221393.davem@davemloft.net> References: <20171213194106.128322-1-willemdebruijn.kernel@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, richardcochran@gmail.com, willemb@google.com To: willemdebruijn.kernel@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:52736 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756697AbdLOQbn (ORCPT ); Fri, 15 Dec 2017 11:31:43 -0500 In-Reply-To: <20171213194106.128322-1-willemdebruijn.kernel@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Willem de Bruijn Date: Wed, 13 Dec 2017 14:41:06 -0500 > From: Willem de Bruijn > > skb_complete_tx_timestamp must ingest the skb it is passed. Call > kfree_skb if the skb cannot be enqueued. > > Fixes: b245be1f4db1 ("net-timestamp: no-payload only sysctl") > Fixes: 9ac25fc06375 ("net: fix socket refcounting in skb_complete_tx_timestamp()") > Reported-by: Richard Cochran > Signed-off-by: Willem de Bruijn Applied and queued up for -stable.