[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2183571.Vc2rij2V9M@cpaasch-mac>
Date: Tue, 22 Jan 2013 17:55:04 +0100
From: Christoph Paasch <christoph.paasch@...ouvain.be>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: Ian Campbell <Ian.Campbell@...rix.com>,
Sony Chacko <sony.chacko@...gic.com>,
Rajesh Borundia <rajesh.borundia@...gic.com>,
David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: BUG in netxen_release_tx_buffers when TSO enabled on kernels >= 3.3 and <= 3.6
On Tuesday 22 January 2013 08:33:05 Eric Dumazet wrote:
> [PATCH] netxen: fix off by one bug in netxen_release_tx_buffer()
>
> Christoph Paasch found netxen could trigger a BUG in its dismantle
> phase, in netxen_release_tx_buffer(), using full size TSO packets.
>
> cmd_buf->frag_count includes the skb->data part, so the loop must
> start at index 1 instead of 0, or else we can make an out
> of bound access to cmd_buff->frag_array[MAX_SKB_FRAGS + 2]
>
> Christoph provided the fixes in netxen_map_tx_skb() function.
> In case of a dma mapping error, its better to clear the dma fields
> so that we don't try to unmap them again in netxen_release_tx_buffer()
>
> Reported-by: Christoph Paasch <christoph.paasch@...ouvain.be>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Tested-by: Christoph Paasch <christoph.paasch@...ouvain.be>
> Cc: Sony Chacko <sony.chacko@...gic.com>
> Cc: Rajesh Borundia <rajesh.borundia@...gic.com>
> ---
> drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c | 2 +-
> drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
Signed-off-by: Christoph Paasch <christoph.paasch@...ouvain.be>
--
IP Networking Lab --- http://inl.info.ucl.ac.be
MultiPath TCP in the Linux Kernel --- http://mptcp.info.ucl.ac.be
UCLouvain
--
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists