syzbot


kernel BUG in zero_user_segments

Status: upstream: reported C repro on 2024/08/16 06:44
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+78eeb671facb19832e95@syzkaller.appspotmail.com
First crash: 61d, last: 5m
Cause bisection: the cause commit could be any of (bisect log):
  02d8a3227f49 hostfs: Convert hostfs_write_end() to use a folio
  a060d835cf76 fuse: Convert fuse_write_begin() to use a folio
  c8dbe54a2e0b jffs2: Convert jffs2_write_end() to use a folio
  0ee818cc42fc jffs2: Convert jffs2_write_begin() to use a folio
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] kernel BUG in zero_user_segments 0 (1) 2024/08/16 06:44
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/09/14 10:30 15m retest repro linux-next report log

Sample crash report:
ntfs3(loop0): Failed to load $Extend (-22).
ntfs3(loop0): Failed to initialize $Extend.
------------[ cut here ]------------
kernel BUG at include/linux/highmem.h:275!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 5219 Comm: syz-executor214 Not tainted 6.12.0-rc2-syzkaller-00260-g9e4c6c1ad9a1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:zero_user_segments+0x28b/0x290 include/linux/highmem.h:275
Code: fe 01 e9 47 fe ff ff e8 e3 68 a7 fe 89 ea be 00 10 00 00 48 c7 c7 70 3d cf 8e e8 40 92 fe 01 e9 d3 fe ff ff e8 c6 68 a7 fe 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3
RSP: 0018:ffffc9000374f9a0 EFLAGS: 00010293
RAX: ffffffff82ed7e3a RBX: ffffea00004c5780 RCX: ffff88802d723c00
RDX: 0000000000000000 RSI: 000000000000100a RDI: 0000000000001000
RBP: 0000000000001000 R08: ffffffff82ed7c75 R09: 1ffffd4000098af0
R10: dffffc0000000000 R11: fffff94000098af1 R12: 000000000000100a
R13: 0000000000000000 R14: 1ffffd4000098af0 R15: 000000000000100a
FS:  0000555562dd5380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc2b5b8000 CR3: 000000002bfc2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 folio_zero_range include/linux/highmem.h:647 [inline]
 ntfs_extend_initialized_size+0x50b/0x950 fs/ntfs3/file.c:225
 ntfs_extend+0x578/0xad0 fs/ntfs3/file.c:413
 ntfs_file_write_iter+0x403/0x7a0 fs/ntfs3/file.c:1254
 new_sync_write fs/read_write.c:590 [inline]
 vfs_write+0xa6d/0xc90 fs/read_write.c:683
 ksys_pwrite64 fs/read_write.c:798 [inline]
 __do_sys_pwrite64 fs/read_write.c:808 [inline]
 __se_sys_pwrite64 fs/read_write.c:805 [inline]
 __x64_sys_pwrite64+0x1aa/0x230 fs/read_write.c:805
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f10af3f4679
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:00007ffc2b5b7a88 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007ffc2b5b7c58 RCX: 00007f10af3f4679
RDX: 000000000000fdef RSI: 0000000020000140 RDI: 0000000000000004
RBP: 00007f10af487610 R08: 0000000000000000 R09: 00007ffc2b5b7c58
R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc2b5b7c48 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:zero_user_segments+0x28b/0x290 include/linux/highmem.h:275
Code: fe 01 e9 47 fe ff ff e8 e3 68 a7 fe 89 ea be 00 10 00 00 48 c7 c7 70 3d cf 8e e8 40 92 fe 01 e9 d3 fe ff ff e8 c6 68 a7 fe 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3
RSP: 0018:ffffc9000374f9a0 EFLAGS: 00010293
RAX: ffffffff82ed7e3a RBX: ffffea00004c5780 RCX: ffff88802d723c00
RDX: 0000000000000000 RSI: 000000000000100a RDI: 0000000000001000
RBP: 0000000000001000 R08: ffffffff82ed7c75 R09: 1ffffd4000098af0
R10: dffffc0000000000 R11: fffff94000098af1 R12: 000000000000100a
R13: 0000000000000000 R14: 1ffffd4000098af0 R15: 000000000000100a
FS:  0000555562dd5380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc2b5b8000 CR3: 000000002bfc2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5607):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/12 07:33 upstream 9e4c6c1ad9a1 084d8178 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/02 02:05 upstream e32cde8d2bd7 ea2b66a6 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in zero_user_segments
2024/09/16 21:18 upstream adfc3ded5c33 c673ca06 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in zero_user_segments
2024/09/25 04:46 upstream 68e5c7d4cefb 349a68c4 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/08/12 16:51 linux-next 9e6869691724 6f4edef4 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in zero_user_segments
2024/10/12 19:02 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 18:36 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 17:06 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 16:03 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 14:51 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 14:13 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 13:09 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 12:06 upstream 09f6b0c8904b 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 10:09 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 08:38 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 07:19 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 06:53 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 05:51 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 05:06 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 04:05 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 03:40 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 01:30 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 00:22 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 23:14 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 22:33 upstream 9e4c6c1ad9a1 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 19:27 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 18:14 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 14:54 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 14:26 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 13:24 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 12:51 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 11:46 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 11:34 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 10:33 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 09:30 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 09:03 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 08:03 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/11 07:30 upstream 1d227fcc7222 cd942402 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/05 16:56 upstream 27cc6fdf7201 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in zero_user_segments
2024/10/04 08:16 upstream 0c559323bbaa d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in zero_user_segments
2024/10/12 20:10 upstream 09f6b0c8904b 084d8178 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/12 20:04 upstream 09f6b0c8904b 084d8178 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/12 17:36 upstream 09f6b0c8904b 084d8178 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/12 15:54 upstream 09f6b0c8904b 084d8178 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/12 09:11 upstream 9e4c6c1ad9a1 084d8178 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/12 02:39 upstream 9e4c6c1ad9a1 084d8178 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/11 19:15 upstream 1d227fcc7222 5e7b4bca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/11 17:45 upstream 1d227fcc7222 5e7b4bca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/11 16:44 upstream 1d227fcc7222 5e7b4bca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/11 15:57 upstream 1d227fcc7222 5e7b4bca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/10/07 09:56 linux-next c02d24a5af66 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in zero_user_segments
2024/08/12 06:40 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in zero_user_segments
* Struck through repros no longer work on HEAD.