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: 1273d, last: 19h34m
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:
loop0: detected capacity change from 0 to 4096
------------[ cut here ]------------
kernel BUG at fs/ntfs/malloc.h:31!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4477 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/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 67 db e5 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 05 e0 1f ff e8 50 db e5 fe 31 c0 5b 41 5e 41 5f c3 e8 43 db e5 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:ffffc9000310f8c0 EFLAGS: 00010293
RAX: ffffffff8293524d RBX: 0000000000000000 RCX: ffff888073b70000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffff88805bd40897 R09: 1ffff1100b7a8112
R10: dffffc0000000000 R11: ffffed100b7a8113 R12: ffff88805b0f5947
R13: 1ffff1100b61eb23 R14: ffff8880234ae800 R15: dffffc0000000000
FS: 000055556dd3e500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa925c33000 CR3: 0000000023b2f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ntfs_read_locked_inode+0x20d5/0x4d30 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+0xe5/0x54b0 fs/ntfs/super.c:1772
ntfs_fill_super+0x19c9/0x2c90 fs/ntfs/super.c:2894
mount_bdev+0x28a/0x3c0 fs/super.c:1411
legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
vfs_get_tree+0x88/0x270 fs/super.c:1541
do_new_mount+0x247/0xa50 fs/namespace.c:3060
do_mount fs/namespace.c:3431 [inline]
__do_sys_mount fs/namespace.c:3639 [inline]
__se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3616
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:0x7f7b62b56d8a
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:00007fffd2dccaa8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffd2dccb30 RCX: 00007f7b62b56d8a
RDX: 0000200000000000 RSI: 0000200000000040 RDI: 00007fffd2dccaf0
RBP: 0000200000000000 R08: 00007fffd2dccb30 R09: 0000000000800804
R10: 0000000000800804 R11: 0000000000000246 R12: 0000200000000040
R13: 00007fffd2dccaf0 R14: 000000000001ee6e R15: 0000200000000080
</TASK>
Modules linked in:
---[ end trace c6444e5b0c5ce7de ]---
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 67 db e5 fe 48 89 df be 42 0c 00 00 5b 41 5e 41 5f e9 05 e0 1f ff e8 50 db e5 fe 31 c0 5b 41 5e 41 5f c3 e8 43 db e5 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:ffffc9000310f8c0 EFLAGS: 00010293
RAX: ffffffff8293524d RBX: 0000000000000000 RCX: ffff888073b70000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffff88805bd40897 R09: 1ffff1100b7a8112
R10: dffffc0000000000 R11: ffffed100b7a8113 R12: ffff88805b0f5947
R13: 1ffff1100b61eb23 R14: ffff8880234ae800 R15: dffffc0000000000
FS: 000055556dd3e500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bac1878950 CR3: 0000000023b2f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.