syzbot
kernel BUG in ntfs_iget
Status:
upstream: reported C repro on 2023/05/15 07:12
Bug presence:
origin:lts-only
Labels:
missing-backport
[Documentation on labels]
Reported-by: syzbot+2a0cbbd463aec4712bb9@syzkaller.appspotmail.com
First crash: 1178d, last: 27d
Fix commit to backport
(bisect log) :
tree: upstream
commit 7ffa8f3d30236e0ab897c30bdb01224ff1fe1c89
Author: Matthew Wilcox (Oracle) <willy@infradead.org>
Date: Mon Jan 15 07:20:25 2024 +0000
fs: Remove NTFS classic
▶
▼
Last patch testing requests (10)
▶
▼
Fix bisection attempts (5)
Sample crash report:
WARNING: The mand mount option has been deprecated and
and is ignored by this kernel. Remove the mand
option from the mount to silence this warning.
=======================================================
ntfs: (device loop0): is_boot_sector_ntfs(): Invalid boot sector checksum.
ntfs: (device loop0): is_boot_sector_ntfs(): Invalid end of sector marker.
------------[ cut here ]------------
kernel BUG at fs/ntfs/malloc.h:31!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4308 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:__ntfs_malloc fs/ntfs/malloc.h:31 [inline]
RIP: 0010:ntfs_malloc_nofs+0xfd/0x100 fs/ntfs/malloc.h:52
Code: 17 e8 a7 64 e6 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 55 3b 20 ff e8 90 64 e6 fe 31 c0 5b 41 5e 41 5f c3 e8 83 64 e6 fe <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 48 89 fb 49 bc 00 00 00 00
RSP: 0018:ffffc9000330f888 EFLAGS: 00010293
RAX: ffffffff8292bdbd RBX: 0000000000000000 RCX: ffff8880228c5940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88805ccc0050 R08: ffff88805ccc0057 R09: 1ffff1100b99800a
R10: dffffc0000000000 R11: ffffed100b99800b R12: 1ffff1100f3da6a2
R13: ffff888079ed3508 R14: dffffc0000000000 R15: ffff888079ed3538
FS: 000055558f7d5500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3e61f8f9c0 CR3: 000000007d2f4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ntfs_read_locked_inode+0x2145/0x4de0 fs/ntfs/inode.c:703
ntfs_iget+0x108/0x1a0 fs/ntfs/inode.c:177
load_and_init_mft_mirror fs/ntfs/super.c:1027 [inline]
load_system_files+0xd8/0x55a0 fs/ntfs/super.c:1772
ntfs_fill_super+0x19e0/0x2c90 fs/ntfs/super.c:2894
mount_bdev+0x287/0x3c0 fs/super.c:1400
legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
vfs_get_tree+0x88/0x270 fs/super.c:1530
do_new_mount+0x24a/0xa40 fs/namespace.c:3034
do_mount fs/namespace.c:3377 [inline]
__do_sys_mount fs/namespace.c:3585 [inline]
__se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f716f8a5a0a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe4e9e13b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe4e9e1440 RCX: 00007f716f8a5a0a
RDX: 0000200000000040 RSI: 000020000001ecc0 RDI: 00007ffe4e9e1400
RBP: 0000200000000040 R08: 00007ffe4e9e1440 R09: 0000000000000050
R10: 0000000000000050 R11: 0000000000000246 R12: 000020000001ecc0
R13: 00007ffe4e9e1400 R14: 000000000000113a R15: 0000200000000180
</TASK>
Modules linked in:
---[ end trace ae96f53dca2e1210 ]---
RIP: 0010:__ntfs_malloc fs/ntfs/malloc.h:31 [inline]
RIP: 0010:ntfs_malloc_nofs+0xfd/0x100 fs/ntfs/malloc.h:52
Code: 17 e8 a7 64 e6 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 55 3b 20 ff e8 90 64 e6 fe 31 c0 5b 41 5e 41 5f c3 e8 83 64 e6 fe <0f> 0b 90 55 41 57 41 56 41 55 41 54 53 48 89 fb 49 bc 00 00 00 00
RSP: 0018:ffffc9000330f888 EFLAGS: 00010293
RAX: ffffffff8292bdbd RBX: 0000000000000000 RCX: ffff8880228c5940
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88805ccc0050 R08: ffff88805ccc0057 R09: 1ffff1100b99800a
R10: dffffc0000000000 R11: ffffed100b99800b R12: 1ffff1100f3da6a2
R13: ffff888079ed3508 R14: dffffc0000000000 R15: ffff888079ed3538
FS: 000055558f7d5500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3e61f8f9c0 CR3: 000000007d2f4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.