Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2468559rdb; Mon, 25 Dec 2023 12:28:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXTxKO3ZZaJno4ZltcdDh31bZ2Wrk1SWlyVHBgxd/kGlYGbXMGCk8cHnmB6eeWiIlcSUYj X-Received: by 2002:a17:906:15:b0:a23:5140:dd98 with SMTP id 21-20020a170906001500b00a235140dd98mr2371920eja.2.1703536116935; Mon, 25 Dec 2023 12:28:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703536116; cv=none; d=google.com; s=arc-20160816; b=f7HjAHoj33JWu3rrDiu/cjOMbq6CagRbTOJbkojO1zP0f9yz51ZZbSB85QRU/NLiYu 4vbcQ9Q5JKsMuRwh2Unl2uO5UiQmYcYq7ojv/iJ9ujxZLyE81n3WM5C8pHtkWAX3ZA0M 2Yn4lh5X8Fo4uJnBXx8uUhhQecLTisraQ1/cfH5UdWjMLObjVHAGQEdoqLIedj+XScRa DQNgR5oARABVXzPByYNBx72IRybxPC8M98nb0QNGBYWz3cAPKV0anPPUjSSNOkCpPoKt NOsyAY/X5MpebzkSTGymFzriZU02+96NwQ5xT/BbIi7wquaZR/Y1TviaPbt3tW+JVtul a+wQ== 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=5fRKrD7CHZyW03bk3aSpJq2vu0NdTFDfPVJs4+ApOJI=; fh=3oJvgf2luWzBnTYPw+vhSe/o6NnGJwEGYOvoLFuz5K0=; b=kZHyImxLLXfSE/msNqU1HVGxkfin9JOu8SfTZ8SoCFExkIed7X/W36HSqJY3PSsMk1 XG2nKweZoiZpOB15sK7Bl0hFlm2zYlUFGmeEk7/B9MaOgD1gBdh/D8Hwyd674EeziZCL ca7fIpVnwBDfXvIHaLVaJONEtbL4Xeo/GivWTYefudOL57orOJWGn1bG++RF62vWpZPp 3SB5pC7AwDMmkIiLR5vAAwzV88cX5sogLL1iUKr99KdAt3/PF3fLffsy1/v7HjAIxlRF MyBELHh3Ha3XzhuCa2q3yPbB3iDOMpXGc9B1Uflw6gEyE+4UVbZZ9Nx7tEbqTaLzii5Y LrsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-11166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11166-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 uz9-20020a170907118900b00a26aa2defa4si4432968ejb.244.2023.12.25.12.28.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 12:28:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11166-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-11166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11166-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 ADDA41F21E2E for ; Mon, 25 Dec 2023 20:28:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B9EA539E1; Mon, 25 Dec 2023 20:28:25 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 6B69253804 for ; Mon, 25 Dec 2023 20:28:23 +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-f69.google.com with SMTP id ca18e2360f4ac-7b7399e0707so564897239f.3 for ; Mon, 25 Dec 2023 12:28:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703536102; x=1704140902; 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=5fRKrD7CHZyW03bk3aSpJq2vu0NdTFDfPVJs4+ApOJI=; b=a7tFr3Uy04fTGbIr54ZqWtDC2gwn8njIZXseyaM610ez2abOfVsfuV8VdkjkIW9pVa 6RoCOgQ/AdZpkgEcUXdVpA+Z3hMz9GswzoG9X9DythgwnLkPb7MuOnxvsT37TEtZQuel 8tGmeiX5wNo3HuqP5/lNX2c2PSPn7dziRAFwYxdgm18rOArgMyDtmJPoS+FsPLCYFNN1 UTTTAnGWUZHXCc+eAB2EHCyABpm6KxwSsPCHg7LAh8QQNHdf3G6cvf//AK+UmrU+mF2A VR4csA9qJIo+RScj0VCLNBpZ4he4wUQmXqsbXshxtEoA/rNUjhtV74qMfTdeyiL42i46 Y2KQ== X-Gm-Message-State: AOJu0Yy94aEx4Xa7vVFkXDojU/17voZ2XjfD5Nt6Fbxo3wquC0UHfLeQ Ou/yGE/xrwVgju514yN8r+fEkOr+pXCWtyMo56vzGzodpbIT 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:1d0c:b0:35f:d4dc:1b1e with SMTP id i12-20020a056e021d0c00b0035fd4dc1b1emr1074185ila.5.1703536102687; Mon, 25 Dec 2023 12:28:22 -0800 (PST) Date: Mon, 25 Dec 2023 12:28:22 -0800 In-Reply-To: <0000000000002d868805ec92cbf0@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000434c71060d5b6808@google.com> Subject: Re: [syzbot] [reiserfs?] KASAN: slab-out-of-bounds Read in search_by_key (2) From: syzbot To: akpm@linux-foundation.org, axboe@kernel.dk, bvanassche@acm.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, reiserfs-devel@vger.kernel.org, song@kernel.org, syzkaller-bugs@googlegroups.com, yi.zhang@huawei.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 861deac3b092 Linux 6.7-rc7 git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=121f1609e80000 kernel config: https://syzkaller.appspot.com/x/.config?x=e0c7078a6b901aa3 dashboard link: https://syzkaller.appspot.com/bug?extid=b3b14fb9f8a14c5d0267 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=10557e81e80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14206fd6e80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/0ea60ee8ed32/disk-861deac3.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/6d69fdc33021/vmlinux-861deac3.xz kernel image: https://storage.googleapis.com/syzbot-assets/f0158750d452/bzImage-861deac3.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/445a7c3f980d/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+b3b14fb9f8a14c5d0267@syzkaller.appspotmail.com REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. ===================================================== 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+0x3293/0x6780 fs/reiserfs/stree.c:770 comp_keys fs/reiserfs/stree.c:83 [inline] bin_search fs/reiserfs/stree.c:173 [inline] search_by_key+0x3293/0x6780 fs/reiserfs/stree.c:770 reiserfs_delete_solid_item+0x4ec/0xe90 fs/reiserfs/stree.c:1419 remove_save_link+0x2ed/0x420 fs/reiserfs/super.c:540 reiserfs_truncate_file+0xd00/0x1b70 fs/reiserfs/inode.c:2314 reiserfs_setattr+0x1b79/0x1ee0 fs/reiserfs/inode.c:3388 notify_change+0x19fd/0x1af0 fs/attr.c:499 do_truncate+0x22a/0x2a0 fs/open.c:66 do_sys_ftruncate+0x81c/0xb30 fs/open.c:194 __do_sys_ftruncate fs/open.c:205 [inline] __se_sys_ftruncate fs/open.c:203 [inline] __x64_sys_ftruncate+0x71/0xa0 fs/open.c:203 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 Local variable cpu_key created at: reiserfs_delete_solid_item+0xbf/0xe90 fs/reiserfs/stree.c:1410 remove_save_link+0x2ed/0x420 fs/reiserfs/super.c:540 CPU: 0 PID: 5006 Comm: syz-executor429 Not tainted 6.7.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ===================================================== --- 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.