[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120611.131344.140847541249729239.davem@davemloft.net>
Date: Mon, 11 Jun 2012 13:13:44 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, stigge@...com.de, kevin.wells@....com,
aletes.xgr@...il.com, srinivas.bakki@....com
Subject: Re: [PATCH] lpc_eth: add missing ndo_change_mtu()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 11 Jun 2012 11:24:00 +0200
> From: Eric Dumazet <edumazet@...gle.com>
>
> lpc_eth does a copy of transmitted skbs to DMA area, without checking
> skb lengths, so can trigger buffer overflows :
>
> memcpy(pldat->tx_buff_v + txidx * ENET_MAXF_SIZE, skb->data, len);
>
> One way to get bigger skbs is to allow MTU changes above the 1500 limit.
>
> Calling eth_change_mtu() in ndo_change_mtu() makes sure this cannot
> happen.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied and queued up for -stable.
--
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