Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp347056lqe; Sat, 6 Apr 2024 04:00:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1Chw0jddUfb9YjTlDGg7SYftGRIcXVgKjyS5DRshpfexJkOCZPhRBakzJxJYd1L/vrXbvA5XrDn1vxV3X6QFJfiS+8h21Vwj/NUfJTA== X-Google-Smtp-Source: AGHT+IHSTrmEImaivWNvXhI6hdAbkSGiwSgcR35PKdTUlrIpPbB3n7KlCR+Fh5f0JyJpwUjluSEE X-Received: by 2002:a05:6a20:438e:b0:1a1:878d:d3f6 with SMTP id i14-20020a056a20438e00b001a1878dd3f6mr4989705pzl.26.1712401238607; Sat, 06 Apr 2024 04:00:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712401238; cv=pass; d=google.com; s=arc-20160816; b=VGn6vLBFIfp4sI+HDcY14YHaM5iY2WhSP4kbQDKMc6Ikc4A7zvu8tL7OJxAb7BoVlH F9vKg7sd/hCvR6E5SCfEZhbqQwY1zhQOlt0aYAsbpiYMSvZKvQxjo+QoEXeTcm7G1N6y zO0HnuMgotd9OOWrxSFLBdCx/UxFacoFaMWRAsJflebpEpssF+BLEVQf14jVA4+0MhG3 tOIqtUkVfBVYtWrehtQVfAdUD9IpfaBjAb4CTAKah8NO5ulN788v26fpDrBt6UYdSpej 9p42ar0pD20nIMa2HoI8pfNDN9pvbPP5GTKIi3/cQgqa2JHt5xMOM/KrdNcnr+1YVHbe t94A== ARC-Message-Signature: i=2; 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=DcRd1UmCP+fAW8HucEpzYBsLAzTIBczIJoAjaMr1iEA=; fh=gFyHjT+ldQKu+12PFe8v0NAOiTsUJC6acGiZepX58Vc=; b=do6yAD3SDUNO923mRPKR9eW0pO5kHt+c13oddReJVLrvu6BM/B2/ZrqCwv57rieqt7 UqQAPsPBxS4vBKXuwg6IZwHcOkAnCS7kGMY/i/FvHxqIpzgsMlpfRi/B2WjXksEUsTby /Vkm+gqfVf9jZPjLLMJewoq9fFn2d2n2hSYYl8wrPBGANeNQiF11dJx2xWPJ0Woh02KL rT1wvt1BBv0Xl5CFudu6vJUl0ilKdoOZ6zsZwxlL4IdYi4te9n8uaOfyosQdUnYGauKy H3A8TMTSNjFZtNbTOmpPmA2q5o3YE13KGQT5NfdFtDG4ZL2HzF+CL0J5aqTklRGI4uy5 scVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-133894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133894-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 k15-20020a63ab4f000000b005f401ca2a72si825723pgp.242.2024.04.06.04.00.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 04:00:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133894-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; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-133894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133894-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 B086F2824ED for ; Sat, 6 Apr 2024 11:00:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A541D2C1AC; Sat, 6 Apr 2024 11:00:26 +0000 (UTC) Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (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 90A2628DD0 for ; Sat, 6 Apr 2024 11:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712401226; cv=none; b=GAgfsOuXhLO/m4pC/7/mOwOWtiPNm4YPX3PGVCMHHjfYxTDRygJtjMy76wahkVDihRVXDIPu0IQhUKmLEDCnxNiFex9UErhd59AWl5/s21d+0NXLkeBvV9BymiqCn6xEkXgpe1EkKsu2NsEvME9eQ/zdinNXf88vaecmqVr27fg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712401226; c=relaxed/simple; bh=DKwWOfQnJsZ4Gs+P1eLSemMFo4nUei3Z0dxRU3R6tgI=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=AObK/1a96ceBzgbSDl8m2+SEoWh7lO52jMIfFn3q5/KVoW6nFIWAwjjHxV0TqBBz3QXPTo4GNqtOGiE4y0x2w7+9gEykKFHM8skAIyfhO1PqSC8sNhPyRN7IW3+TavezR69VstCTKP7AMzdKRTy5EsOkyskZY/ZeVL9dlMr6y34= 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.69 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-f69.google.com with SMTP id ca18e2360f4ac-7cf265cb019so264188339f.3 for ; Sat, 06 Apr 2024 04:00:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712401224; x=1713006024; 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=DcRd1UmCP+fAW8HucEpzYBsLAzTIBczIJoAjaMr1iEA=; b=NGJ1KkXNaOgyULib3bQvCB8bmgYrcUzq5oPRihUQdndpoVqSE1ih4ofkxn94lCGGML vmcQPnv+kWzHuL7Y9CwmHcUWhtu7NvD/SM1UfgBEofU1IJxG/im8KBJtFI25XFF6fzJf aPjrkpKB9f5lLxc7Zj6jFTPQRiNEahL6ihkVjwIxfzEqnlWDMhRV+xpYzBbLSVHQHeXY j3kf9igRq3SeyxgdZ8NGmiS1zAWx3X/pjk5QDwl23RdkRlwTR/j1UEiHH3nKI1JrgiBt vym+GOO10locS5xiQYLdZ7TKbxEJkMR5t87Jd63JV//OTrVbkLSDP3lnuCJVk5udnfhP iUDw== X-Forwarded-Encrypted: i=1; AJvYcCX3S9rYWwTjmnwwcGUpyiehNZm/5PmtOKLED74xP3MH2pRZgpyLe44sSU6XESsomrimkqm7BoZP/XFygiS2jbCvUgtloNpLt1t3bc2A X-Gm-Message-State: AOJu0YyZONZo0mlJKS2fQP1JkOzZ9Zxb/vWEyxlWAB7O2oc+JVGKuTem QQeEcFPbyhI3xEDo/GpUfrnMTVxd6VybiQF19P8t2UZiOqDp7vhL4u+T37WpJTXKCvoynjtC462 O9TverZep70gE7dhdiy1Zz1QOVxZEMfiFGbVpF5rHqV6NJ1oUJp2vA8M= 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:6638:2654:b0:47f:3994:c919 with SMTP id n20-20020a056638265400b0047f3994c919mr236894jat.6.1712401223834; Sat, 06 Apr 2024 04:00:23 -0700 (PDT) Date: Sat, 06 Apr 2024 04:00:23 -0700 In-Reply-To: <0000000000000d480b060df43de5@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a8f1d606156b7ad9@google.com> Subject: Re: [syzbot] [nilfs?] KMSAN: uninit-value in nilfs_add_checksums_on_logs (2) From: syzbot To: konishi.ryusuke@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nilfs@vger.kernel.org, syzkaller-bugs@googlegroups.com, xrivendell7@gmail.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: e8b0ccb2a787 Merge tag '9p-for-6.9-rc3' of https://github... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=115eb623180000 kernel config: https://syzkaller.appspot.com/x/.config?x=5112b3f484393436 dashboard link: https://syzkaller.appspot.com/bug?extid=47a017c46edb25eff048 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=156679a1180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10f27ef6180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/cf4b0d1e3b2d/disk-e8b0ccb2.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/422cac6cc940/vmlinux-e8b0ccb2.xz kernel image: https://storage.googleapis.com/syzbot-assets/9a4df48e199b/bzImage-e8b0ccb2.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/69e1e69e7522/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+47a017c46edb25eff048@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in crc32_body lib/crc32.c:110 [inline] BUG: KMSAN: uninit-value in crc32_le_generic lib/crc32.c:179 [inline] BUG: KMSAN: uninit-value in crc32_le_base+0x43c/0xd80 lib/crc32.c:197 crc32_body lib/crc32.c:110 [inline] crc32_le_generic lib/crc32.c:179 [inline] crc32_le_base+0x43c/0xd80 lib/crc32.c:197 nilfs_segbuf_fill_in_data_crc fs/nilfs2/segbuf.c:224 [inline] nilfs_add_checksums_on_logs+0xb80/0xe40 fs/nilfs2/segbuf.c:327 nilfs_segctor_do_construct+0x9876/0xdeb0 fs/nilfs2/segment.c:2078 nilfs_segctor_construct+0x1eb/0xe30 fs/nilfs2/segment.c:2381 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2489 [inline] nilfs_segctor_thread+0xc50/0x11e0 fs/nilfs2/segment.c:2573 kthread+0x3e2/0x540 kernel/kthread.c:388 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 Uninit was stored to memory at: memcpy_from_iter lib/iov_iter.c:73 [inline] iterate_bvec include/linux/iov_iter.h:122 [inline] iterate_and_advance2 include/linux/iov_iter.h:249 [inline] iterate_and_advance include/linux/iov_iter.h:271 [inline] __copy_from_iter lib/iov_iter.c:249 [inline] copy_page_from_iter_atomic+0x12b7/0x2b60 lib/iov_iter.c:481 generic_perform_write+0x4c1/0xc60 mm/filemap.c:3982 __generic_file_write_iter+0x20a/0x460 mm/filemap.c:4069 generic_file_write_iter+0x103/0x5b0 mm/filemap.c:4095 __kernel_write_iter+0x68b/0xc40 fs/read_write.c:523 dump_emit_page fs/coredump.c:890 [inline] dump_user_range+0x8dc/0xee0 fs/coredump.c:951 elf_core_dump+0x520f/0x59c0 fs/binfmt_elf.c:2077 do_coredump+0x32d5/0x4920 fs/coredump.c:764 get_signal+0x267e/0x2d00 kernel/signal.c:2896 arch_do_signal_or_restart+0x53/0xcb0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x5d/0x160 kernel/entry/common.c:218 do_syscall_64+0xe4/0x1f0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x72/0x7a Uninit was created at: __alloc_pages+0x9d6/0xe70 mm/page_alloc.c:4598 alloc_pages_mpol+0x299/0x990 mm/mempolicy.c:2264 alloc_pages+0x1bf/0x1e0 mm/mempolicy.c:2335 dump_user_range+0x4a/0xee0 fs/coredump.c:935 elf_core_dump+0x520f/0x59c0 fs/binfmt_elf.c:2077 do_coredump+0x32d5/0x4920 fs/coredump.c:764 get_signal+0x267e/0x2d00 kernel/signal.c:2896 arch_do_signal_or_restart+0x53/0xcb0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x5d/0x160 kernel/entry/common.c:218 do_syscall_64+0xe4/0x1f0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x72/0x7a CPU: 0 PID: 5014 Comm: segctord Not tainted 6.9.0-rc2-syzkaller-00207-ge8b0ccb2a787 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ===================================================== --- 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.