Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp176089ybl; Tue, 28 Jan 2020 00:54:56 -0800 (PST) X-Google-Smtp-Source: APXvYqw7mnG8sG++/ZhDMNE+t5fPmKCiEqnxeeNyeCR9j3zuS7p9Y7WqLlx7bEk0T0+294TSZIde X-Received: by 2002:aca:ea43:: with SMTP id i64mr2173235oih.30.1580201696653; Tue, 28 Jan 2020 00:54:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580201696; cv=none; d=google.com; s=arc-20160816; b=RbTQ+MPkdYha00s2iIDMh0O3ruPc9dr/Q8g69dzplnMReY8juhNwUahguT9aWKM2+S pBxL0AIvwAQaBmFKfJfdKO373L8DXJQKUEmaB9t3SceBtduwHSZ8Jtv2tnxK3yVTPaAb 8IU3f+0BEA/RZtiQ0TI8aG5nAaIH7cAwZ2FN3Rk/TXGfVfwU4R/UYZ7lKFJXhO+9mXev GRDeVE8yEYvJMES43YpEfdlShNzmE44m08hYh9a2jt3LLxdTu11JB5tv4p3kiiG5Gdxi Ws+T4oLFvK04iv76Dr/NBbxRz3nFZ8cujnpfeKqmrqT2p1fn1FdrzVBd9hwuJWLZA/eh 8euA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=aEm/fnpwIzWLBFMzwB9RT2bfWnCXazD/1uWSPnX+jGU=; b=Y4V//zDe40JZHvBmuSv8JXHl22t64JRp6GpeO07QlF82wkXTERoyLnvwW8HgsOfHCW N9jBETNWeHqQCecjmpjxkW22asMJG+hFm16xp069TbSwHuvZ8cBAVjbVwwn+Xt30NU53 r3XTvDG5soYCR8gUZLFKHw05zjlJTaWCQrw4JB6VnGrIln+yN4x9FstrCirLhw1uPzzO X+l++2KYqJdKJteDHsNOFz6bC0r45f6IeGtWeXV5kyOd/wWuuzqwG4aH14kyhp88sqSn 2VxNuCCLp7k8sQzEQcD09/mKjMG87eLy98fA5jnLsyfcmeTXTbpNcjYID2WrQS2V/Got ZOfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@blackhole.kfki.hu header.s=20151130 header.b="m/K75uwD"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=blackhole.kfki.hu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e25si8364655otk.62.2020.01.28.00.54.44; Tue, 28 Jan 2020 00:54:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@blackhole.kfki.hu header.s=20151130 header.b="m/K75uwD"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=blackhole.kfki.hu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725988AbgA1Ixv (ORCPT + 99 others); Tue, 28 Jan 2020 03:53:51 -0500 Received: from smtp-out.kfki.hu ([148.6.0.48]:39983 "EHLO smtp-out.kfki.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbgA1Ixu (ORCPT ); Tue, 28 Jan 2020 03:53:50 -0500 Received: from localhost (localhost [127.0.0.1]) by smtp2.kfki.hu (Postfix) with ESMTP id C3A4ACC00F3; Tue, 28 Jan 2020 09:53:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= blackhole.kfki.hu; h=mime-version:user-agent:references :message-id:in-reply-to:from:from:date:date:received:received :received; s=20151130; t=1580201626; x=1582016027; bh=aEm/fnpwIz WLBFMzwB9RT2bfWnCXazD/1uWSPnX+jGU=; b=m/K75uwD9E6PxpckwbYoABDtqk llryMXTa73E+TcBIeB5ABpidFTO6asepGDrlldSOfDx4JgEnIYlZm5aIoMaeSjDj 13lG1epV8GOvRQ3cWHiFYO2PjH3mx5ItQqjRtk5XsSVsqiEQTj3cq1gjgUHxtlP+ WNmga9TFXsshmBeDQ= X-Virus-Scanned: Debian amavisd-new at smtp2.kfki.hu Received: from smtp2.kfki.hu ([127.0.0.1]) by localhost (smtp2.kfki.hu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP; Tue, 28 Jan 2020 09:53:46 +0100 (CET) Received: from blackhole.kfki.hu (blackhole.kfki.hu [148.6.240.2]) by smtp2.kfki.hu (Postfix) with ESMTP id 68DDACC00F2; Tue, 28 Jan 2020 09:53:45 +0100 (CET) Received: by blackhole.kfki.hu (Postfix, from userid 1000) id 4211F21A72; Tue, 28 Jan 2020 09:53:45 +0100 (CET) Date: Tue, 28 Jan 2020 09:53:45 +0100 (CET) From: =?UTF-8?Q?Kadlecsik_J=C3=B3zsef?= To: Hillf Danton cc: syzbot , x86@kernel.org, tony.luck@intel.com, peterz@infradead.org, netdev@vger.kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, coreteam@netfilter.org, bp@alien8.de, netfilter-devel@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, davem@davemloft.net Subject: Re: [netfilter-core] INFO: rcu detected stall in hash_ip4_gc In-Reply-To: <20200128022601.15116-1-hdanton@sina.com> Message-ID: References: <20200127042315.10456-1-hdanton@sina.com> <20200128022601.15116-1-hdanton@sina.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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