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] [day] [month] [year] [list]
Date:	Wed, 17 Apr 2013 01:15:40 -0400 (EDT)
From:	David Miller <davem@...emloft.net>
To:	eric.dumazet@...il.com
Cc:	tparkin@...alix.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net: drop dst before queueing fragments

From: Eric Dumazet <eric.dumazet@...il.com>
Date: Tue, 16 Apr 2013 15:55:41 -0700

> From: Eric Dumazet <edumazet@...gle.com>
> 
> Commit 4a94445c9a5c (net: Use ip_route_input_noref() in input path)
> added a bug in IP defragmentation handling, as non refcounted
> dst could escape an RCU protected section.
> 
> Commit 64f3b9e203bd068 (net: ip_expire() must revalidate route) fixed
> the case of timeouts, but not the general problem.
> 
> Tom Parkin noticed crashes in UDP stack and provided a patch,
> but further analysis permitted us to pinpoint the root cause.
> 
> Before queueing a packet into a frag list, we must drop its dst,
> as this dst has limited lifetime (RCU protected)
> 
> When/if a packet is finally reassembled, we use the dst of the very
> last skb, still protected by RCU and valid, as the dst of the
> reassembled packet.
> 
> Use same logic in IPv6, as there is no need to hold dst references.
> 
> Reported-by: Tom Parkin <tparkin@...alix.com>
> Tested-by: Tom Parkin <tparkin@...alix.com>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ