Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3012750pxk; Mon, 21 Sep 2020 03:03:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxycrpAnN5GEt/6UWvH6w1ierGYl/X0oZZu4p8m5MJTXgYIsnhg3PfWmW8vkHYqpz1KIJ7Y X-Received: by 2002:a05:6402:17ed:: with SMTP id t13mr52635521edy.163.1600682624057; Mon, 21 Sep 2020 03:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600682624; cv=none; d=google.com; s=arc-20160816; b=BMWlVmPLrWQ7oZClVxbzJ8gPLBauzwcwWX4CwpCCPEdHD3+R0I06YvetA20/nj2Vpl EIcWY0SSbb1iCoX90t1B1KJvXKIi0KznyNwQsS75RPNStX7qea+LQkF8KuSHjuL2lAQ3 ug9ZQ91j8cF5UuDF+rnrEyLSgD8mU1YRyoXw5bXTkdQMpdkooB6ADMT+IQuhvpJmZ8Qk KgJMrXxskQWG0FJ2R3pxAn/dIuBaN1a61eqra0pUrNHekltIGeqTHR3DnhL9gqeDtMnt 7h1i1kKGXYiLerWwcbXPBDe1bhfmFJPQO4jpWpXcx27NIG8eYcp2WhLByxTUQ+Jv3IfA 3kxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=HNQqNrhUW+qeQAXFC1bvUFTX7xLT95EGtWYHouxpbXI=; b=Cw7PIig60z1Fmdn/Agrxc+9VPWa5fijSsUcw0Yrs9q94m44EHc3H34UeAkAbyVwjMV 2IP5+80E+n4licP0l4XFdECaCbD27UrKC0NPGA99GBDJGuESiLWH3VAD7rFIhpOAYAy3 UVhjgLvJK6H/h5QTarhqbLXoSZEXA6A48JNB/cuKpSp1jyWGVCGHGu0295mJsQe+6ML0 iEdfHSZg6PF9LuwXGJExUSZAEWc3VxHdZ9xQVKjSwLwlkXRMq+Qfamj8zB5hK1aWV19m ixEqzwG+MdND/ZpHCpmDDAk0XOaq9PMThQB7J7MWwe6XLgCojl2OH47hEe0iyDSmgcUU dBKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c12si7787884edy.146.2020.09.21.03.03.20; Mon, 21 Sep 2020 03:03:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726540AbgIUKCY (ORCPT + 99 others); Mon, 21 Sep 2020 06:02:24 -0400 Received: from mail-il1-f208.google.com ([209.85.166.208]:57318 "EHLO mail-il1-f208.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbgIUKCX (ORCPT ); Mon, 21 Sep 2020 06:02:23 -0400 Received: by mail-il1-f208.google.com with SMTP id d16so10487757ila.23 for ; Mon, 21 Sep 2020 03:02:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=HNQqNrhUW+qeQAXFC1bvUFTX7xLT95EGtWYHouxpbXI=; b=WYaF38fkhZG7LoXL0QgeF3sBlldFw59XGeSfQIOKmlKYUzj2LzbsfXIqTB1cHf/CAW AsdfPRz0JDCBDI/LaE/Kl/THo8rug+EccF/omAw9t8cSai1EA/KTnaYjg7ecOMkSlo27 mEm0OVUxeML0s8GYMJ6YxePeYEyK3ji1gzB9VyTabuVcxGzzItIF35Pqj98wttutRmT7 JhdNGhD4tDMY7Rj/O1oQH2lze76M9PZCOYfZDSTvV/B28Y0v48Mr094dRkW3g5ZUxcny ehX/hYyJ1CxZeU1cS+I794fZyW75o5UM5kx2v71ijraWgl8UCKST1HpedC7LyBtifYTU vAxw== X-Gm-Message-State: AOAM530VHoIQOcWCApJioSMYzC+/X5S3SEMgiZ29e6zSVrNKWfeq/zet hmk5+hiZvHZ0ebazRXG8AVU1yj4xvvdUyzRDP6U0rZbbed6E MIME-Version: 1.0 X-Received: by 2002:a6b:8f8e:: with SMTP id r136mr36510961iod.63.1600682542394; Mon, 21 Sep 2020 03:02:22 -0700 (PDT) Date: Mon, 21 Sep 2020 03:02:22 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000056737105afcff247@google.com> Subject: KMSAN: uninit-value in search_by_key From: syzbot To: akpm@linux-foundation.org, alex.shi@linux.alibaba.com, glider@google.com, jack@suse.cz, linux-kernel@vger.kernel.org, reiserfs-devel@vger.kernel.org, syzkaller-bugs@googlegroups.com, yeyunfeng@huawei.com, zhengbin13@huawei.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: c5a13b33 kmsan: clang-format core git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=173525ab900000 kernel config: https://syzkaller.appspot.com/x/.config?x=20f149ad694ba4be dashboard link: https://syzkaller.appspot.com/bug?extid=d94d02749498bb7bab4b compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) userspace arch: i386 Unfortunately, I don't have any reproducer for this issue yet. IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+d94d02749498bb7bab4b@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in comp_keys fs/reiserfs/stree.c:83 [inline] BUG: KMSAN: uninit-value in bin_search fs/reiserfs/stree.c:173 [inline] BUG: KMSAN: uninit-value in search_by_key+0x2c57/0x60e0 fs/reiserfs/stree.c:743 CPU: 1 PID: 28395 Comm: syz-executor.4 Not tainted 5.9.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x21c/0x280 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:122 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:219 comp_keys fs/reiserfs/stree.c:83 [inline] bin_search fs/reiserfs/stree.c:173 [inline] search_by_key+0x2c57/0x60e0 fs/reiserfs/stree.c:743 reiserfs_read_locked_inode+0x1fc/0x3260 fs/reiserfs/inode.c:1561 reiserfs_fill_super+0x2c00/0x6170 fs/reiserfs/super.c:2081 mount_bdev+0x622/0x910 fs/super.c:1417 get_super_block+0xc9/0xe0 fs/reiserfs/super.c:2606 legacy_get_tree+0x163/0x2e0 fs/fs_context.c:592 vfs_get_tree+0xd8/0x5d0 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x3d1a/0x5d40 fs/namespace.c:3192 do_mount+0x1c6/0x220 fs/namespace.c:3205 __do_compat_sys_mount fs/compat.c:122 [inline] __se_compat_sys_mount+0x7b5/0xaa0 fs/compat.c:89 __ia32_compat_sys_mount+0x62/0x80 fs/compat.c:89 do_syscall_32_irqs_on arch/x86/entry/common.c:80 [inline] __do_fast_syscall_32+0x129/0x180 arch/x86/entry/common.c:139 do_fast_syscall_32+0x6a/0xc0 arch/x86/entry/common.c:162 do_SYSENTER_32+0x73/0x90 arch/x86/entry/common.c:205 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7fea549 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f55e3f20 EFLAGS: 00000292 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00000000f55e3f7c RCX: 0000000020000100 RDX: 0000000020000000 RSI: 0000000000000000 RDI: 00000000f55e3fbc RBP: 00000000f55e3f7c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Local variable ----key@reiserfs_read_locked_inode created at: reiserfs_read_locked_inode+0xb4/0x3260 fs/reiserfs/inode.c:1544 reiserfs_read_locked_inode+0xb4/0x3260 fs/reiserfs/inode.c:1544 ===================================================== --- 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.