Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3776605rdb; Wed, 27 Dec 2023 22:17:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvYqdHCa/Jh80aN/XPL8ABFeU/jZau4n6O7bJa6w2CZYZGLR6JOw+h4arG3YDoxTKZ8/wJ X-Received: by 2002:aa7:da48:0:b0:553:48a3:e9f4 with SMTP id w8-20020aa7da48000000b0055348a3e9f4mr5616905eds.61.1703744234678; Wed, 27 Dec 2023 22:17:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703744234; cv=none; d=google.com; s=arc-20160816; b=dOvcE18fMsnIQsBM7uAJ2txEiz4QfznnjyxyscH3zj7YQ4b0J/UvjOFMwfJTez0uHW pfWxu1eZuNhbvUhsR8Kg637i7r8+uaYbMHPhNhEiPGWH1SjNix5D18e9vhAByinUsMdJ T1HpHlVpT8HNqAdDbnnHcw/wdf9x6S2LxUlPOF/eP0vur+fiH+XNLWkzS9MeyCx3eUZ8 Q8XXrNuLMehyuniI0IUi4e3egYdI3oYh4h3iOjmD5HE6QcUBF3Rtvjv+0vqIweKH2Nem bhIC3VfYTwxtJyxNnZx4Mf9J98SKMihNorqDc7neehSxyJWqYWPeTj+gIRYQsehPwCsp O05w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=uJ9S1qjx61BR4zpZJWeAdz9UeCCx8TGHT7rSZTaY1Yc=; fh=icoIpLanjOTbOQ30yBlFC2tI78+6fVgCnnmvrClWCrg=; b=jI1jPRacPNq/8krTJ51EoXdIee9mgKPzz20/u4a0uE2btfQ01ByUrF0fNCpqqXeqzL 7ZBbD57teCKkuBjtgFerZjjj4/drliC0n35Egs2ohk+5MRia6zjoSmNzre4a/snfgp9m C0rfLeJKs6SHzBxMBD1inxabP0G6F3MCogDzt33Rt4UlRyzB6qW+ip519WVfu10Rz1uc PVAZ6D1aADLXjJG5+73Rxl4k3NAmUMgwdYVKayGn19HQ5PCN6aGx73jzOjyWzuBCNoSb 4l3BVl+MwJS1nHBmmEr5rSRt+r7+kQnQdQ69s/Lf4oxfaSYPJCoHlvOV1/7QTIO/JEvv zIyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a22-20020a05640213d600b00554b6abf0eesi3873659edx.96.2023.12.27.22.17.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 22:17:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12447-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; spf=pass (google.com: domain of linux-kernel+bounces-12447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12447-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7003F1F224DA for ; Thu, 28 Dec 2023 06:17:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A3B082904; Thu, 28 Dec 2023 06:17:06 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) (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 D1D5D23A2 for ; Thu, 28 Dec 2023 06:17:04 +0000 (UTC) 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-f72.google.com with SMTP id ca18e2360f4ac-7b71b4b179aso378298139f.1 for ; Wed, 27 Dec 2023 22:17:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703744224; x=1704349024; 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=uJ9S1qjx61BR4zpZJWeAdz9UeCCx8TGHT7rSZTaY1Yc=; b=iuUthO5+lzBGgknDJsougzDCYC9AOVt/hl84rVY7ADZ+9XUhHtj8lyfElOGVpsc3NF A9rvWtWyCFMepphi6O9x3DJkPiEsSiEN6uGG8n7zj1wwvfTOonpZZ3feA9LF8BSROV9X RZnDF1wVml8EYFN5YS7d40bY1RgipWk1aJR3/WbehA/73mXNDm7JyPTFzSKl0xsI3SOc m7a+l3Sq76/qSJ4JksrbE2cQ61LlPk7Oy4VaokhafEBft6YKBfrO7PT0lc58fh+lwX/G Vlamhtu8OYBhooVssRXtA/QesZu6A7GP3IWZ2/lQZgE7wPXmnsUMcRCRJpSKMIC8TEWz mNug== X-Gm-Message-State: AOJu0Yylrdt0r025tpMmGXJC8v6n4lNU8XY/b+59yEkpyVa4BNaIdwpU snZWlradtizWZncnmrj4Hgf/mIrld9ul3LJ+7EePXNN6b5SJflc= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a02:90c4:0:b0:46d:5d7e:2c67 with SMTP id c4-20020a0290c4000000b0046d5d7e2c67mr225774jag.2.1703744223983; Wed, 27 Dec 2023 22:17:03 -0800 (PST) Date: Wed, 27 Dec 2023 22:17:03 -0800 In-Reply-To: <20231228055642.2202587-1-lizhi.xu@windriver.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000423f12060d8bdd3a@google.com> Subject: Re: [syzbot] [erofs?] KMSAN: uninit-value in z_erofs_lz4_decompress (2) From: syzbot To: linux-kernel@vger.kernel.org, lizhi.xu@windriver.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 z_erofs_lz4_decompress loop0: detected capacity change from 0 to 16 erofs: (device loop0): mounted with root inode @ nid 36. erofs: (device loop0): z_erofs_lz4_decompress_mem: failed to decompress -12 in[46, 4050] out[917] ===================================================== BUG: KMSAN: uninit-value in hex_dump_to_buffer+0xae9/0x10f0 lib/hexdump.c:194 hex_dump_to_buffer+0xae9/0x10f0 lib/hexdump.c:194 print_hex_dump+0x14f/0x3f0 lib/hexdump.c:276 z_erofs_lz4_decompress_mem fs/erofs/decompressor.c:252 [inline] z_erofs_lz4_decompress+0x257e/0x2a70 fs/erofs/decompressor.c:311 z_erofs_decompress_pcluster fs/erofs/zdata.c:1290 [inline] z_erofs_decompress_queue+0x338c/0x6460 fs/erofs/zdata.c:1372 z_erofs_runqueue+0x36cd/0x3830 z_erofs_read_folio+0x435/0x810 fs/erofs/zdata.c:1843 filemap_read_folio+0xce/0x370 mm/filemap.c:2323 do_read_cache_folio+0x3b4/0x11e0 mm/filemap.c:3691 read_cache_folio+0x60/0x80 mm/filemap.c:3723 erofs_bread+0x286/0x6f0 fs/erofs/data.c:46 erofs_find_target_block fs/erofs/namei.c:103 [inline] erofs_namei+0x2fe/0x1790 fs/erofs/namei.c:177 erofs_lookup+0x100/0x3c0 fs/erofs/namei.c:206 lookup_one_qstr_excl+0x233/0x520 fs/namei.c:1609 filename_create+0x2fc/0x6d0 fs/namei.c:3876 do_mkdirat+0x69/0x800 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0xc8/0x120 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Uninit was created at: __alloc_pages+0x9a4/0xe00 mm/page_alloc.c:4591 alloc_pages_mpol+0x62b/0x9d0 mm/mempolicy.c:2133 alloc_pages mm/mempolicy.c:2204 [inline] folio_alloc+0x1da/0x380 mm/mempolicy.c:2211 filemap_alloc_folio+0xa5/0x430 mm/filemap.c:974 do_read_cache_folio+0x163/0x11e0 mm/filemap.c:3655 read_cache_folio+0x60/0x80 mm/filemap.c:3723 erofs_bread+0x286/0x6f0 fs/erofs/data.c:46 erofs_find_target_block fs/erofs/namei.c:103 [inline] erofs_namei+0x2fe/0x1790 fs/erofs/namei.c:177 erofs_lookup+0x100/0x3c0 fs/erofs/namei.c:206 lookup_one_qstr_excl+0x233/0x520 fs/namei.c:1609 filename_create+0x2fc/0x6d0 fs/namei.c:3876 do_mkdirat+0x69/0x800 fs/namei.c:4121 __do_sys_mkdirat fs/namei.c:4144 [inline] __se_sys_mkdirat fs/namei.c:4142 [inline] __x64_sys_mkdirat+0xc8/0x120 fs/namei.c:4142 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b CPU: 1 PID: 5491 Comm: syz-executor.0 Not tainted 6.7.0-rc7-syzkaller-00003-gfbafc3e621c3-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ===================================================== Tested on: commit: fbafc3e6 Merge tag 'for_linus' of git://git.kernel.org.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git console output: https://syzkaller.appspot.com/x/log.txt?x=1101d8f6e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=e0c7078a6b901aa3 dashboard link: https://syzkaller.appspot.com/bug?extid=6c746eea496f34b3161d compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=118f5f9ee80000