From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] sfc: pass valid pointers from efx_enqueue_unwind Date: Fri, 08 Dec 2017 13:26:51 -0500 (EST) Message-ID: <20171208.132651.960123172558789563.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-net-drivers@solarflare.com, jarod@redhat.com To: bkenward@solarflare.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:57008 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751268AbdLHS0x (ORCPT ); Fri, 8 Dec 2017 13:26:53 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Bert Kenward Date: Thu, 7 Dec 2017 17:18:58 +0000 > The bytes_compl and pkts_compl pointers passed to efx_dequeue_buffers > cannot be NULL. Add a paranoid warning to check this condition and fix > the one case where they were NULL. > > efx_enqueue_unwind() is called very rarely, during error handling. > Without this fix it would fail with a NULL pointer dereference in > efx_dequeue_buffer, with efx_enqueue_skb in the call stack. > > Fixes: e9117e5099ea ("sfc: Firmware-Assisted TSO version 2") > Reported-by: Jarod Wilson > Signed-off-by: Bert Kenward Applied and queued up for -stable, thanks.