syzbot


general protection fault in truncate_inode_pages_final

Status: upstream: reported on 2024/10/01 13:28
Reported-by: syzbot+8914c061a16939411f14@syzkaller.appspotmail.com
First crash: 21d, last: 21d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in truncate_inode_pages_final ntfs3 1 756d 752d 0/28 auto-obsoleted due to no activity on 2023/01/25 10:14
linux-6.1 UBSAN: array-index-out-of-bounds in truncate_inode_pages_final origin:upstream missing-backport C inconclusive 12 73d 465d 0/3 upstream: reported C repro on 2023/07/15 18:53
upstream UBSAN: array-index-out-of-bounds in truncate_inode_pages_final ntfs3 C 12 74d 471d 0/28 upstream: reported C repro on 2023/07/09 12:32

Sample crash report:
loop2: detected capacity change from 0 to 4096
ntfs3: loop2: Different NTFS' sector size (2048) and media sector size (512)
general protection fault, probably for non-canonical address 0x3a283eb5d5d9598b: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4702 Comm: syz.2.326 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:trace_hardirqs_on+0x66/0x80 kernel/trace/trace_preemptirq.c:49
Code: ff eb 18 e8 0c 7f f9 ff eb 1c e8 05 7f f9 ff 48 8b 7c 24 08 31 f6 e8 29 00 00 00 65 c7 05 36 57 7c 7e 00 00 00 00 e8 e9 99 db <ff> 48 8b 7c 24 08 5b e9 fe 71 ad 08 66 2e 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc90003477928 EFLAGS: 00010046
RAX: 3a283eb5d5d95a00 RBX: 0000000000000000 RCX: ffffffff81631ae8
RDX: dffffc0000000000 RSI: ffffffff8a8b3da0 RDI: ffffffff8ad904c0
RBP: ffffc90003477ab0 R08: dffffc0000000000 R09: fffffbfff20e2440
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880615e4dd8
R13: dffffc0000000000 R14: ffff8880615e4e38 R15: ffff8880615e4c10
FS:  00007fa2d81f56c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcd00bcb6c0 CR3: 0000000065e85000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline]
 _raw_spin_unlock_irq+0x1f/0x40 kernel/locking/spinlock.c:202
 spin_unlock_irq include/linux/spinlock.h:413 [inline]
 truncate_inode_pages_final+0x67/0x90 mm/truncate.c:457
 ntfs_evict_inode+0x18/0xb0 fs/ntfs3/inode.c:1781
 evict+0x529/0x930 fs/inode.c:622
 ntfs_fill_super+0x3b43/0x4340 fs/ntfs3/super.c:1185
 get_tree_bdev+0x3fe/0x620 fs/super.c:1323
 vfs_get_tree+0x88/0x270 fs/super.c:1528
 do_new_mount+0x2ba/0xb40 fs/namespace.c:3005
 do_mount fs/namespace.c:3348 [inline]
 __do_sys_mount fs/namespace.c:3556 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3533
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fa2d9d7e79a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa2d81f4e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fa2d81f4ef0 RCX: 00007fa2d9d7e79a
RDX: 00000000200000c0 RSI: 0000000020000b00 RDI: 00007fa2d81f4eb0
RBP: 00000000200000c0 R08: 00007fa2d81f4ef0 R09: 0000000000000010
R10: 0000000000000010 R11: 0000000000000246 R12: 0000000020000b00
R13: 00007fa2d81f4eb0 R14: 000000000001f3bc R15: 0000000020000280
 </TASK>
Modules linked in:
---[ end trace dc35ea345bcc503d ]---
RIP: 0010:trace_hardirqs_on+0x66/0x80 kernel/trace/trace_preemptirq.c:49
Code: ff eb 18 e8 0c 7f f9 ff eb 1c e8 05 7f f9 ff 48 8b 7c 24 08 31 f6 e8 29 00 00 00 65 c7 05 36 57 7c 7e 00 00 00 00 e8 e9 99 db <ff> 48 8b 7c 24 08 5b e9 fe 71 ad 08 66 2e 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc90003477928 EFLAGS: 00010046
RAX: 3a283eb5d5d95a00 RBX: 0000000000000000 RCX: ffffffff81631ae8
RDX: dffffc0000000000 RSI: ffffffff8a8b3da0 RDI: ffffffff8ad904c0
RBP: ffffc90003477ab0 R08: dffffc0000000000 R09: fffffbfff20e2440
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880615e4dd8
R13: dffffc0000000000 R14: ffff8880615e4e38 R15: ffff8880615e4c10
FS:  00007fa2d81f56c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcd00bcb6c0 CR3: 0000000065e85000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/01 13:28 linux-5.15.y 3a5928702e71 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in truncate_inode_pages_final
* Struck through repros no longer work on HEAD.