From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) (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 53C2C2BB1B for ; Sun, 27 Oct 2024 13:55:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730037336; cv=none; b=h3wWp86jcUBBitlTGf72E7uV3DG9jXh0KqukzXnXdrw+6shcWGARDV9Klyw1uXYI4NJeZKAP2b2jnteSlOM8vmtURmB8QUjcQikIqpcJP2e9JTzy1T/kQX+ie99GXZ+l+yVRWhXT2DlXHwl685JKRfTtlQou7t9RDj99ohvrLPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730037336; c=relaxed/simple; bh=IagfQGZZSfpCbczPiCtVB7H5zIQnFPYsAAqk0fIFFNc=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Pzdi2MtCxOgXMnKa1ZilEO8c2xiCYDlBsAgwdEECU8m+nhA93SwVKhH+IhXrv9d1M+ErVq18zmvRx9D9ph9+KkaD99bMZ6S5tkdzLUJyQRQDn/WpVwMEJWXIMuXB9P4cOiOvM7K2qgf6b3X/o8WLm1GlRW/rUo/exF8gnW8KWGY= 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.199 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-f199.google.com with SMTP id e9e14a558f8ab-3a3b506c87cso34783225ab.1 for ; Sun, 27 Oct 2024 06:55:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730037333; x=1730642133; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DvpTdNJAHMUYMjV0otN9rJrodmRbe5MNxe8dC8b5a+s=; b=evsoK331oFODOqfnqwxzUNuayfvkZdh6MTFzeOqhsXFBwOl1bK2o9l1T05FN2gmVWx j2uTCai8a9zmnwHH0U4Pag3tIAfubri4FgfckJ/dBW25XYpU97krlHxq4BgRT7YrVpF6 /zCkI5+AA1wLBPjAvAzIvzu8SotE4jv/lSm4MihE3h6PrhDWNmJzLf47LJ51J8Qkq7v9 RT2+Mqaq0fRVhxPMCUC5eZAtc9MXVo+dz/pPVN51GkFvQgRpd6HdcPOoVVYRerDrEJDv YfF0iS8mI6dR+/gnxosz6PdGhIa52YPlMo0yLlXG6ycGG5/iLqtG2lXfnJ8dYKORqwdg 6zGA== X-Forwarded-Encrypted: i=1; AJvYcCWJSGQ39BjthmNzuCwXanEy3/nei2QSNhz/IHrqHB5gKq/vU7J/xxsCvpS9PqcjONprG6VOJkZgNSNwVW+zFg==@vger.kernel.org X-Gm-Message-State: AOJu0Yx+cKuW1siumjfgl3gF3THm/DgLIJnd0FUCSIqeJXSo3umMOKvp MZj5uudIF1pd9i2z2NN47EphtxOMLTVCOOEpgAxeNg/dBQ58tnkW4sWi9p67EV2F4dQr1kwkZDb usdm9qPpiXqT22ArPfYvImzSqs4DA4ZoM4sxf1n3lV8Cwbv2ocSqVn9I= X-Google-Smtp-Source: AGHT+IFgVj5y7UcihmmcffRNSjAUAwJfopX6wPsav4ShCezh1Hg0VzDeEPFvjj/nI9gnNr1RM0lkZYrJahlIKMAz9BYGshq8ciZq Precedence: bulk X-Mailing-List: linux-bcachefs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1445:b0:3a3:b45b:a8cc with SMTP id e9e14a558f8ab-3a4ed2b5cb9mr42286565ab.15.1730037333549; Sun, 27 Oct 2024 06:55:33 -0700 (PDT) Date: Sun, 27 Oct 2024 06:55:33 -0700 In-Reply-To: <66f4164d.050a0220.211276.0032.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <671e4655.050a0220.2b8c0f.01d8.GAE@google.com> Subject: Re: [syzbot] [bcachefs] WARNING in srcu_check_nmi_safety (2) From: syzbot To: kent.overstreet@linux.dev, kvm@vger.kernel.org, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, pbonzini@redhat.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 850925a8133c Merge tag '9p-for-6.12-rc5' of https://github.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1311ea87980000 kernel config: https://syzkaller.appspot.com/x/.config?x=309bb816d40abc28 dashboard link: https://syzkaller.appspot.com/bug?extid=314c2cfd4071ad738810 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14bf3e5f980000 Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7feb34a89c2a/non_bootable_disk-850925a8.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/c831c931f29c/vmlinux-850925a8.xz kernel image: https://storage.googleapis.com/syzbot-assets/85f584e52a7f/bzImage-850925a8.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/9ebb84247bd1/mount_5.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+314c2cfd4071ad738810@syzkaller.appspotmail.com ------------[ cut here ]------------ CPU 0 old state 2 new state 1 WARNING: CPU: 0 PID: 5631 at kernel/rcu/srcutree.c:708 srcu_check_nmi_safety+0xca/0x150 kernel/rcu/srcutree.c:708 Modules linked in: CPU: 0 UID: 0 PID: 5631 Comm: syz.2.27 Not tainted 6.12.0-rc4-syzkaller-00261-g850925a8133c #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:srcu_check_nmi_safety+0xca/0x150 kernel/rcu/srcutree.c:708 Code: 81 c3 c8 01 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 75 77 8b 33 48 c7 c7 80 0d 0c 8c 89 ea 44 89 f9 e8 87 81 db ff 90 <0f> 0b 90 90 eb 0c 42 0f b6 04 23 84 c0 75 3d 45 89 3e 48 83 c4 08 RSP: 0000:ffffc9000d1c7648 EFLAGS: 00010246 RAX: 84aa6098780aa300 RBX: ffffe8ffffc537c8 RCX: ffff88803ecb8000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000002 R08: ffffffff8155e452 R09: 1ffff11003f8519a R10: dffffc0000000000 R11: ffffed1003f8519b R12: dffffc0000000000 R13: 0000607fe0053600 R14: ffffe8ffffc53620 R15: 0000000000000001 FS: 00007fe40acde6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe409f7e719 CR3: 000000001f99c000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: srcu_read_lock include/linux/srcu.h:248 [inline] __kvm_handle_hva_range virt/kvm/kvm_main.c:612 [inline] kvm_mmu_notifier_invalidate_range_end+0x90/0x3e0 virt/kvm/kvm_main.c:843 mn_hlist_invalidate_end mm/mmu_notifier.c:550 [inline] __mmu_notifier_invalidate_range_end+0x241/0x410 mm/mmu_notifier.c:569 mmu_notifier_invalidate_range_end include/linux/mmu_notifier.h:472 [inline] wp_page_copy mm/memory.c:3460 [inline] do_wp_page+0x265a/0x52d0 mm/memory.c:3745 handle_pte_fault+0x10e3/0x6800 mm/memory.c:5771 __handle_mm_fault mm/memory.c:5898 [inline] handle_mm_fault+0x1106/0x1bb0 mm/memory.c:6066 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x459/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7fe409e418e0 Code: 39 4f 08 72 4c 8d 4d ff 85 ed 74 33 66 0f 1f 44 00 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 47 0f b6 0c 08 45 84 c9 74 08 <45> 88 0c 00 49 8b 47 10 48 83 c0 01 49 89 47 10 83 e9 01 73 d3 41 RSP: 002b:00007fe40acdd4a0 EFLAGS: 00010202 RAX: 0000000000147010 RBX: 00007fe40acdd540 RCX: 0000000000000007 RDX: 00000000000007ff RSI: 0000000000001000 RDI: 00007fe40acdd5e0 RBP: 0000000000000008 R08: 00007fe400c00000 R09: 0000000000000015 R10: 0000000020005982 R11: 00000000000058ad R12: 0000000000000c01 R13: 00007fe40a005ae0 R14: 0000000000000017 R15: 00007fe40acdd5e0 --- If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing.