summaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2018-11-08 17:34:27 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-08 11:25:33 +0100
commite92b8475d6d7319bb69c3bdf307f3d9384c3776a (patch)
tree817ec3ec2f84f0a8b451d29b4d1150aadcb1fd15 /include/linux/overflow.h
parentacd00a0692072b374afee4b6f38c1eb1c6cf6f4a (diff)
inet: frags: better deal with smp races
commit 0d5b9311baf27bb545f187f12ecfd558220c607d upstream. 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: 648700f76b03 ("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: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions