syzbot


WARNING in indx_insert_into_buffer (2)

Status: upstream: reported C repro on 2024/05/09 18:20
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+67f60a88fd6facb063c5@syzkaller.appspotmail.com
First crash: 160d, last: 7d02h
Cause bisection: introduced by (bisect log) :
commit 63e92a0c5a0d5816803907a3e30a91ef72c903a5
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Tue Feb 14 09:57:09 2023 +0000

  fs/ntfs3: Undo critial modificatins to keep directory consistency

Crash: WARNING in indx_insert_into_buffer (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] WARNING in indx_insert_into_buffer (2) 0 (1) 2024/05/09 18:20
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in indx_insert_into_buffer ntfs3 C 2 314d 324d 0/28 auto-obsoleted due to no activity on 2024/03/12 18:43
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/08/03 12:50 20m retest repro upstream report log
2024/05/25 07:33 15m retest repro upstream report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/10/05 16:26 3h34m bisect fix upstream OK (0) job log log
2024/09/02 15:54 2h26m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ 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:
 <TASK>
 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
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/06 03:02 upstream b9158815de52 610f2a54 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci-upstream-kasan-gce-selinux-root WARNING in indx_insert_into_buffer
2024/07/13 20:32 upstream 528dd46d0fc3 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in indx_insert_into_buffer
2024/05/05 18:18 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in indx_insert_into_buffer
2024/05/05 18:18 upstream 7367539ad4b0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in indx_insert_into_buffer
2024/05/10 22:38 upstream f4345f05c0df 9026e142 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in indx_insert_into_buffer
* Struck through repros no longer work on HEAD.