Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp95490lqp; Mon, 10 Jun 2024 20:14:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVOwCvEEwe60KuMQqnY0R+2pzzTziiL7zPjKhJrZfGPH1f3kQiiveawxxEw2O7ov1b5UCE8trh/ikE97xOfGCR7fTAt6F4KVCP2aj37+A== X-Google-Smtp-Source: AGHT+IHDQRRFg6k/L8VeLBNWNhjW8kUnB6XY+3JXL3Joyl/ScGVFI0gTDFGZu14rCYxBft+ISm2Q X-Received: by 2002:a17:903:244a:b0:1f7:3163:831e with SMTP id d9443c01a7336-1f7316386a9mr6597625ad.32.1718075692799; Mon, 10 Jun 2024 20:14:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718075692; cv=pass; d=google.com; s=arc-20160816; b=ghSQKP9vGZ/pZ4/bcNm1UkhIA3tN2/uAcH9FhzqtM6csPWj/2VYzNbPxTwOlVYce/V Vxo/41yNmWUuuwbb1irxC9Gyh2iNTMyP9vlDQ8djXZ0trcia+EZUYVJ/2qmaBRTRkuwJ BR/h6keFgU9Gwtv1sd+tRhMaCGE0T3RxOiAS3Wheg1hqEIpvXIONc1ItXMQba2xbYT0s QtzC8Fu1OUSdE2GD2ZOPjrAPEr9Bc5f2TGW/MrRxQnBbHkd8ATJoz09bGXTZa7UIw+Sd eJmemmoyJlOKaPxcUXaRPOS8BhV++nWAGg01C9IGeoPoMJRgaaCEj4VBrqxoJfhcEsQO i59g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=RYjYM0JZ0ej8f0kLyK0sQ6PA3/U/McvM0TTZxMmiXk4=; fh=P4uJEfh/VDMiIB2NUcIr6qnbHFFfQKOXXQuAskTeB6k=; b=n2lSnLB2yplrYXM/egHhBHndLxJx7aYrsVOlVfNXNom7CgKz1dUFJMBbKc7/Hgxavz 3qMTVVJCHk57WrSlp9SXE8KgTn27ALWZ1GaTIQqf5Sdk5Y6JqLFsCrYplHqUl3ho+Aqw /dNnajuVLsrGTGX0uThxAyue1sgdq9YD4B02s9ycJzhNfpteNRVAG34T5XPsmPgPPcjX 0pMXkmvtSVdZHzhRX+ojGZ3mI819yA+qTfiCIzImaPcYV3CN/RYD2qfFiIpVByFQO3lW 2f7jOABspdfkSW7PKJ8Xq2tkhVUv0+y2PQQXHCxsa+VQ3RNE/rBQ612IHrUnz2xUTHap iqTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-209211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f7149659e1si28194695ad.252.2024.06.10.20.14.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 20:14:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-209211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E73FCB21E49 for ; Tue, 11 Jun 2024 03:14:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9F4216F8FD; Tue, 11 Jun 2024 03:14:35 +0000 (UTC) Received: from mail-il1-f208.google.com (mail-il1-f208.google.com [209.85.166.208]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE9A516F8F2 for ; Tue, 11 Jun 2024 03:14:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.208 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718075675; cv=none; b=kKZNm30QBILGkI98Jr5cJA+nXPfzSZ0YzwhTSe5cB6y3fa+U0Ty9Ojyp1Np29Wk6zI3DQIn6T6W5Y8GUJvQrvo1iB4PtM9Tu00ULT2aDnan+ePzBwj5N9b8wkLrfZcJSNFIKWtb7IgGST6FRGTEH6c433Nje7iwprLhO252cT4I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718075675; c=relaxed/simple; bh=VGRnZZqPDyW2EDepRD1odJM+RoQ+7Jsw78lL3gHC/zo=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=tC1LpiWwZIdM/4gkKJdD5h615qm0PaHqVlly74ov+CWE+wLGPWNnhNQNCnyzhZfqKFx16Ond1SeweYDJkiKDi50hWfw1o69c/bpcvnl1CGGEWtiv6sEW2zNj+oteRC+2jnWk2CibDta8wc48r7WNjRDJ5AID/0+zxZzUO2mJYq0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.208 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f208.google.com with SMTP id e9e14a558f8ab-3759dc9a0e1so21711795ab.0 for ; Mon, 10 Jun 2024 20:14:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718075673; x=1718680473; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RYjYM0JZ0ej8f0kLyK0sQ6PA3/U/McvM0TTZxMmiXk4=; b=w/3+z1To/q/PBaDOsiY4mgbxde+qOM/+ZpydoifQYrJhkYKYOsHsf4RhCPCeK4ZGH/ yFj0mLVBeUaK5bdAPI6GEJ9pre5pZ8mxLJhAxr97ansnGt45lT/ZVjlew0OkN0U2jZHk bV0mojSwOGVBMZs9fjzowF4wJrUfJ6levxScaJscIMIeDB5oaMm7TDU5YANXJ5F5QxST c5Tg0eoUDNboKf9NO97Je617QPrXvNIFoNjyBNtH27/K7IXJMUDdj0DHjyTNZ8lFXSUQ pY8GjRoKavkNjjDX7KGHBkw0JD8Lv1rRY7bu5WekTT+X6XrNX+HvZNrw8WXgjmt7nYum tehQ== X-Forwarded-Encrypted: i=1; AJvYcCWV9COqs6ggt9oA8VvFYa9UjRAfO2rQm5uHsB4G+gIni/+zMUXJTT6d2b66ixK8rnGeI7BfMA7t6Jz6ADyIGeXBFv8WMe1/q6h6JfaB X-Gm-Message-State: AOJu0YwEKXY4ekGPY9J7cbmt1NsIRBbXfhlupAcddSB8nt+DGj+5hXoa L/ziMGg8GpWMq8NyHeHLJdXLDW+hNIegGcWBTrzRju9hyu/t3n8GafNRRAoUroGXQZXZbvoYtxg qMh0GYppBYue9nmzsUMhhoHmkDHUr7hGTlA/3C5/IwHXbyNVLrgRJ7Rs= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1aa8:b0:375:9cb9:9d04 with SMTP id e9e14a558f8ab-3759cb9a138mr4678895ab.3.1718075672693; Mon, 10 Jun 2024 20:14:32 -0700 (PDT) Date: Mon, 10 Jun 2024 20:14:32 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002b1e82061a94aaef@google.com> Subject: [syzbot] [bcachefs?] WARNING: locking bug in srcu_gp_start_if_needed From: syzbot To: bfoster@redhat.com, kent.overstreet@linux.dev, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" 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: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup