From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f78.google.com (mail-io1-f78.google.com [209.85.166.78]) (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 458A57EEFD for ; Thu, 9 May 2024 18:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715278833; cv=none; b=ouw1a2JAQ1SQ34v4cfp9iZPXFMxA4BAZ+KXObKrN/L25ydyiO9F5ua6hv6L5MxFleONkNLUMRXuiXwWPBD5yCUlEP30Mr0Z9kSMqtWH1E8/znTkvxBF5l12VBmpjbATdNigSeTVY2MqBwJdGhrspvi9+duB8o6lcLSesNaAySUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715278833; c=relaxed/simple; bh=A/E0A/P32TGhxzHZi+5Gm0N8XE0PiUO4vgwJsfWz51s=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=tz/x7cVBSRTmc9p/EOOMeZ5C6nsEbt6omdNJBoFPt3jUa00XB8ROstSHJrJ5qeK+YOeCMKQRhOxMqiQFFyyvB3wJEsEtyiI2rBVyaHafo7HLp41FJJhrK9Adzy/EeOMobBAEVd4Lg+SZJzaWttAQKkHjojUbg0RBBWesfhKLYAU= 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.78 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-f78.google.com with SMTP id ca18e2360f4ac-7dd8cd201d6so117188939f.0 for ; Thu, 09 May 2024 11:20:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715278831; x=1715883631; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=T1RH5NVOJ+gNod5M6x8WPGgAaUoOxvUyj5zzhvkcIvU=; b=TDRnXScXZYgaWGZrGOxs2xQatCY0So8IbViNbOpYO5/e4Af6iVTo3kgqiQ+6Axgc1V 8bB5QDUNEc/LYlKTw2iRXzp1eIn+CgotWBPxDE4AVDMnxNaeudMxu5dPnRy5IbSQNMnF SUSYBTurmvHRjp2CLQNwdOb9z/ZZ25O1M/Pp8GtKi+GIMabxGYpYtK0MrjJHRM7IxXf8 eaOcqoQxY24JW48/hvY2a5J/nCX8sFGkJ1rPHgmYL45Hs2+4rtOVZXqXCH7Thnni0U7g dFvP/8Pz5Zi0Iv/eMcuf+Si+vO4IVX9mBeHQ+yBblMK1Iq0uM9LixnpoTrYjlCsm7Dws sepA== X-Forwarded-Encrypted: i=1; AJvYcCXvydj707M0gFqvILHvZp64xxSphDA9fgVxElZFXirdS9orW4cdZajdjqAVknu68z5HEYHRj+SQTz+BsFkcWs7IvegoKCg= X-Gm-Message-State: AOJu0YwlWpL6rLdgy/26Q4vfiZVTlXPcdoMytk6wvOgR9vhMJnzCHBjj eyQDz+qi6+HCrpzKoAdTaUX9WdfeXmv9hstuu6uhcfyt64C7+Xq1JYkqikzT3N+LbN/wf4AYlZb LArrbMDprBvjbS8KmX4JnMhllsQ8DoDV0BT+EdwwedU7BmlRwZzpVIjU= X-Google-Smtp-Source: AGHT+IFbd2uWtX7GAvoAVSd1xCJ/tlrYyHTVLjM85FEUU5xUsKaYlzv89TmJ8tLw5WXIb4pYwsPYWD+dRIUlFj7yOKVOH9Dv0sTI Precedence: bulk X-Mailing-List: ntfs3@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6638:8506:b0:488:f465:f4cd with SMTP id 8926c6da1cb9f-4895856fa08mr14460173.1.1715278831552; Thu, 09 May 2024 11:20:31 -0700 (PDT) Date: Thu, 09 May 2024 11:20:31 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000721c2f06180979fc@google.com> Subject: [syzbot] [ntfs3?] WARNING in indx_insert_into_buffer (2) From: syzbot To: almaz.alexandrovich@paragon-software.com, linux-kernel@vger.kernel.org, ntfs3@lists.linux.dev, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: b9158815de52 Merge tag 'char-misc-6.9-rc7' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=157f69df180000 kernel config: https://syzkaller.appspot.com/x/.config?x=3310e643b6ef5d69 dashboard link: https://syzkaller.appspot.com/bug?extid=67f60a88fd6facb063c5 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11cce8a7180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14e90b54980000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/df94a89cedc6/disk-b9158815.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/2ba4fcae1454/vmlinux-b9158815.xz kernel image: https://storage.googleapis.com/syzbot-assets/f238a9413b64/bzImage-b9158815.xz mounted in repro #1: https://storage.googleapis.com/syzbot-assets/2be1818fa274/mount_0.gz mounted in repro #2: https://storage.googleapis.com/syzbot-assets/210e60e68a3d/mount_3.gz The issue was bisected to: commit 63e92a0c5a0d5816803907a3e30a91ef72c903a5 Author: Konstantin Komarov Date: Tue Feb 14 09:57:09 2023 +0000 fs/ntfs3: Undo critial modificatins to keep directory consistency bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11b99824980000 final oops: https://syzkaller.appspot.com/x/report.txt?x=13b99824980000 console output: https://syzkaller.appspot.com/x/log.txt?x=15b99824980000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+67f60a88fd6facb063c5@syzkaller.appspotmail.com Fixes: 63e92a0c5a0d ("fs/ntfs3: Undo critial modificatins to keep directory consistency") ------------[ cut here ]------------ memcpy: detected field-spanning write (size 3656) of single field "hdr1" at fs/ntfs3/index.c:1912 (size 16) WARNING: CPU: 1 PID: 6119 at fs/ntfs3/index.c:1912 indx_insert_into_buffer.isra.0+0x103a/0x12a0 fs/ntfs3/index.c:1912 Modules linked in: CPU: 1 PID: 6119 Comm: syz-executor897 Not tainted 6.9.0-rc6-syzkaller-00290-gb9158815de52 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:indx_insert_into_buffer.isra.0+0x103a/0x12a0 fs/ntfs3/index.c:1912 Code: 4c 7e b9 fe c6 05 f0 b0 b4 0c 01 90 48 8b 74 24 68 b9 10 00 00 00 48 c7 c2 60 81 43 8b 48 c7 c7 c0 81 43 8b e8 d7 e8 7b fe 90 <0f> 0b 90 90 e9 e1 fd ff ff e8 08 ca 14 ff e9 56 f4 ff ff e8 fe c9 RSP: 0018:ffffc90009f876c0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 00000000ffffffe4 RCX: ffffffff81503279 RDX: ffff888023540000 RSI: ffffffff81503286 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88807248c471 R13: ffff88802caecc00 R14: ffff88807b610800 R15: ffff888025a46018 FS: 00007fc54202e6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc539c1b000 CR3: 0000000023d38000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: indx_insert_entry+0x1a5/0x460 fs/ntfs3/index.c:1981 ni_add_name+0x4db/0x820 fs/ntfs3/frecord.c:3055 ni_rename+0xa1/0x1a0 fs/ntfs3/frecord.c:3087 ntfs_rename+0x96f/0xf20 fs/ntfs3/namei.c:334 vfs_rename+0xf84/0x20a0 fs/namei.c:4880 do_renameat2+0xc54/0xdc0 fs/namei.c:5037 __do_sys_rename fs/namei.c:5084 [inline] __se_sys_rename fs/namei.c:5082 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:5082 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc542099289 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc54202e218 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fc54215f6d8 RCX: 00007fc542099289 RDX: 0000000000000000 RSI: 0000000020000f00 RDI: 0000000020000400 RBP: 00007fc54215f6d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc54212c0ac R13: 00007fc5420ed06b R14: 00007fc54212bfa8 R15: 0030656c69662f2e --- 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. For information about bisection process see: https://goo.gl/tpsmEJ#bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title 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. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup