[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140305.203453.493197545857379985.davem@davemloft.net>
Date: Wed, 05 Mar 2014 20:34:53 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: nikolay@...hat.com
Cc: netdev@...r.kernel.org, fw@...len.de, brouer@...hat.com
Subject: Re: [PATCH v2] net: fix for a race condition in the inet frag code
From: Nikolay Aleksandrov <nikolay@...hat.com>
Date: Mon, 3 Mar 2014 23:19:18 +0100
> The fix is simple, just move the lru_add under the hash chain locked
> region so when a removing function is called it'll have to wait for the
> fragment to be added to the lru_list, and then it'll remove it (it works
> because the hash chain removal is done before the lru_list one and
> there's no window between the two list adds when the frag can get
> dropped). With this fix applied I couldn't kill the same machine in 24
> hours with the same setup.
>
> Fixes: 3ef0eb0db4bf ("net: frag, move LRU list maintenance outside of
> rwlock")
Applied and queued up for -stable, thanks.
--
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