Re: [PATCH v2] set fake_rtable's dst to NULL to avoid kernel Oops.

From: Eric Dumazet
Date: Wed Apr 18 2012 - 05:55:30 EST


On Wed, 2012-04-18 at 17:34 +0800, Peter Huang(Peng) wrote:
> Add new flag DST_FAKE_RTABLE to dst_entry struct.
>

Your changelog is not very helpful. Please add all the information you
provided in your previous mails. (stack trace and all)

> Acked-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>
> Signed-off-by: Peter Huang <peter.huangpeng@xxxxxxxxxx>
> ---
> include/linux/netfilter_bridge.h | 8 ++++++++
> include/net/dst.h | 1 +
> net/bridge/br_forward.c | 1 +
> net/bridge/br_netfilter.c | 8 ++------
> 4 files changed, 12 insertions(+), 6 deletions(-)
> diff --git a/include/linux/netfilter_bridge.h
> b/include/linux/netfilter_bridge.h
> index 0ddd161..eb09e3b 100644
> --- a/include/linux/netfilter_bridge.h
> +++ b/include/linux/netfilter_bridge.h
> @@ -104,9 +104,17 @@ struct bridge_skb_cb {
> } daddr;
> };
>
> +static inline void br_drop_fake_rtable(struct sk_buff *skb) {
> + struct dst_entry *dst = skb_dst(skb);
> + /* abuse fact that only fake_rtable has DST_FAKE_RTABLE set */

You are kidding ? I said "Remove this comment, and leave an empty line"

> + if (dst && (dst->flags & DST_FAKE_RTABLE))
> + skb_dst_drop(skb);
> +}

Patch mangled, tabulations were replaced by spaces.

Please, please please read again Documentation/email-clients.txt, as I
already mentioned (privately)

Double check _everything_ before your next submission

This is the last time I even care

Thanks


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/