Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4004124rdb; Thu, 28 Dec 2023 07:10:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWgMcsROq58uxnDQv6hEKjr+OiqMq/gf8LB638Xn2zXveHywdNQxYviSGRjYwdhOKDVvZ2 X-Received: by 2002:a05:6a20:a105:b0:18c:f734:64e5 with SMTP id q5-20020a056a20a10500b0018cf73464e5mr5353418pzk.44.1703776237063; Thu, 28 Dec 2023 07:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703776237; cv=none; d=google.com; s=arc-20160816; b=fOUp2oLPQ2avFN7eW4bsQaM40jRZM8tnXt06CFGkZvX5Hu7kmYrfurNLNnFawMs1En KDwBeQ8CR5lo4T2paK2ecZrs3XBH62u158cmO7D1aMRgaxosEHyXRfRdqbOEwZcQS455 4D+dm6XEMxMDuaSJ4mQ7EZaV0rw7bf8MxKgMJky9lHcbuRd3wuHuT38tadIbju4aXPzC kIxBsUUKRWQKTi0CLdyezMRfMhVcHPUBacpmGy3a/nC7KR4ZSbAev/ZTKbQHEj1xE0Se cDzJIHyBDx9+aFxKdJfi+LGqe4o4w3g//03umat6LnGp/68b+x5Py4ET7qnFVlD1wWct iSxA== 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=qIENxlQM/yHYfnHfvYfBgYoMXgPAxd2HBB1RQCpglng=; fh=ASkzh1hihoqljkDw3HfUYnTGfH8gTlTbXU5VCwnW0rg=; b=Pu5lOaOv5Pa0trhH7Lejol++ai5EsJHWBSltT4FBvRJv3cyu41li7w0Y7jH9J34WIa /vQas8CGbcjqjYk+2aaPRHX6TLhnrrFTLebccarqlwt24kSBNzjTIgRuHhggDsTEmJGy Rnn9xRQG7Qrkd5W1vkYt4orCi/ssaENanui1cbdmeGMJzFPQ10BeL9/zXGtbpI9D9znD gd8qPwLGEL2sVHJTj/XCSF3zflhzme2HV2j9MV2DaxgzYeR3VmWJBUMuL76JXaQ6v2Vj 6aKqdg77PbFH5vzYaqB0Lv5fv5rmggg96+6w6qkio/uG55lkisG/hoOIYEmNRASwLOCx gJTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p12-20020a056a0026cc00b006d99f8bf91asi9154230pfw.236.2023.12.28.07.10.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 07:10:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12737-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12737-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D3B3A285C13 for ; Thu, 28 Dec 2023 15:10:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 644B8E541; Thu, 28 Dec 2023 15:09:06 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) (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 7F60CDDCE for ; Thu, 28 Dec 2023 15:09: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-f70.google.com with SMTP id ca18e2360f4ac-7b7fdde8b58so856090639f.1 for ; Thu, 28 Dec 2023 07:09:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703776143; x=1704380943; 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=qIENxlQM/yHYfnHfvYfBgYoMXgPAxd2HBB1RQCpglng=; b=VQ0Z9d1Ke64wZM+WOiVAw+BwCiNTjZlmu3LfY15med6KtJ8jxRbQx/RtdoDSi0Coko imSLKTWyaDEokJOj+j6S3tOj964zDf+QMEkAnyoOLfVhizH/P5jwUnKiTT4TzXuIB7R9 1fkkmErMbe7YnF73VggmGsNPdVaegRcidwN3tX+1do3b3TyiwUcWTsjbE01/sQE5fCR+ ozO4F8agW5QeikzJUluOoc9hRcb3asAqaqy9cCiHaBzhMM8otkHqLxPW/D6pI/Bl26Ln O6KY3q5Xo2JAhAzqT/THZESbCUqbJagUTid0bduOikFYUKo2VlTp6EcQrLUtMlnM96Qc EBpw== X-Gm-Message-State: AOJu0Yz34ccpa/STXb0SmfWfGWVgFNSdkIJkDW0NlTpXyVw8j8QrRjIV 4yFXG2PTQXl27Bgwd8kBOOwiBOGQQCThveHUqEnLs8/t84o4 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:1568:b0:35f:d9cc:1c9b with SMTP id k8-20020a056e02156800b0035fd9cc1c9bmr1826816ilu.0.1703776143631; Thu, 28 Dec 2023 07:09:03 -0800 (PST) Date: Thu, 28 Dec 2023 07:09:03 -0800 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000d16fcb060d934be7@google.com> Subject: Re: [syzbot] [erofs?] KMSAN: uninit-value in z_erofs_lz4_decompress (2) From: syzbot To: eadavis@qq.com, linux-kernel@vger.kernel.org, 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+0x13d/0x3e0 lib/hexdump.c:276 z_erofs_lz4_decompress_mem fs/erofs/decompressor.c:252 [inline] z_erofs_lz4_decompress+0x28d0/0x2ae0 fs/erofs/decompressor.c:312 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: 5487 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=12bcb509e80000 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=16888cb5e80000