From: Herbert Xu Date: Tue, 10 Jun 2008 21:07:25 +0000 (-0700) Subject: net pppoe: Check packet length on all receive paths X-Git-Tag: v2.6.26-rc6~13^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=392fdb0e35055b96faa9c1cd6ab537805337cdce;p=pandora-kernel.git net pppoe: Check packet length on all receive paths The length field in the PPPOE header wasn't checked completely. This patch causes all packets shorter than the declared length to be dropped. It also changes the memcpy_toiovec call to skb_copy_datagram_iovec so that paged packets (rare for PPPOE) are handled properly. Thanks to Ilja of the Netric Security Team for discovering and reporting this bug, and Chris Wright for the total_len check. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed