Files
twx-linux/net/ipv4
Eric Dumazet eb18330f4d inet: frags: better deal with smp races
[ Upstream commit 0d5b9311ba ]

Multiple cpus might attempt to insert a new fragment in rhashtable,
if for example RPS is buggy, as reported by 배석진 in
https://patchwork.ozlabs.org/patch/994601/

We use rhashtable_lookup_get_insert_key() instead of
rhashtable_insert_fast() to let cpus losing the race
free their own inet_frag_queue and use the one that
was inserted by another cpu.

Fixes: 648700f76b ("inet: frags: use rhashtables for reassembly units")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: 배석진 <soukjin.bae@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-23 08:20:34 +01:00
..
2018-04-13 19:48:32 +02:00
2016-10-20 14:32:22 -04:00
2018-07-28 07:49:11 +02:00
2016-09-21 00:23:01 -04:00
2017-11-18 11:22:22 +01:00
2017-05-14 14:00:21 +02:00