From: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
To: Eric Dumazet <eric.dumazet@gmail.com>,
Dmitry Vyukov <dvyukov@google.com>,
"David S. Miller" <davem@davemloft.net>
Cc: hideaki.yoshifuji@miraclelinux.com,
Vlad Yasevich <vyasevich@gmail.com>,
Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>,
netdev <netdev@vger.kernel.org>,
Eric Dumazet <edumazet@google.com>
Subject: Re: [PATCH net] ipv6: kill sk_dst_lock
Date: Tue, 1 Dec 2015 10:44:39 +0900 [thread overview]
Message-ID: <565CFB87.9060402@miraclelinux.com> (raw)
In-Reply-To: <1448901315.24696.127.camel@edumazet-glaptop2.roam.corp.google.com>
Hi,
Eric Dumazet wrote:
> diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h
> index 2bfb2ad2fab1..877f682989b8 100644
> --- a/include/net/ip6_route.h
> +++ b/include/net/ip6_route.h
> @@ -133,27 +133,18 @@ void rt6_clean_tohost(struct net *net, struct in6_addr *gateway);
> /*
> * Store a destination cache entry in a socket
> */
> -static inline void __ip6_dst_store(struct sock *sk, struct dst_entry *dst,
> - const struct in6_addr *daddr,
> - const struct in6_addr *saddr)
> +static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst,
> + const struct in6_addr *daddr,
> + const struct in6_addr *saddr)
> {
> struct ipv6_pinfo *np = inet6_sk(sk);
> - struct rt6_info *rt = (struct rt6_info *) dst;
>
> + np->dst_cookie = rt6_get_cookie((struct rt6_info *)dst);
> sk_setup_caps(sk, dst);
> np->daddr_cache = daddr;
> #ifdef CONFIG_IPV6_SUBTREES
> np->saddr_cache = saddr;
> #endif
> - np->dst_cookie = rt6_get_cookie(rt);
> -}
> -
I believe you do not have to change function inside, right?
--
Hideaki Yoshifuji <hideaki.yoshifuji@miraclelinux.com>
Technical Division, MIRACLE LINUX CORPORATION
next prev parent reply other threads:[~2015-12-01 1:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-28 11:00 use-after-free in ip6_setup_cork Dmitry Vyukov
2015-11-28 17:11 ` Eric Dumazet
2015-11-28 17:23 ` Eric Dumazet
2015-11-30 3:29 ` Eric Dumazet
2015-11-30 16:35 ` [PATCH net] ipv6: kill sk_dst_lock Eric Dumazet
2015-11-30 18:13 ` Paolo Abeni
2015-11-30 18:27 ` Eric Dumazet
2015-12-01 1:44 ` YOSHIFUJI Hideaki [this message]
2015-12-01 2:01 ` Eric Dumazet
2015-12-03 4:42 ` David Miller
2015-12-03 5:53 ` [PATCH v2 " Eric Dumazet
2015-12-03 16:32 ` David Miller
2015-12-03 16:49 ` Eric Dumazet
2015-12-03 16:49 ` Eric Dumazet
2015-12-03 5:57 ` [PATCH " Eric Dumazet
2015-11-30 3:37 ` [PATCH net] ipv6: add complete rcu protection around np->opt Eric Dumazet
2015-12-01 11:11 ` Hannes Frederic Sowa
2015-12-01 13:05 ` Eric Dumazet
2015-12-01 13:13 ` Hannes Frederic Sowa
2015-12-03 4:38 ` David Miller
2015-12-03 5:35 ` Eric Dumazet
2015-12-03 5:48 ` [PATCH net] ipv6: sctp: add " Eric Dumazet
2015-12-03 16:32 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=565CFB87.9060402@miraclelinux.com \
--to=hideaki.yoshifuji@miraclelinux.com \
--cc=davem@davemloft.net \
--cc=dvyukov@google.com \
--cc=edumazet@google.com \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=vyasevich@gmail.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).