lkml.org 
[lkml]   [2020]   [Jan]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [netfilter-core] INFO: rcu detected stall in hash_ip4_gc
On Tue, 28 Jan 2020, Hillf Danton wrote:

>
> On Mon, 27 Jan 2020 23:14:03 +0100 (CET) Kadlecsik Jozsef wrote:
> >
> > Thanks for the patch, but it does not fix completely the issue: the same
> > error message can pop up in ip_set_uadd(), because it calls the gc
> > function as well when the set is full but there can be timed out entries.
>
> Why is trylock-based gc going to make hassle again?

Because mtype_expire() which scans the whole set to find and evict
expired entries is called not only from the gc function but from add as
well (to reclaim space since last gc) and list too (to get the number of
elements). One locks out the another and that reported in the error
message.

> > I'm going to work on a solution with covers that case too.

Region-locking seems to be the best way to go.

Best regards,
Jozsef
-
E-mail : kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.mta.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics
H-1525 Budapest 114, POB. 49, Hungary

\
 
 \ /
  Last update: 2020-01-28 09:55    [W:0.056 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site