Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1838153rdb; Sun, 4 Feb 2024 03:44:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFRLTwyCTYPvhDZqaJ90q+ssetcvesRnD3Gkuw9FPnKlQdfLFi47dzqKrZt2l/wa+Dpp00o X-Received: by 2002:ac2:4148:0:b0:511:48aa:b925 with SMTP id c8-20020ac24148000000b0051148aab925mr1698471lfi.9.1707047097471; Sun, 04 Feb 2024 03:44:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707047097; cv=pass; d=google.com; s=arc-20160816; b=klRajgqcqiV69AJbTUbcR4bce4FLZ025FQdKKOlndHdocg/gZTJ8mdacldsfCsFonv lK94Jxw2gIeVifpMutpuYLNO5mTYoPRrnTw7V0YjRzY63WJBI/OJNqC4Irb7LpWAoTKm GDQjrdlJ+RIi5Hhu2DKYkjqDaog8vOyBgPYYejPk9ahFU1Xgv/LqpN0V9IbrHe2LDIOD 19b/TXItRQ7L1zik548eATfkhvfZc0EXYR0/NI2FZG0+AKnbLxqI7/y+lf1HL4NYHC3U yRiJpwdIiGt8OPmc38gxWGyBibxuwZeKGzKtnPxqb75tng4H9xSu7FFiu5MFg2Uxtdq9 Vv0A== 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=6MyD/vd8jdcu5CLhoPmsunjC+RxH9aURP3x2XieB+UE=; fh=GoLsZnIn5akDKRt3rhGnXK8Ej+a0NXW8fYhMe+ya3wg=; b=Ojq+iWRAs5kPJYw0LIrXepo4yFxrkUVfNhIFeg+cFP49kLSyskG7N22XV7yBdJK+B8 i+hayGKJplCR60KAmNeDojFXdDAVkraum0XclXzSlMoKQ/Q1B3xvmaep9aG/OzxylI/o apanUCyMgADl1kIoV5bOxKkhYDksbpgVUrSAQAS3/OgXDlAD7BaDNPhAsRSsvHCNGeyl HNfPPCRFKIUiZdVdlUnq4vkm5SzBe69hln8yscDzg6AIbRB8jE8SWuQknQYpBusOiA8x f7GqqIYWYRyzkYG4RgANRcUDVXYfq50TO8jTrIP27hmirUv92ijd7CdJyVkf9vCHrWEe dtnw==; 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-51610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com X-Forwarded-Encrypted: i=1; AJvYcCXzoTZghWJ8EPS/8f4KDgyC+dNF9UiTk2aMny3lGa2LqKjE1ho04nqB11PVq58444AhAyuqDTTGAbiUMb951dZj6L0HgEHVQc25oawpWw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dk6-20020a170906f0c600b00a37258b4d7dsi2297063ejb.202.2024.02.04.03.44.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 03:44:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51610-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; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-51610-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51610-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 0BC761F21EE8 for ; Sun, 4 Feb 2024 11:44:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D33CB224D2; Sun, 4 Feb 2024 11:44:33 +0000 (UTC) Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) (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 BDECD2209A for ; Sun, 4 Feb 2024 11:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707047073; cv=none; b=pSJh22onpbliMRl6qrkNbkeG7YvKjpf9AC7rU778Qv8onQVF9ODCTnaJblxuQuQxTOfl+6wrXJuu9BziQuDwnuRjDH2VLT7YPyVTbhKtYYKPG0XjKGnywki1ev5kcLCZ+VaniMRQ/TPMM0NafsgrCbz/XrSCjzXrs8DTv8g0vao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707047073; c=relaxed/simple; bh=W+PrOG+3qjgKVWlr8gdUcu/HyylkSKA8m2x73hOH6a4=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=a9OfVV6SFqjI1Mai+xZcoOcKS9U3IGqOslcczyVDeDnhqZf1iRfwAEsd8iONb1GcPOAtvF3bgWwNZimD1W4ewC0vFB+3ZAuInp39nuc/TuEmCk/31yVTV9m+D8r0w4MQ4ID3QGpLoIjU0DNJvsdkcZZlAUeXEModrDob/yU/TF4= 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.198 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-il1-f198.google.com with SMTP id e9e14a558f8ab-363be67c17aso3480405ab.0 for ; Sun, 04 Feb 2024 03:44:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707047071; x=1707651871; 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=6MyD/vd8jdcu5CLhoPmsunjC+RxH9aURP3x2XieB+UE=; b=JuV4WVfiK17QHDFBByShLrNKr4h8e5tUjBX/2wuuJODJnH0DdBySKN6/qbTwduaEaC oxsUj+2AdZf3JkduP9QDeMNyoY1x8ET+iPyEzog3Kv8yabntsnH8uAn8f0kfFS74DmwU HS2NHi44bUsOeAGWCDqrEXY5CRn+tlYJaVLmNLz1rGqkVYJ4gea168m+nO534xXyyifY cVrA8hE04CQQFWTmmGBgcC4inQ6mUrQXbxx49Fa9OUcDzbxqwkg2hC9YHIUMz23x8Apt H27P8y7gaDQsbO3z1VBLu9L2hpVwlAVT5Pyw6kTAbjyUZb712fOpw4fAE74anYzwZ1H9 OMlA== X-Gm-Message-State: AOJu0YyaUTyeF16gEnccq7Ft3ODctXdn5VPlioSJzCpUAXVozu1s6fUe dZK7GIXzb50xg27EhIiCqAobsnYUjS/x0ctIM3tCbZzDMK7ObnemEyohvYFCVyW52zS1iy48uRE HhR3sKXzCnxOE4vXQDhTm/Y9rkDdIKPsBEGrvWGGQjvYiCFZWAXtQr48= 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:210f:b0:471:2b64:d967 with SMTP id n15-20020a056638210f00b004712b64d967mr26201jaj.2.1707047070350; Sun, 04 Feb 2024 03:44:30 -0800 (PST) Date: Sun, 04 Feb 2024 03:44:30 -0800 In-Reply-To: <000000000000b6ffa9060ee52c74@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000003e469906108cde8d@google.com> Subject: Re: [syzbot] [btrfs?] KMSAN: uninit-value in bcmp (2) From: syzbot To: amir73il@gmail.com, clm@fb.com, dsterba@suse.com, jack@suse.cz, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, repnop@google.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 9f8413c4a66f Merge tag 'cgroup-for-6.8' of git://git.kerne.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=10fcfdc0180000 kernel config: https://syzkaller.appspot.com/x/.config?x=656820e61b758b15 dashboard link: https://syzkaller.appspot.com/bug?extid=3ce5dea5b1539ff36769 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=139dd53fe80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12685aa8180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/79d9f2f4b065/disk-9f8413c4.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/cbc68430d9c6/vmlinux-9f8413c4.xz kernel image: https://storage.googleapis.com/syzbot-assets/9740ad9fc172/bzImage-9f8413c4.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/25f4008bd752/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+3ce5dea5b1539ff36769@syzkaller.appspotmail.com ===================================================== BUG: KMSAN: uninit-value in memcmp lib/string.c:692 [inline] BUG: KMSAN: uninit-value in bcmp+0x186/0x1c0 lib/string.c:713 memcmp lib/string.c:692 [inline] bcmp+0x186/0x1c0 lib/string.c:713 fanotify_fh_equal fs/notify/fanotify/fanotify.c:51 [inline] fanotify_fid_event_equal fs/notify/fanotify/fanotify.c:72 [inline] fanotify_should_merge fs/notify/fanotify/fanotify.c:168 [inline] fanotify_merge+0x15f5/0x27e0 fs/notify/fanotify/fanotify.c:209 fsnotify_insert_event+0x1d0/0x600 fs/notify/notification.c:113 fanotify_handle_event+0x47f7/0x6140 fs/notify/fanotify/fanotify.c:966 send_to_group fs/notify/fsnotify.c:360 [inline] fsnotify+0x2510/0x3530 fs/notify/fsnotify.c:570 fsnotify_parent include/linux/fsnotify.h:80 [inline] fsnotify_file include/linux/fsnotify.h:100 [inline] fsnotify_close include/linux/fsnotify.h:362 [inline] __fput+0x578/0x10c0 fs/file_table.c:368 __fput_sync+0x74/0x90 fs/file_table.c:467 __do_sys_close fs/open.c:1554 [inline] __se_sys_close+0x28a/0x4c0 fs/open.c:1539 __x64_sys_close+0x48/0x60 fs/open.c:1539 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x6d/0x140 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Uninit was created at: slab_post_alloc_hook+0x129/0xa70 mm/slab.h:768 slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x579/0xa90 mm/slub.c:3502 fanotify_alloc_fid_event fs/notify/fanotify/fanotify.c:584 [inline] fanotify_alloc_event fs/notify/fanotify/fanotify.c:817 [inline] fanotify_handle_event+0x2ff6/0x6140 fs/notify/fanotify/fanotify.c:952 send_to_group fs/notify/fsnotify.c:360 [inline] fsnotify+0x2510/0x3530 fs/notify/fsnotify.c:570 fsnotify_parent include/linux/fsnotify.h:80 [inline] fsnotify_file include/linux/fsnotify.h:100 [inline] fsnotify_close include/linux/fsnotify.h:362 [inline] __fput+0x578/0x10c0 fs/file_table.c:368 __fput_sync+0x74/0x90 fs/file_table.c:467 __do_sys_close fs/open.c:1554 [inline] __se_sys_close+0x28a/0x4c0 fs/open.c:1539 __x64_sys_close+0x48/0x60 fs/open.c:1539 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x6d/0x140 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b CPU: 0 PID: 5010 Comm: syz-executor120 Not tainted 6.7.0-syzkaller-00562-g9f8413c4a66f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/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.