Commit:     9937ded8e44de8865cba1509d24eea9d350cebf0
Parent:     8ac62dc773c149d7b7124b4912b425842f905d3e
Author:     Denis V. Lunev <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 18 20:49:36 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Feb 18 20:49:36 2008 -0800

    [IPV6]: dst_entry leak in ip4ip6_err. (resend)
    The result of the ip_route_output is not assigned to skb. This means that
    - it is leaked
    - possible OOPS below dereferrencing skb->dst
    - no ICMP message for this case
    Signed-off-by: Denis V. Lunev <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/ipv6/ip6_tunnel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 9031e52..cd94064 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -550,6 +550,7 @@ ip4ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
                        goto out;
+               skb2->dst = (struct dst_entry *)rt;
        } else {
                if (ip_route_input(skb2, eiph->daddr, eiph->saddr, eiph->tos,
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to