Netdev List
 help / color / mirror / Atom feed
From: Julian Anastasov <ja@ssi.bg>
To: "Sébastien Barré" <sebastien.barre@uclouvain.be>
Cc: David Miller <davem@davemloft.net>,
	netdev@vger.kernel.org,
	Gregory Detal <gregory.detal@uclouvain.be>,
	Christoph Paasch <christoph.paasch@uclouvain.be>,
	Hannes Frederic Sowa <hannes@redhat.com>,
	Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Subject: Re: [PATCH net-next v2] ipv4: Restore accept_local behaviour in fib_validate_source()
Date: Fri, 22 Aug 2014 23:07:42 +0300 (EEST)	[thread overview]
Message-ID: <alpine.LFD.2.11.1408222303460.7852@ja.home.ssi.bg> (raw)
In-Reply-To: <1408259994-31458-1-git-send-email-sebastien.barre@uclouvain.be>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1384 bytes --]


	Hello,

On Sun, 17 Aug 2014, Sébastien Barré wrote:

> Commit 7a9bc9b81a5b ("ipv4: Elide fib_validate_source() completely when possible.")
> introduced a short-circuit to avoid calling fib_validate_source when not
> needed. That change took rp_filter into account, but not accept_local.
> This resulted in a change of behaviour: with rp_filter and accept_local
> off, incoming packets with a local address in the source field should be
> dropped.
> 
> Here is how to reproduce the change pre/post 7a9bc9b81a5b commit:
> -configure the same IPv4 address on hosts A and B.
> -try to send an ARP request from B to A.
> -The ARP request will be dropped before that commit, but accepted and answered
> after that commit.
> 
> This adds a check for ACCEPT_LOCAL, to maintain full
> fib validation in case it is 0. We also leave __fib_validate_source() earlier
> when possible, based on the same check as fib_validate_source(), once the
> accept_local stuff is verified.

	I remember there was related change for docs,
may be commit c801e3cc1925e0 should be reverted ?

> Cc: Gregory Detal <gregory.detal@uclouvain.be>
> Cc: Christoph Paasch <christoph.paasch@uclouvain.be>
> Cc: Hannes Frederic Sowa <hannes@redhat.com>
> Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> Signed-off-by: Sébastien Barré <sebastien.barre@uclouvain.be>

Regards

--
Julian Anastasov <ja@ssi.bg>

      parent reply	other threads:[~2014-08-22 20:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-17  7:19 [PATCH net-next v2] ipv4: Restore accept_local behaviour in fib_validate_source() Sébastien Barré
2014-08-22 19:27 ` David Miller
2014-08-22 20:07 ` Julian Anastasov [this message]

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=alpine.LFD.2.11.1408222303460.7852@ja.home.ssi.bg \
    --to=ja@ssi.bg \
    --cc=christoph.paasch@uclouvain.be \
    --cc=davem@davemloft.net \
    --cc=gregory.detal@uclouvain.be \
    --cc=hannes@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=sebastien.barre@uclouvain.be \
    --cc=sergei.shtylyov@cogentembedded.com \
    /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