From: "H. Peter Anvin" <hpa@zytor.com>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: netdev@vger.kernel.org, Joel Sing <jsing@google.com>,
David Miller <davem@davemloft.net>
Subject: Re: FYI: tftp-hpa breaks when used on secondary ip addresses
Date: Fri, 04 Mar 2011 17:31:00 -0800 [thread overview]
Message-ID: <4D719254.8000903@zytor.com> (raw)
In-Reply-To: <m1sjv2qt68.fsf@fess.ebiederm.org>
On 03/04/2011 04:58 PM, Eric W. Biederman wrote:
>
> Which if fails now if you happen to be running tftp-hpa on a secondary
> ip address on the same subnet as your first ip. Because pref_source
> in the routing table points at the first ip.
>
> The change in kernel behavior appears to be from the commit below to
> honor the preferred source address in local connections.
>
If this is done for all local connections (as opposed to the ones that
have been configured explicitly by the administrator to behave that
way), that's a massive lossage. Not only does a large number of
applications use this trick to determine if an address is local (e.g.
allowing bypass) -- it is pretty much the only portable way to do it --
but it would cause applications which expect to get a reply back from
the same address they sent a request to to completely fall on their face.
tftp-hpa needs this information in order to handle clients that send
their initial request to a broadcast (or multicast) address.
> This all seems very fuzzy to me and mostly this appears to be a bug in
> tftp-hpa but since I tracked it down I figured I would let everyone
> know what happened.
This seems like a broken change to me, or at the very least having
seriously unintended consequences.
-hpa
next prev parent reply other threads:[~2011-03-05 1:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-05 0:58 FYI: tftp-hpa breaks when used on secondary ip addresses Eric W. Biederman
2011-03-05 1:31 ` H. Peter Anvin [this message]
2011-03-05 4:58 ` 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=4D719254.8000903@zytor.com \
--to=hpa@zytor.com \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=jsing@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.