[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090705035521.GA7693@gondor.apana.org.au>
Date: Sun, 5 Jul 2009 11:55:21 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: acme@...stprotocols.net, davem@...emloft.net,
netdev@...r.kernel.org
Subject: Re: [PATCH] skbuff: don't corrupt mac_header on skb expansion
Stephen Hemminger <shemminger@...tta.com> wrote:
> The skb mac_header field is sometimes NULL (or ~0u) as a sentinel
> value. The places where skb is expanded add an offset which would
> change this flag into an invalid pointer (or offset).
>
> Signed-off-by: Stephen Hemminger <shemminger@...tta.com>
What uses skb_mac_header_was_set apart from a debugging printk
in route.c and nfnetlink_log (which is also essentially a debugging
printk)?
This seems to be a bit much just to make a couple printks work?
What about using mac_len instead to figure out whether the MAC
header is there?
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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