syzbot


UBSAN: shift-out-of-bounds in ntfs_read_inode_mount

Status: upstream: reported C repro on 2023/06/11 05:24
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+829c889049ba1049584c@syzkaller.appspotmail.com
First crash: 307d, last: 20d
Bug presence (2)
Date Name Commit Repro Result
2023/10/09 upstream (ToT) 94f6f0550c62 C [report] UBSAN: shift-out-of-bounds in ntfs_read_inode_mount
2024/04/07 upstream (ToT) f2f80ac80987 C Failed due to an error; will retry later
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: shift-out-of-bounds in ntfs_read_inode_mount ntfs3 C error done 6 95d 406d 0/26 upstream: reported C repro on 2023/03/03 17:36
linux-5.15 UBSAN: shift-out-of-bounds in ntfs_read_inode_mount origin:upstream C 1 8d16h 272d 0/3 upstream: reported C repro on 2023/07/15 21:00
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/03/23 21:15 2h04m bisect fix linux-6.1.y job log (0) log
2024/02/22 19:03 1h57m bisect fix linux-6.1.y job log (0) log
2024/01/13 07:29 1h30m bisect fix linux-6.1.y job log (0) log
2023/12/13 08:11 1h41m bisect fix linux-6.1.y job log (0) log
2023/11/12 20:03 1h31m bisect fix linux-6.1.y job log (0) log
2023/10/09 07:19 1h06m bisect fix linux-6.1.y job log (0) log
2023/07/22 02:50 4h06m bisect fix linux-6.1.y job log (0) log

Sample crash report:
loop0: detected capacity change from 0 to 4096
ntfs: (device loop0): parse_options(): Option utf8 is no longer supported, using option nls=utf8. Please use option nls=utf8 in the future and make sure utf8 is compiled either as a module or into the kernel.
================================================================================
UBSAN: shift-out-of-bounds in fs/ntfs/inode.c:1080:43
shift exponent 267 is too large for 32-bit type 'unsigned int'
CPU: 1 PID: 3510 Comm: syz-executor421 Not tainted 6.1.46-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_shift_out_of_bounds+0x3bf/0x420 lib/ubsan.c:321
 ntfs_read_locked_inode+0x4665/0x49c0 fs/ntfs/inode.c:1080
 ntfs_read_inode_mount+0xda2/0x2660 fs/ntfs/inode.c:2098
 ntfs_fill_super+0x1880/0x2bd0 fs/ntfs/super.c:2855
 mount_bdev+0x2c9/0x3f0 fs/super.c:1432
 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1562
 do_new_mount+0x28b/0xae0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6d79ac6d3a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ffee5a15578 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffee5a15590 RCX: 00007f6d79ac6d3a
RDX: 0000000020000000 RSI: 000000002001ee80 RDI: 00007ffee5a15590
RBP: 0000000000000004 R08: 00007ffee5a155d0 R09: 000000000001ee6c
R10: 0000000000800804 R11: 0000000000000286 R12: 0000000000800804
R13: 00007ffee5a155d0 R14: 0000000000000003 R15: 0000000000200000
 </TASK>
================================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/20 07:07 linux-6.1.y 6c44e13dc284 d216d8a0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan UBSAN: shift-out-of-bounds in ntfs_read_inode_mount
2023/06/11 05:23 linux-6.1.y 2f3918bc53fb 49519f06 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 UBSAN: shift-out-of-bounds in ntfs_read_inode_mount
* Struck through repros no longer work on HEAD.