From: Gerrit Renker <gerrit@erg.abdn.ac.uk>
To: Herbert Xu <herbert.xu@redhat.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH][RFC] tcp: fix ambiguity in the `before' relation
Date: Fri, 5 Jan 2007 11:51:16 +0000 [thread overview]
Message-ID: <200701051151.16377@strip-the-willow> (raw)
In-Reply-To: <20070105035904.GB18653@gondor.apana.org.au>
| > The key point where the new definition differs from the old is that _the relation_
| > before(x,y) is unambiguous: the case "before(x,y) && before(y,x)" will no longer occur.
|
| This is highly dependent on how the before macro is used in actual code.
| There is nothing to suggest that this change won't create new security
| holes in DCCP or any other protocol that uses this macro. The only
| way to be sure is to audit every single use.
I fully agree, merely changing the definition means going only half way.
| So I think we need to do one of two things:
|
| 1) Audit every single before/after check to ensure that it works
| correctly with the new definition.
For DCCP I will perform such an audit and post the results to dccp@vger.
With regard to TCP: I am heavily snowed under with other work at the moment. If there
are experienced TCP people on the list who would be happy to look at this, it would be
great. I counted the number of times before() is used - it amounted to 68. There are
of course obvious cases which are quick to dismiss, but in particular the example you
presented yesterday points out that careful analysis is needed.
I asked Dave to revert to the old TCP definition (patch has been committed); for the moment
this seems the safest thing to do.
| 2) Change before/after such that before(x, x+2^31) == !before(x+2^31, x).
This is what the new definition does: in the old definition we always have that
before(x, x+2^31) == before(x+2^31, x).
next prev parent reply other threads:[~2007-01-05 11:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 15:07 [PATCH][RFC] tcp: fix ambiguity in the `before' relation Gerrit Renker
2006-12-20 18:31 ` David Miller
2006-12-21 14:42 ` Gerrit Renker
2006-12-22 0:53 ` Herbert Xu
2007-01-03 8:56 ` Gerrit Renker
2007-01-04 0:15 ` Herbert Xu
2007-01-04 12:49 ` Gerrit Renker
2007-01-05 3:59 ` Herbert Xu
2007-01-05 11:51 ` Gerrit Renker [this message]
2007-01-05 12:01 ` Herbert Xu
2007-01-05 12:49 ` Gerrit Renker
2007-01-05 20:34 ` Herbert Xu
2007-01-08 8:58 ` Gerrit Renker
2006-12-20 20:01 ` Christoph Hellwig
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=200701051151.16377@strip-the-willow \
--to=gerrit@erg.abdn.ac.uk \
--cc=davem@davemloft.net \
--cc=herbert.xu@redhat.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.