From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751357AbdGPE34 (ORCPT ); Sun, 16 Jul 2017 00:29:56 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:58488 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbdGPE3z (ORCPT ); Sun, 16 Jul 2017 00:29:55 -0400 Date: Sat, 15 Jul 2017 21:29:54 -0700 (PDT) Message-Id: <20170715.212954.286118168709267918.davem@davemloft.net> To: opendmb@gmail.com Cc: netdev@vger.kernel.org, f.fainelli@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH net 0/2] Fragmented SKB corrections From: David Miller In-Reply-To: <20170714231210.12967-1-opendmb@gmail.com> References: <20170714231210.12967-1-opendmb@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sat, 15 Jul 2017 21:29:54 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Doug Berger Date: Fri, 14 Jul 2017 16:12:08 -0700 > Two issues were observed in a review of the bcmgenet driver support for > fragmented SKBs which are addressed by this patch set. > > The first addresses a problem that could occur if the driver is not able > to DMA map a fragment of the SKB. This would be a highly unusual event > but it would leave the hardware descriptors in an invalid state which > should be prevented. > > The second is a hazard that could occur if the driver is able to reclaim > the first control block of a fragmented SKB before all of its fragments > have completed processing by the hardware. In this case the SKB could > be freed leading to reuse of memory that is still in use by hardware. Series applied, thanks.