From: David Miller <davem@davemloft.net>
To: gstenzel@linux.vnet.ibm.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net] vxlan: fix incorrect initializer in union vxlan_addr
Date: Mon, 18 Aug 2014 10:11:43 -0700 (PDT) [thread overview]
Message-ID: <20140818.101143.2274310300741627370.davem@davemloft.net> (raw)
In-Reply-To: <53EDCCFE.5090301@linux.vnet.ibm.com>
From: Gerhard Stenzel <gstenzel@linux.vnet.ibm.com>
Date: Fri, 15 Aug 2014 11:03:58 +0200
>
> The first initializer in the following
>
> union vxlan_addr ipa = {
> .sin.sin_addr.s_addr = tip,
> .sa.sa_family = AF_INET,
> };
>
> is optimised away by the compiler, due to the second initializer,
> therefore initialising .sin.sin_addr.s_addr always to 0.
> This results in netlink messages indicating a L3 miss never contain
> the
> missed IP address. This was observed with GCC 4.8 and 4.9. I do not
> know about previous versions.
> The problem affects user space programs relying on an IP address being
> sent as part of a netlink message indicating a L3 miss.
>
> Changing
> .sa.sa_family = AF_INET,
> to
> .sin.sin_family = AF_INET,
> fixes the problem.
>
> Signed-off-by: Gerhard Stenzel <gerhard.stenzel@de.ibm.com>
Your patch was corrupted by your email client, also please do not
indent your signoff.
THanks.
next prev parent reply other threads:[~2014-08-18 17:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <53EDCC19.70702@linux.vnet.ibm.com>
2014-08-15 9:03 ` [PATCH net] vxlan: fix incorrect initializer in union vxlan_addr Gerhard Stenzel
2014-08-16 22:48 ` Cong Wang
2014-08-18 17:11 ` David Miller [this message]
2014-08-19 20:36 ` Gerhard Stenzel
2014-08-22 4:27 ` 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=20140818.101143.2274310300741627370.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=gstenzel@linux.vnet.ibm.com \
--cc=netdev@vger.kernel.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).