From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f80.google.com (mail-io1-f80.google.com [209.85.166.80]) (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 CB02641A81 for ; Sun, 2 Jun 2024 16:12:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.80 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717344750; cv=none; b=XQXqfAYaOQba6NBa7hnyGC74wR0dE7ozlGLPLWzzuYVUZ6SfD+pMS0yWHVarVE2lX2PPoqBfSrSBsgWjpOn1wURAdSj+6SUcklf8F0Je/RQwaV/1k9Q7+gsHRHfwgrzDU2ER1kGr240IHMqXnlGziTS0xbCIuhVJEzfOlElYKxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717344750; c=relaxed/simple; bh=cr4+sYC7zS0bv15s4QqxxxMivQkk3+TAJgeKs+36yXw=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=T5bhvXEuaT2XsFzGqVljQG2Dk+RRpHfyuzmxH8HQGD3+vcN0ewXnkPBz+P6/1QYekvyA2S7tqQhfNMlohivkexD90lAubZwqLNynfROKbSpAs7u9pCes/XKi6cX1DsGhe86YSm/PQALhDJ8shIIc0oxy3AU5fXj7Vrlw/7+3QLQ= 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.80 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-io1-f80.google.com with SMTP id ca18e2360f4ac-7e8e7707356so433319439f.3 for ; Sun, 02 Jun 2024 09:12:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717344748; x=1717949548; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OIthNeqaR2cObPoQ3PmKTBeUyl99JAwJc3b1aUsN0EM=; b=tCOr/Y3V8HVa7b6KbwiewdigsXvsjbyXYs1ViHgkTdUPVwFlz/OvepxvWXx3C4baru 3hyvGUDtTmf1l6N7xSXAwD2rTxNJtdkCV9M7ww6bfLHw5/l9CExNkr2xjNOB1CS2+r+F aRVeoom9dBi/euAZvpgloIa/yj1/r+j79Dirm3/FiA95nHVNa+7aia1yi883oiIlRJ1a S6462JJ25oLOEiU5o3pod8UrW3h3Erp0OMiyzL66iwT0zl16v574+cBkY94/OSep3ZRa gDllrGHOgbCIf+jVcRWZcGWfGqOutO6fUB9+uFAzPael/KW+zlzwuF64FKsq92kT+rGe bcGw== X-Forwarded-Encrypted: i=1; AJvYcCW4swJlizXqkJwQi/2/1pOwokhe8BTyGwmaYIoD+rVfuKx7tOs2bmOLQe2LT3dbFXySnURViP/kOiPkocWcZ4Fg//LoXuJ5walmHIkB X-Gm-Message-State: AOJu0Yx5nKxsqy/WP4p/G+33/5zT9CpXpizT0940bykZKl7ei4T6Qi+x XUfSQxuCvhpt0XadIh2hsws4T1/tZiypakPo9OJwrEiWtixHivNZd/6dgtr211MQSPI01W1vSik sNwGXThBcFBDsJrXJk5778F6+EcoNDr7Sho+c0Hoq3G6wjcHylPZL0AI= X-Google-Smtp-Source: AGHT+IG1W7wEazQlDW7CylT5GrbqP1vJgfBieXOQ1h512Fe1y52aijY6Qt7qqOiKRJgfOx9OIkELLPJmjKlRuH1u3Q5bFD6yNGdb 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:20c4:b0:373:80a6:ba6c with SMTP id e9e14a558f8ab-3748b9d5b51mr5525695ab.3.1717344748065; Sun, 02 Jun 2024 09:12:28 -0700 (PDT) Date: Sun, 02 Jun 2024 09:12:28 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000aa690a0619ea7b3d@google.com> Subject: [syzbot] [bcachefs?] KMSAN: uninit-value in bch2_extent_crc_append 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: 614da38e2f7a Merge tag 'hid-for-linus-2024051401' of git:/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15fc62b4980000 kernel config: https://syzkaller.appspot.com/x/.config?x=f5d2cbf33633f507 dashboard link: https://syzkaller.appspot.com/bug?extid=c816b9d76d3c2f738309 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/89eafb874b71/disk-614da38e.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/356000512ad9/vmlinux-614da38e.xz kernel image: https://storage.googleapis.com/syzbot-assets/839c73939115/bzImage-614da38e.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+c816b9d76d3c2f738309@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in variable__ffs arch/x86/include/asm/bitops.h:251 [inline] BUG: KMSAN: uninit-value in extent_entry_type fs/bcachefs/extents.h:60 [inline] BUG: KMSAN: uninit-value in extent_entry_bytes fs/bcachefs/extents.h:69 [inline] BUG: KMSAN: uninit-value in extent_entry_u64s fs/bcachefs/extents.h:82 [inline] BUG: KMSAN: uninit-value in bch2_extent_crc_append+0x7cd/0x830 fs/bcachefs/extents.c:574 variable__ffs arch/x86/include/asm/bitops.h:251 [inline] extent_entry_type fs/bcachefs/extents.h:60 [inline] extent_entry_bytes fs/bcachefs/extents.h:69 [inline] extent_entry_u64s fs/bcachefs/extents.h:82 [inline] bch2_extent_crc_append+0x7cd/0x830 fs/bcachefs/extents.c:574 init_append_extent+0x466/0x1050 fs/bcachefs/io_write.c:701 bch2_write_extent fs/bcachefs/io_write.c:1045 [inline] __bch2_write+0x53a5/0x8530 fs/bcachefs/io_write.c:1451 bch2_write+0xe36/0x1c80 fs/bcachefs/io_write.c:1620 closure_queue include/linux/closure.h:257 [inline] closure_call include/linux/closure.h:390 [inline] bch2_dio_write_loop fs/bcachefs/fs-io-direct.c:531 [inline] bch2_direct_write+0x290e/0x5340 fs/bcachefs/fs-io-direct.c:652 bch2_write_iter+0x46d/0x5b30 fs/bcachefs/fs-io-buffered.c:1143 call_write_iter include/linux/fs.h:2120 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xb31/0x14d0 fs/read_write.c:590 ksys_pwrite64 fs/read_write.c:705 [inline] __do_sys_pwrite64 fs/read_write.c:715 [inline] __se_sys_pwrite64 fs/read_write.c:712 [inline] __x64_sys_pwrite64+0x2c5/0x3b0 fs/read_write.c:712 x64_sys_call+0xa4f/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: bch2_extent_crc_pack+0x686/0x6b0 fs/bcachefs/extents.c:530 bch2_extent_crc_append+0x645/0x830 fs/bcachefs/extents.c:572 init_append_extent+0x466/0x1050 fs/bcachefs/io_write.c:701 bch2_write_extent fs/bcachefs/io_write.c:1045 [inline] __bch2_write+0x53a5/0x8530 fs/bcachefs/io_write.c:1451 bch2_write+0xe36/0x1c80 fs/bcachefs/io_write.c:1620 closure_queue include/linux/closure.h:257 [inline] closure_call include/linux/closure.h:390 [inline] bch2_dio_write_loop fs/bcachefs/fs-io-direct.c:531 [inline] bch2_direct_write+0x290e/0x5340 fs/bcachefs/fs-io-direct.c:652 bch2_write_iter+0x46d/0x5b30 fs/bcachefs/fs-io-buffered.c:1143 call_write_iter include/linux/fs.h:2120 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xb31/0x14d0 fs/read_write.c:590 ksys_pwrite64 fs/read_write.c:705 [inline] __do_sys_pwrite64 fs/read_write.c:715 [inline] __se_sys_pwrite64 fs/read_write.c:712 [inline] __x64_sys_pwrite64+0x2c5/0x3b0 fs/read_write.c:712 x64_sys_call+0xa4f/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: __alloc_pages+0x9d6/0xe70 mm/page_alloc.c:4598 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] alloc_slab_page mm/slub.c:2190 [inline] allocate_slab mm/slub.c:2353 [inline] new_slab+0x2de/0x1400 mm/slub.c:2406 ___slab_alloc+0x121d/0x34a0 mm/slub.c:3592 __slab_alloc mm/slub.c:3682 [inline] __slab_alloc_node mm/slub.c:3735 [inline] slab_alloc_node mm/slub.c:3908 [inline] kmem_cache_alloc+0x6d6/0xc20 mm/slub.c:3925 mempool_alloc_slab+0x36/0x50 mm/mempool.c:565 mempool_alloc+0xfa/0x530 mm/mempool.c:408 bio_alloc_bioset+0xb7c/0x1c10 block/bio.c:554 bch2_direct_write+0xa50/0x5340 fs/bcachefs/fs-io-direct.c:624 bch2_write_iter+0x46d/0x5b30 fs/bcachefs/fs-io-buffered.c:1143 call_write_iter include/linux/fs.h:2120 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xb31/0x14d0 fs/read_write.c:590 ksys_pwrite64 fs/read_write.c:705 [inline] __do_sys_pwrite64 fs/read_write.c:715 [inline] __se_sys_pwrite64 fs/read_write.c:712 [inline] __x64_sys_pwrite64+0x2c5/0x3b0 fs/read_write.c:712 x64_sys_call+0xa4f/0x3b50 arch/x86/include/generated/asm/syscalls_64.h:19 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 PID: 5884 Comm: syz-executor.4 Tainted: G W 6.9.0-syzkaller-02707-g614da38e2f7a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ===================================================== --- 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