netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] Fragmented SKB corrections
@ 2017-07-14 23:12 Doug Berger
  2017-07-14 23:12 ` [PATCH net 1/2] net: bcmgenet: Fix unmapping of fragments in bcmgenet_xmit() Doug Berger
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Doug Berger @ 2017-07-14 23:12 UTC (permalink / raw)
  To: netdev; +Cc: Florian Fainelli, linux-kernel, Doug Berger

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.

Doug Berger (2):
  net: bcmgenet: Fix unmapping of fragments in bcmgenet_xmit()
  net: bcmgenet: Free skb after last Tx frag

 drivers/net/ethernet/broadcom/genet/bcmgenet.c | 299 +++++++++++++------------
 drivers/net/ethernet/broadcom/genet/bcmgenet.h |   2 +
 2 files changed, 152 insertions(+), 149 deletions(-)

-- 
2.13.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-16  4:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-14 23:12 [PATCH net 0/2] Fragmented SKB corrections Doug Berger
2017-07-14 23:12 ` [PATCH net 1/2] net: bcmgenet: Fix unmapping of fragments in bcmgenet_xmit() Doug Berger
2017-07-14 23:12 ` [PATCH net 2/2] net: bcmgenet: Free skb after last Tx frag Doug Berger
2017-07-16  4:29 ` [PATCH net 0/2] Fragmented SKB corrections David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).