Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp51906lqq; Wed, 12 Jun 2024 16:29:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWbLH/3ao25QURYGSjlt1wpLTsPjGcJo4uBk/99wlCyQSYDmCg4attGNEZiUinAvyvgDpqTLCZ4HV+eZoBs5pjWieIr8bdXT4v+zerEyA== X-Google-Smtp-Source: AGHT+IGNR6HUQWHhDDddXB0Wea1aRsWVGVrZ+QQP5tBhXXv8ZYsG5YAK1fEwLMd34RmvfajAQmlo X-Received: by 2002:a17:906:fb12:b0:a68:b557:76f5 with SMTP id a640c23a62f3a-a6f48009ee5mr168101266b.69.1718234987197; Wed, 12 Jun 2024 16:29:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718234987; cv=pass; d=google.com; s=arc-20160816; b=uBErxGw2/c9yfzJGRT6upQqPYnoEI1OkqDO2Foc6QvunUuw5nSJS0wnhOyFG+B5HC2 VxeFeVsGdMYrkONG6uoyOGorqH6fT3KYBX8NAk9nTYhESzLPG4RmCTBIoBUtJ0ohNZ1f hnH27l02ybCSOGXL4I0UBOhZuIJV3pEEyV56Jz8XrQVdr+Mm7z8o0Y6etB6Sz8NUTP2c 4DvIJoG22wM4s1c4tirsx0Vc4j6tSnyr0bQ2OmND8qiUwa05Pjglg/J44ndJjPA6bvY8 x/q5wriz3SD34Pqgj5hq45PyJCTRLh/PWH0JP8RI3rn7YJ4sq2NOWxh0FueBxyJQggvJ Kx2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yOh52ckwej5r18PRkVmjQlcSDns7+NZmhFSFXWhw010=; fh=euJQi7QosZVOLSaF7goyA0RcrZZNWuEHIzsS3gLGESY=; b=MQC13XTYLqZ8qegH8hAoQBDt5rJ0SwiionwSbJUl3KDczyd+tjSYKRXihKLgbfz/eH PM+argv0YUMWv6Tl2m5qpqgW+/um1L3z7p8SxGPLP+i4e945gJ9Y9fcS4ILnkUk7qbIY 6BX1SOcJXs95YFdI2ffYToNdH+c0lvq0jiCRhou8loaK9Bx1MYpVneyxlD5oKo7VJfTB o/FK9F8jCFiMei32NeeMGBgzXXqby6p3eXcf0+59GjkdHLr3Qzlb8igYlBHcKs66DNbR rjaqVDtjVYkBAm6H9g3d9g3J22LjmIedMkzgUGpD/EutIr4aiOr/eBk2jqQyrIDyiygi 9wPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=YLpr5uXR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-212378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e3b65bsi5153966b.815.2024.06.12.16.29.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 16:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=YLpr5uXR; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-212378-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212378-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BF4381F22520 for ; Wed, 12 Jun 2024 23:29:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F70F12CDB6; Wed, 12 Jun 2024 23:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="YLpr5uXR" Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABFF912CD88 for ; Wed, 12 Jun 2024 23:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718234978; cv=none; b=IjNx6MHIG2quCoJgs+SkSS8LjswDxNlSMM3Dmkd26vhs8BQyWjKMZPbw3IngqQ3fRFFEgF36GZkIwU1aXikteRQ7JgnjRha+6t4ilVzp6tMB1wWgCO0fzI92F1edm5aqg6Q45JtJ/qNbBB1CggbzNKSZomovWj2jbXliKqRqoww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718234978; c=relaxed/simple; bh=jg2Hi9k6fwxW2IpyOYwdjHzjY2x3RN1zTqa9ZNVIbhs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GP0+dpzmpXnEGUTbDhmC8caJECvsrZjRe5jQS3SfO9/BG0Iz7H5N/E4vm1CLueh07NU/K2rj6nb1rLfEq/Oy4TWoa3HDOxCe275DllENDYFnFNZBWTmbvt/B0Y2husvZcBid54QbwWMlrtlc1HqCqALO5rAYryYfL8+GcGdUNA8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=YLpr5uXR; arc=none smtp.client-ip=91.218.175.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: syzbot+3cca837c2183f8f6fcaf@syzkaller.appspotmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1718234973; 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: in-reply-to:in-reply-to:references:references; bh=yOh52ckwej5r18PRkVmjQlcSDns7+NZmhFSFXWhw010=; b=YLpr5uXRd/Nq2sg5r/RsshqLJkRrlm+FrmBkeYopcBuJKceSco8Fmzprh4ajLz4pjFxmDP CgwOz3kqL3x5XqYFhapTWaBUA1/Sh2CHAFhIovDShNWd0OZkLo2Z1jJpDEFJecnUAbL2ma KrSmM990lu4GD+iiWpJxNU35dn42FRM= X-Envelope-To: bfoster@redhat.com X-Envelope-To: linux-bcachefs@vger.kernel.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: syzkaller-bugs@googlegroups.com Date: Wed, 12 Jun 2024 19:29:28 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: syzbot Cc: bfoster@redhat.com, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [bcachefs?] WARNING: locking bug in srcu_gp_start_if_needed Message-ID: <6jwebqun2sbikkdeum7sxuhtqmiiergyj6tseuk6lbwtqipukg@g5jr4svt5pyd> References: <0000000000002b1e82061a94aaef@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0000000000002b1e82061a94aaef@google.com> X-Migadu-Flow: FLOW_OUT On Mon, Jun 10, 2024 at 08:14:32PM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: d30d0e49da71 Merge tag 'net-6.10-rc3' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=11f5d896980000 > kernel config: https://syzkaller.appspot.com/x/.config?x=96fd46a1ee1615e0 > dashboard link: https://syzkaller.appspot.com/bug?extid=3cca837c2183f8f6fcaf > compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 > userspace arch: i386 > > Unfortunately, I don't have any reproducer for this issue yet. > > Downloadable assets: > disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7bc7510fe41f/non_bootable_disk-d30d0e49.raw.xz > vmlinux: https://storage.googleapis.com/syzbot-assets/970e3906a552/vmlinux-d30d0e49.xz > kernel image: https://storage.googleapis.com/syzbot-assets/d80af4a76ff6/bzImage-d30d0e49.xz > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+3cca837c2183f8f6fcaf@syzkaller.appspotmail.com > > ------------[ cut here ]------------ > DEBUG_LOCKS_WARN_ON(1) > WARNING: CPU: 1 PID: 111 at kernel/locking/lockdep.c:232 hlock_class kernel/locking/lockdep.c:232 [inline] > WARNING: CPU: 1 PID: 111 at kernel/locking/lockdep.c:232 hlock_class+0xfa/0x130 kernel/locking/lockdep.c:221 > Modules linked in: > CPU: 1 PID: 111 Comm: kswapd0 Not tainted 6.10.0-rc2-syzkaller-00222-gd30d0e49da71 #0 > Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 > RIP: 0010:hlock_class kernel/locking/lockdep.c:232 [inline] > RIP: 0010:hlock_class+0xfa/0x130 kernel/locking/lockdep.c:221 > Code: b6 14 11 38 d0 7c 04 84 d2 75 43 8b 05 b3 2e 77 0e 85 c0 75 19 90 48 c7 c6 80 be 2c 8b 48 c7 c7 20 b9 2c 8b e8 97 47 e5 ff 90 <0f> 0b 90 90 90 31 c0 eb 9e e8 98 f6 7f 00 e9 1c ff ff ff 48 c7 c7 > RSP: 0018:ffffc90000e9f338 EFLAGS: 00010086 > RAX: 0000000000000000 RBX: 00000000000018c4 RCX: ffffffff81511229 > RDX: ffff888019f8a440 RSI: ffffffff81511236 RDI: 0000000000000001 > RBP: 0000000000008000 R08: 0000000000000001 R09: 0000000000000000 > R10: 0000000000000000 R11: 000000002d2d2d2d R12: 0000000000000000 > R13: 0000000000000000 R14: ffff888019f8afe8 R15: 00000000000018c4 > FS: 0000000000000000(0000) GS:ffff88802c100000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00000000eeb14000 CR3: 0000000046f74000 CR4: 0000000000350ef0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > > check_wait_context kernel/locking/lockdep.c:4773 [inline] > __lock_acquire+0x3f2/0x3b30 kernel/locking/lockdep.c:5087 > lock_acquire kernel/locking/lockdep.c:5754 [inline] > lock_acquire+0x1b1/0x560 kernel/locking/lockdep.c:5719 > __raw_spin_trylock include/linux/spinlock_api_smp.h:90 [inline] > _raw_spin_trylock+0x63/0x80 kernel/locking/spinlock.c:138 > spin_lock_irqsave_sdp_contention kernel/rcu/srcutree.c:373 [inline] > srcu_gp_start_if_needed+0x75e/0xf00 kernel/rcu/srcutree.c:1233 > bkey_cached_free fs/bcachefs/btree_key_cache.c:90 [inline] > bch2_btree_key_cache_scan+0xb90/0x1820 fs/bcachefs/btree_key_cache.c:886 > do_shrink_slab+0x44f/0x11c0 mm/shrinker.c:435 > shrink_slab+0x18a/0x1310 mm/shrinker.c:662 > shrink_one+0x493/0x7c0 mm/vmscan.c:4790 > shrink_many mm/vmscan.c:4851 [inline] > lru_gen_shrink_node+0x89f/0x1750 mm/vmscan.c:4951 > shrink_node mm/vmscan.c:5910 [inline] > kswapd_shrink_node mm/vmscan.c:6720 [inline] > balance_pgdat+0x1105/0x1970 mm/vmscan.c:6911 > kswapd+0x5ea/0xbf0 mm/vmscan.c:7180 > kthread+0x2c1/0x3a0 kernel/kthread.c:389 > ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 > ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 > > > > --- > This report is generated by a bot. It may contain errors. > See https://goo.gl/tpsmEJ for more information about syzbot. > syzbot engineers can be reached at syzkaller@googlegroups.com. > > syzbot will keep track of this issue. See: > https://goo.gl/tpsmEJ#status for how to communicate with syzbot. > > If the report is already addressed, let syzbot know by replying with: #syz fix: bcachefs: Fix initialization order for srcu barrier