lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 30 Apr 2007 10:42:38 +0300 (EEST)
From:	"Ilpo Järvinen" <ilpo.jarvinen@...sinki.fi>
To:	David Miller <davem@...emloft.net>
cc:	Netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] [RFC] [TCP]: Catch skb with S+L bugs earlier

On Mon, 30 Apr 2007, David Miller wrote:

> From: "Ilpo_Järvinen" <ilpo.jarvinen@...sinki.fi>
> Date: Wed, 28 Mar 2007 17:02:47 +0300 (EEST)
> 
> > SACKED_ACKED and LOST are mutually exclusive, thus this
> > condition is bug with SACK (IMHO). NewReno, however, could get
> > enough duplicate ACKs which increment sacked_out, so it makes
> > sense to do this kind of limitting for non-SACK TCP but not for
> > SACK-enabled one. Perhaps the author had that in mind but did
> > the logic accidently wrong way around?
> > 
> > Eventually these bugs trigger traps in the tcp_clean_rtx_queue
> > but it's much more informative to do this here (excludes some
> > other possible bugs).
> > 
> > Maybe this BUG_TRAP is too expensive to be included everywhere
> > in the TCP code. Should there be some #if to surround it?
> > 
> > Compile tested. Sadly enough I don't have time for couple of
> > weeks to test this as it would require some setuping, and besides,
> > my test machines are occupied currently to other work, but this 
> > might also be net-2.6 (or even stable) material if it really
> > works (feel free to cut this paragraph or part of it if you
> > decide to include this :-)).
> > 
> > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...sinki.fi>
> 
> I've applied this, thanks for your patience.
> 
> I will see if it makes my workstation explode :-)

I think I sent an updated version later (hopefully I reach you before 
you push these out :-)), which made the BUG_ON unconditional (I used it 
instead of BUG_TRAP as it seems to be generic machinery for handling 
these).

Mine didn't explode (neither with SACK nor without it)... :-) With 
SACK it's very clearly a BUG that must never happen (non-SACK seems safe 
but I haven't tested e.g. all those fragmentation/collapse paths).

-- 
 i.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ