Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9258160rwp; Thu, 20 Jul 2023 01:58:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlFrEanAC5vYDHM/HUyzVFdl4MRkZSna1+7qCPEBRHT2p8BEd5ZfRl6Mj2dvUfKlw7pRjZp6 X-Received: by 2002:aa7:d443:0:b0:51e:293b:e1ce with SMTP id q3-20020aa7d443000000b0051e293be1cemr1504579edr.31.1689843516306; Thu, 20 Jul 2023 01:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689843516; cv=none; d=google.com; s=arc-20160816; b=DfxXOVTX3NzPMKUtWfk0PQI3amYg/faSbf0YLocO9515Fj8xgnl0lPTTuouDJIANGg 45nUHr+oz2NIiQ2C3mXmGflmIfyvIGPBgcKwyWfPtfo16uwEMe/jR9yol8kqOBMzxi3X nrb7enyTkl2E1E4cUOOkRsIqH4t9l9ffw1meQLqC3tMkoUP4U4kIMCQbG3cpoGVIxVwD sHyFGy1IWQ7S/O2r2jX55K+cIfHn13H+PCdPWTYNK4MckcBOUai+zyC5yneDpOuJIt1Z 8pzOm3LyIlGVIkhc5Yy8yb2Bl/5R2hRHc3OM3QjcUspnPUm2jbSCd/72RnJsw/IUt3Yp LrYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=bYGtszuU5wIRpPGldAIwvzXGaeXBUQT3e9Yc1Tmh1Tk=; fh=y2tcddcwknpBfGYaSY7VdT2K0smZzy/vgI8k389TWjI=; b=syYg+9dKMnZeHI1HvK+aB87wUm8UdtIk+HGBmg0dPUCzSKBYkcbMHqKMWxh1QOjCjk EjLL8QBgLgKpVoLFt9EuERLRsxLR41rseoBmUVHmCutXGvff2z5Eh3EZv8R87N/geCK7 q4qIDjcaD2IqO7qCZB5m6+mvtjT5NZ0mzauLsb7PvCcnIh71stYNp17rtr0fyEkbIrVY ZsGM0XBGdGfGejmec8jvE6F1LVOE3YQSDrmqCjqLL2d1dmQhqYbtiR41jQeRmz0wCxt/ WqazhltRFkbIBWgf0a8EuUDYTC0qT0ckldGCPkhEDHmiqw26N2GHogv2IA40d01KMLSL 2rfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Z9pGKg/K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l22-20020aa7c3d6000000b0051de2c4f947si535585edr.643.2023.07.20.01.58.10; Thu, 20 Jul 2023 01:58:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Z9pGKg/K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231167AbjGTHTj (ORCPT + 99 others); Thu, 20 Jul 2023 03:19:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbjGTHTg (ORCPT ); Thu, 20 Jul 2023 03:19:36 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF7A72123 for ; Thu, 20 Jul 2023 00:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689837531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bYGtszuU5wIRpPGldAIwvzXGaeXBUQT3e9Yc1Tmh1Tk=; b=Z9pGKg/KsTeZ5EcdTMu2Fldfe2m7ybWbYmiCAbDbu4wtqbcf2MB2XL7G+f/6JuhdHO0zc6 xafnAB7qS3DtdhJdlHNLyqs+06YHO0Es8kWiyiz22U/96EYeiN9FxxhTr5iuJI9tLVi2l4 D97gnJo5AvnFSYesupbb0DiM/GRkG60= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-445--FLsBzn7PSCnXmqxXUzsqw-1; Thu, 20 Jul 2023 03:18:50 -0400 X-MC-Unique: -FLsBzn7PSCnXmqxXUzsqw-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-767edbf73cbso13955585a.1 for ; Thu, 20 Jul 2023 00:18:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689837530; x=1690442330; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bYGtszuU5wIRpPGldAIwvzXGaeXBUQT3e9Yc1Tmh1Tk=; b=Z2t9BRZSxOimwRqEHctyZUBWYCDqNo0/Yns6qNh6/vr02yinrUukEhcmoTkLb1IjFm KgPIb2kzN4GcY83Gw8yT62OxafnwI9UtcupkfkGwDlFX5P+Y5XFlp6RBavY7+n6TV2xV UCN7NJtGKNX8knVuGBhUMRqdANgA/5zJ9BJQkPZ+lq/AtesY4NzWSif7fEiCgfTItG5L 6NECIymGfyHb+/6A5XdI/rhuC3+wcyP9iXn9w3BABof5R3tc4mEg+A6AUkybp3DGMBK4 5D6tRl5iBG2wa6ZfmEpbL3nA2ycMlJixTJ6II7Iw5hEKFMCKGBDuaoh7GJVZVRGoUDY0 ae5A== X-Gm-Message-State: ABy/qLYIIxLVeuhqrMfTWRswgpjHmTF11Za/SUPkcW0RykirkZDBNVhS n71LVNWZz31RPIcUvQm6QOJuDKK3F0hkUqAZbLDTaYE5HD8kJ3tBwf9KTiOub126xqG/yh2Qlxe VkjjySWYDSz9mCaYARHW6YIAx X-Received: by 2002:a05:6214:762:b0:616:870c:96b8 with SMTP id f2-20020a056214076200b00616870c96b8mr17420018qvz.3.1689837530202; Thu, 20 Jul 2023 00:18:50 -0700 (PDT) X-Received: by 2002:a05:6214:762:b0:616:870c:96b8 with SMTP id f2-20020a056214076200b00616870c96b8mr17419995qvz.3.1689837529948; Thu, 20 Jul 2023 00:18:49 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-226-170.dyn.eolo.it. [146.241.226.170]) by smtp.gmail.com with ESMTPSA id n14-20020a0ce48e000000b0062b76c29978sm154802qvl.6.2023.07.20.00.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 00:18:49 -0700 (PDT) Message-ID: Subject: Re: [syzbot] [btrfs?] [netfilter?] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low! (2) From: Paolo Abeni To: Jakub Kicinski , netdev@vger.kernel.org Cc: Florian Westphal , Aleksandr Nogikh , syzbot , dsterba@suse.cz, bakmitopiacibubur@boga.indosterling.com, clm@fb.com, davem@davemloft.net, dsahern@kernel.org, dsterba@suse.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, josef@toxicpanda.com, kadlec@netfilter.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux@armlinux.org.uk, netfilter-devel@vger.kernel.org, pablo@netfilter.org, syzkaller-bugs@googlegroups.com Date: Thu, 20 Jul 2023 09:18:44 +0200 In-Reply-To: <20230719203030.1296596a@kernel.org> References: <20230719170446.GR20457@twin.jikos.cz> <00000000000042a3ac0600da1f69@google.com> <20230719231207.GF32192@breakpoint.cc> <20230719203030.1296596a@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,PLING_QUERY, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2023-07-19 at 20:30 -0700, Jakub Kicinski wrote: > On Thu, 20 Jul 2023 01:12:07 +0200 Florian Westphal wrote: > > I don't see any netfilter involvement here. > >=20 > > The repro just creates a massive amount of team devices. > >=20 > > At the time it hits the LOCKDEP limits on my test vm it has > > created ~2k team devices, system load is at +14 because udev > > is also busy spawing hotplug scripts for the new devices. > >=20 > > After reboot and suspending the running reproducer after about 1500 > > devices (before hitting lockdep limits), followed by 'ip link del' for > > the team devices gets the lockdep entries down to ~8k (from 40k), > > which is in the range that it has on this VM after a fresh boot. > >=20 > > So as far as I can see this workload is just pushing lockdep > > past what it can handle with the configured settings and is > > not triggering any actual bug. >=20 > The lockdep splat because of netdevice stacking is one of our top > reports from syzbot. Is anyone else feeling like we should add=20 > an artificial but very high limit on netdev stacking? :( We already have a similar limit for xmit: XMIT_RECURSION_LIMIT. I guess stacking more then such devices will be quite useless/non functional. We could use such value to limit the device stacking, too. Cheers, Paolo