syzbot


kernel BUG in ntfs_truncate

Status: fixed on 2024/01/31 13:17
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+22e381af27f7921a2642@syzkaller.appspotmail.com
Fix commit: 6f861765464f fs: Block writes to mounted block devices
First crash: 419d, last: 57d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 6f861765464f43a71462d52026fbddfc858239a5
Author: Jan Kara <jack@suse.cz>
Date: Wed Nov 1 17:43:10 2023 +0000

  fs: Block writes to mounted block devices

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs?] kernel BUG in ntfs_truncate 1 (3) 2024/01/29 09:50
Last patch testing requests (9)
Created Duration User Patch Repo Result
2024/01/23 05:38 16m retest repro upstream OK log
2023/12/26 14:21 14m retest repro upstream report log
2023/12/12 12:34 35m retest repro upstream report log
2023/11/28 06:28 16m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/11/14 04:42 13m retest repro upstream report log
2023/10/17 12:39 14m retest repro upstream report log
2023/10/03 11:26 13m retest repro upstream report log
2023/09/19 04:24 17m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2023/09/05 04:03 9m retest repro upstream report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/01/27 12:13 3h58m bisect fix upstream job log (1)
2023/07/28 04:27 1h34m bisect fix upstream job log (0) log
2023/06/03 03:05 48m bisect fix upstream job log (0) log
2023/05/04 00:08 57m bisect fix upstream job log (0) log
2023/04/03 21:11 49m bisect fix upstream job log (0) log
2023/03/04 18:47 1h11m bisect fix upstream job log (0) log
2023/02/02 17:33 49m bisect fix upstream job log (0) log

Sample crash report:
ntfs: volume version 3.1.
------------[ cut here ]------------
kernel BUG at fs/ntfs/inode.c:2536!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5012 Comm: syz-executor227 Not tainted 6.5.0-rc7-syzkaller-00004-gf7757129e3de #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:ntfs_truncate+0x1078/0x2ae0 fs/ntfs/inode.c:2536
Code: 0b e8 ec 5e d1 fe 0f 0b c7 85 58 ff ff ff 00 00 00 00 c7 45 80 ff ff ff ff e9 68 f5 ff ff e8 cf 5e d1 fe 0f 0b e8 c8 5e d1 fe <0f> 0b 48 c7 45 90 00 00 00 00 48 c7 45 c0 00 00 00 00 eb 93 48 89
RSP: 0018:ffffc900033bfbb8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071f14720 RCX: 0000000000000000
RDX: ffff88807a4d8180 RSI: ffffffff82b3c1f8 RDI: 0000000000000005
RBP: ffffc900033bfc90 R08: 0000000000000005 R09: 00000000ffffffff
R10: 00000000ffffffff R11: 0000000000000003 R12: dffffc0000000000
R13: ffff88807c390160 R14: 00000000ffffffff R15: 0000000000000000
FS:  0000555556eb8380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa62f4c9008 CR3: 00000000177b2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ntfs_truncate_vfs fs/ntfs/inode.c:2862 [inline]
 ntfs_setattr+0x39a/0x560 fs/ntfs/inode.c:2914
 notify_change+0x670/0x1160 fs/attr.c:483
 do_truncate+0x15c/0x220 fs/open.c:66
 vfs_truncate+0x3eb/0x4d0 fs/open.c:112
 do_sys_truncate+0x153/0x190 fs/open.c:135
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa62f4305f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe784b7c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 00007fffe784b9a8 RCX: 00007fa62f4305f9
RDX: 00007fa62f42f8f0 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 00007fa62f4c2610 R08: 000000000001f1cf R09: 0000000000000000
R10: 00007fffe784b690 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffe784b998 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ntfs_truncate+0x1078/0x2ae0 fs/ntfs/inode.c:2536
Code: 0b e8 ec 5e d1 fe 0f 0b c7 85 58 ff ff ff 00 00 00 00 c7 45 80 ff ff ff ff e9 68 f5 ff ff e8 cf 5e d1 fe 0f 0b e8 c8 5e d1 fe <0f> 0b 48 c7 45 90 00 00 00 00 48 c7 45 c0 00 00 00 00 eb 93 48 89
RSP: 0018:ffffc900033bfbb8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071f14720 RCX: 0000000000000000
RDX: ffff88807a4d8180 RSI: ffffffff82b3c1f8 RDI: 0000000000000005
RBP: ffffc900033bfc90 R08: 0000000000000005 R09: 00000000ffffffff
R10: 00000000ffffffff R11: 0000000000000003 R12: dffffc0000000000
R13: ffff88807c390160 R14: 00000000ffffffff R15: 0000000000000000
FS:  0000555556eb8380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055dfe3297e20 CR3: 00000000177b2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/22 03:35 upstream f7757129e3de 6b415825 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root kernel BUG in ntfs_truncate
2023/06/23 00:08 upstream dad9774deaf1 09ffe269 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in ntfs_truncate
2022/12/29 12:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 44712fbc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in ntfs_truncate
2022/12/31 11:59 upstream bff687b3dad6 ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in ntfs_truncate
* Struck through repros no longer work on HEAD.