diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-06 18:46:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-07 13:29:28 -0500 |
commit | a560002437d3646dafccecb1bf32d1685112ddda (patch) | |
tree | 7ab982974c8eef6262d722034ead8a4011f9bcda /scripts | |
parent | e06513d78d54e6c7026c9043a39e2c01ee25bdbe (diff) | |
download | linux-a560002437d3646dafccecb1bf32d1685112ddda.tar.bz2 |
net: Fix hlist corruptions in inet_evict_bucket()
inet_evict_bucket() iterates global list, and
several tasks may call it in parallel. All of
them hash the same fq->list_evictor to different
lists, which leads to list corruption.
This patch makes fq be hashed to expired list
only if this has not been made yet by another
task. Since inet_frag_alloc() allocates fq
using kmem_cache_zalloc(), we may rely on
list_evictor is initially unhashed.
The problem seems to exist before async
pernet_operations, as there was possible to have
exit method to be executed in parallel with
inet_frags::frags_work, so I add two Fixes tags.
This also may go to stable.
Fixes: d1fe19444d82 "inet: frag: don't re-use chainlist for evictor"
Fixes: f84c6821aa54 "net: Convert pernet_subsys, registered from inet_init()"
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions