Searched hist:"5 e2afba4ecd7931ea06e6fa116ab28e6943dbd42" (Results 1 – 1 of 1) sorted by relevance
/linux/net/ipv4/ |
H A D | netfilter.c | diff 5e2afba4ecd7931ea06e6fa116ab28e6943dbd42 Mon Nov 14 12:00:54 CET 2011 Paul Guo <ggang@tilera.com> netfilter: possible unaligned packet header in ip_route_me_harder
This patch tries to fix the following issue in netfilter: In ip_route_me_harder(), we invoke pskb_expand_head() that rellocates new header with additional head room which can break the alignment of the original packet header.
In one of my NAT test case, the NIC port for internal hosts is configured with vlan and the port for external hosts is with general configuration. If we ping an external "unknown" hosts from an internal host, an icmp packet will be sent. We find that in icmp_send()->...->ip_route_me_harder()->pskb_expand_head(), hh_len=18 and current headroom (skb_headroom(skb)) of the packet is 16. After calling pskb_expand_head() the packet header becomes to be unaligned and then our system (arch/tile) panics immediately.
Signed-off-by: Paul Guo <ggang@tilera.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
|