From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f200.google.com (mail-il1-f200.google.com [209.85.166.200]) (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 6DA2A323D for ; Sun, 10 Nov 2024 10:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731234545; cv=none; b=DVby7r0Am2g2cQnH8QDu+d9PhAPomRvE3rwtwp+MIHiH9RoEzbBFIjHGv26gkt/N2i2oDD5z1Y7bUz2vwrz32o/F5qay2WMFt1sev8pbAPUVar8LWtjQsw+zOwpt4QzLKGn2WqgIFuqhOfpRIr1oP0U27kcdCtNNb4+CV8lkCWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731234545; c=relaxed/simple; bh=ZDV9DrPd5Fn9DiOWrrPc8SVGF0rY28BuX14K/BhjTa8=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=nnyr6mH1Dh0P4KbtM8qOfDx7D0rdx4yPFaEgyw5EyZd+3JHxwQDiYlgI3fwmi2IM5IUcgyTWW+ePBD7Dtw+KeOG6zN1xsiQXsn/htP6o8PwB1ymBTvM4ndjqxOoW8QFZg2vWcolsS/ikmFBPvy2d9nbympiIumxzeIdto7kbbPA= 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.200 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-f200.google.com with SMTP id e9e14a558f8ab-3a6b37c6dd4so40772085ab.3 for ; Sun, 10 Nov 2024 02:29:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731234542; x=1731839342; 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=ohjvkhyrNBM8QruFwNM4KFzLSCzL37uESi2wXlUJ/JA=; b=q7Gbr7hABg/dOzUMBLdg4tHPUAZmpUqrDvWeEQxE++OV11sSSmTQXgLWx+pa9LP4hL Hsf+v22vGYht1AtxSS6YeuEfZTGRlw7g18APScdkao8iHVnY+g5SsDLwzeK6y4Q3OtvB x94W29f0+nnYzmGzuEFbosrrOnM7iUb8KBc8jTyfXwv5IAm2ZWnK2JyDlHIM3pwyZ0nV 4Jn61Q1OyKzH6wS4phCDffSioSAE0vbMD8HAkDrk6YOFZ0vQ+ur19S8h0JJIA6ptSpeB str1Xz3xcNdZLedUCdeMfXcNKEMo4lyKcb+L4d5MtjN74zNq/7tWbx9zcvzg1SFawMNE t3ow== X-Forwarded-Encrypted: i=1; AJvYcCUrLptBJ9e3JeTbg5RmDl718/AGlW3UZ1P1PyAlyq2QdYfkmTtznXXfvimZdZHpirEpEBpRixJwPbXgmA9Hjg==@vger.kernel.org X-Gm-Message-State: AOJu0Yx5/VRk00rXJn+P7mfVBVndoO2WuvfNCFFa3zKGiPwuwxfAf7O6 4cPUmPHXFlGuNXg9xwVwl2d5Mjy71Gz0JUQ5/Eu/wYR0jJmxFCt9qycCLs/9eUVRmZ3wUlojoXc 0DAch8UiJoIpb6MpbECWGsH07i3eU6BJqOJR52ur0Sj0T2Hkf+PQkwqU= X-Google-Smtp-Source: AGHT+IHxv1DOZUA8WE1UIRPvNKotW8J62xedsBUneqTASq+HdYXFl++iD3MAuslLwEQ+l/uDv3mcAMHfRbp3nEGnRxLleIEa02Ug 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:1a28:b0:3a6:b258:fcf with SMTP id e9e14a558f8ab-3a6f19a0126mr114185185ab.2.1731234542576; Sun, 10 Nov 2024 02:29:02 -0800 (PST) Date: Sun, 10 Nov 2024 02:29:02 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <67308aee.050a0220.138bd5.004d.GAE@google.com> Subject: Re: [syzbot] [bcachefs?] KMSAN: uninit-value in bch2_copygc From: syzbot To: kent.overstreet@linux.dev, linux-bcachefs@vger.kernel.org, linux-kernel@vger.kernel.org, surajsonawane0215@gmail.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: KMSAN: uninit-value in bch2_copygc ===================================================== BUG: KMSAN: uninit-value in rht_ptr_rcu include/linux/rhashtable.h:376 [inline] BUG: KMSAN: uninit-value in __rhashtable_lookup include/linux/rhashtable.h:607 [inline] BUG: KMSAN: uninit-value in rhashtable_lookup include/linux/rhashtable.h:646 [inline] BUG: KMSAN: uninit-value in rhashtable_lookup_fast include/linux/rhashtable.h:672 [inline] BUG: KMSAN: uninit-value in bucket_in_flight fs/bcachefs/movinggc.c:144 [inline] BUG: KMSAN: uninit-value in bch2_copygc_get_buckets fs/bcachefs/movinggc.c:184 [inline] BUG: KMSAN: uninit-value in bch2_copygc+0x20b9/0x5970 fs/bcachefs/movinggc.c:235 rht_ptr_rcu include/linux/rhashtable.h:376 [inline] __rhashtable_lookup include/linux/rhashtable.h:607 [inline] rhashtable_lookup include/linux/rhashtable.h:646 [inline] rhashtable_lookup_fast include/linux/rhashtable.h:672 [inline] bucket_in_flight fs/bcachefs/movinggc.c:144 [inline] bch2_copygc_get_buckets fs/bcachefs/movinggc.c:184 [inline] bch2_copygc+0x20b9/0x5970 fs/bcachefs/movinggc.c:235 bch2_copygc_thread+0x7f7/0xfa0 fs/bcachefs/movinggc.c:395 kthread+0x3e2/0x540 kernel/kthread.c:389 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Local variable b232.i created at: bch2_copygc_get_buckets fs/bcachefs/movinggc.c:184 [inline] bch2_copygc+0x1925/0x5970 fs/bcachefs/movinggc.c:235 bch2_copygc_thread+0x7f7/0xfa0 fs/bcachefs/movinggc.c:395 CPU: 0 UID: 0 PID: 6614 Comm: bch-copygc/loop Not tainted 6.12.0-rc6-syzkaller-00279-gde2f378f2b77-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 ===================================================== Kernel panic - not syncing: kmsan.panic set ... CPU: 0 UID: 0 PID: 6614 Comm: bch-copygc/loop Tainted: G B 6.12.0-rc6-syzkaller-00279-gde2f378f2b77-dirty #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x216/0x2d0 lib/dump_stack.c:120 dump_stack+0x1e/0x30 lib/dump_stack.c:129 panic+0x4e2/0xcf0 kernel/panic.c:354 kmsan_report+0x2c7/0x2d0 mm/kmsan/report.c:218 __msan_warning+0x95/0x120 mm/kmsan/instrumentation.c:318 rht_ptr_rcu include/linux/rhashtable.h:376 [inline] __rhashtable_lookup include/linux/rhashtable.h:607 [inline] rhashtable_lookup include/linux/rhashtable.h:646 [inline] rhashtable_lookup_fast include/linux/rhashtable.h:672 [inline] bucket_in_flight fs/bcachefs/movinggc.c:144 [inline] bch2_copygc_get_buckets fs/bcachefs/movinggc.c:184 [inline] bch2_copygc+0x20b9/0x5970 fs/bcachefs/movinggc.c:235 bch2_copygc_thread+0x7f7/0xfa0 fs/bcachefs/movinggc.c:395 kthread+0x3e2/0x540 kernel/kthread.c:389 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Kernel Offset: disabled Rebooting in 86400 seconds.. Tested on: commit: de2f378f Merge tag 'nfsd-6.12-4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16a994e8580000 kernel config: https://syzkaller.appspot.com/x/.config?x=e4580d62ee1893a5 dashboard link: https://syzkaller.appspot.com/bug?extid=8689d10f1894eedf774d compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=1715635f980000