From: Eric Dumazet <erdnetdev@gmail.com>
To: Zhiyun Qian <zhiyunq@umich.edu>
Cc: netdev@vger.kernel.org
Subject: Re: TCP sequence number inference attack on Linux
Date: Fri, 21 Dec 2012 16:01:21 -0800 [thread overview]
Message-ID: <1356134481.21834.8090.camel@edumazet-glaptop> (raw)
In-Reply-To: <CALvgte-tpvyBF608MahqLc_JFZNzg2q1FpsUY72fDDicbdsBWA@mail.gmail.com>
On Fri, 2012-12-21 at 18:52 -0500, Zhiyun Qian wrote:
> It seems that it is not straightforward to simply move tcp_ack()
> before tcp_validate_incoming() as tcp_ack() currently assumes the tcp
> sequence number is already validated and it may adjust certain states
> purely depending on the ACK number. I guess the solution is to extract
> all safety checks out and put at the very beginning. The rest of the
> code in tcp_validate_incoming() and tcp_ack() may still need to
> perform the redundant checks since if some state changes are dependent
> on the sequence number or ACK number (e.g., window update).
>
> I'm willing to help on this. Perhaps I can draft an initial patch and
> you can help take a look before I submit it?
I began coding a serie of patches.
Part of the problem comes from a 'fast path' idea that was nice 20 years
ago but no longer a real killer these days.
So some tests are duplicated, others are not correctly done.
For example, the fast path misses the more complete tests done in
tcp_ack()
Its a big mess.
next prev parent reply other threads:[~2012-12-22 0:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-21 17:58 TCP sequence number inference attack on Linux Zhiyun Qian
2012-12-21 18:31 ` Eric Dumazet
2012-12-21 18:52 ` Eric Dumazet
2012-12-21 19:13 ` Zhiyun Qian
2012-12-21 19:30 ` Eric Dumazet
2012-12-22 2:13 ` Hannes Frederic Sowa
2012-12-21 19:10 ` Zhiyun Qian
2012-12-21 19:27 ` Eric Dumazet
2012-12-21 19:49 ` Zhiyun Qian
2012-12-21 22:45 ` Eric Dumazet
2012-12-21 23:52 ` Zhiyun Qian
2012-12-22 0:01 ` Eric Dumazet [this message]
2012-12-22 0:04 ` Eric Dumazet
2012-12-22 0:08 ` Zhiyun Qian
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=1356134481.21834.8090.camel@edumazet-glaptop \
--to=erdnetdev@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=zhiyunq@umich.edu \
/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